Manipulate Using Listplot
- To: mathgroup at smc.vnet.net
- Subject: [mg99250] Manipulate Using Listplot
- From: Richard Palmer <rhpalmer at gmail.com>
- Date: Fri, 1 May 2009 05:20:44 -0400 (EDT)
Here is some sample code that uses Manipulate with ListPlot
v1 = Table[Random[], {50}];
v2 = Table[Random[], {50}];
fn[a_, b_] := a v1 + b v2
f[n_] := If[n >= 0, "+", "-"]
Manipulate[
ListPlot[fn[a, b], Filling -> Axis, PlotRange -> {-.15, .15},
PlotMarkers -> {Automatic, Medium},
FillingStyle -> {Red, Green}], {{a, 0, "Param 1"}, -.1, .1, .01,
Appearance -> "Labeled"}, {{b, 0, "Param 2"}, -.1, .1, .01,
Appearance -> "Labeled"}]
I would like to do things with the markers {color differently when positive,
change to "+" when positive, use labels rather than "dots", ...}
Is this possible? Are there some simple examples of this. Have not been
able to find in the documentation.
--
Richard Palmer
Home 508 877-3862
Cell 508 982-7266