MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Blending in DiscretePlot


Dear MathWorld Users,

I am trying to achieve a graphic solution of a function:

DiscretePlot[((F/2 - 1) + (F^2 - 6*F + 2*F*n - 2 n^2 + 2 n + 4)/
   4), {n, 1, F}, AxesOrigin -> {-F, 0},
 PlotRange -> {{-F, 2 F}, {0, F^2/2.5}},PlotStyle -> {Thickness[0.1]},
FillingStyle -> Red]

I want it to be symmetrically blended so that the highest value is e.g
yellow, and the as the values decrease on each side, they blend into red
according to the values.
Unfortunately I have no idea how this can be achieved with discrete values.

I kindly appreciate your help.

Thank you.


Tamás Lengyel
MSc. Student @ BUTE


  • Prev by Date: error when trying to run a Mathematica script in Windows 7
  • Next by Date: Mathematica Weirdness
  • Previous by thread: error when trying to run a Mathematica script in Windows 7
  • Next by thread: Re: Blending in DiscretePlot