Re: question about multiple plotting
- From: "Paul Mennen" <nospam@xxxxxxxxxx>
- Date: Fri, 5 May 2006 19:46:31 -0400
I have a 18 dim structure called mole.fraction
and a vector called y.
now I just want to plot all 18 curves in one graph.
Sven
Something like this:
x=[1 2 3]'
a(1).b=[1 2 3]'
a(2).b=[0 3 3]'
a(3).b=[5 2 5]'
plot(x,[a(:).b])
The solution above is good, however when cramming 18 curves into one
graph, a quick way to enable and disable one or more of these curves
is important (so you can see the trees thru the forest :)
This is one of the reasons I wrote plt. (Just search for "plt" on the
file exchange). Then just remove the "o" from the plot command above.
That is:
plt(x,[a(:).b]);
The results will be similar to plot, except that an automatic legend
will appear. The default legend (in your case) will just be "Line 1",
"Line 2", ... "Line 18" but of course you can use an optional plt
argument to set the legend to more meaningful words.
Now the best part though is that you can just click on any of these
legend items, and that particular trace will toggle. (i.e. off to on,
or visa versa). There are also shortcut ways to turn all the traces
on, or to turn a single trace on with all the rest off.
If you do try plt, please let me know how it works out - since I
often enhance it based on user feedback.
~Paul
.
- Follow-Ups:
- Re: question about multiple plotting
- From: helper
- Re: question about multiple plotting
- References:
- question about multiple plotting
- From: Jerzembeck
- Re: question about multiple plotting
- From: PB
- question about multiple plotting
- Prev by Date: Re: reading gui edit text box
- Next by Date: Re: About list viterbi decoding?
- Previous by thread: Re: question about multiple plotting
- Next by thread: Re: question about multiple plotting
- Index(es):
Relevant Pages
|