Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
|
Blending in DiscretePlot
Posted:
Feb 23, 2011 5:28 AM
|
|
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
|
|
|
|