Multiple lines on the same plot

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple lines on the same plot

amagri
I would like to plot multiple lines on the same plot but have not been
successful.  I have tried

Plot Resp = new Plot("Results", "Time interval between frames", "SUV*1000",
time, a);
Resp.addPoints(time, c, 0);
Resp.show();

with "a" and "c" being float arrays, and have found only "a" being plotted.  
How can I plot with both arrays on the same plot?

Alphonso Magri
Reply | Threaded
Open this post in threaded view
|

Re: Multiple lines on the same plot

Wayne Rasband
> I would like to plot multiple lines on the same plot
> but have not been successful.  I have tried
>
> Plot Resp = new Plot("Results", "Time interval between frames",
> "SUV*1000",
> time, a);
> Resp.addPoints(time, c, 0);
> Resp.show();
>
> with "a" and "c" being float arrays, and have found only "a"
> being plotted.  How can I plot with both arrays on the same plot?

There is an example plugin at

      http://rsb.info.nih.gov/ij/plugins/example-plot.html

that creates a plot with multiple lines. You might want to also check
out the plotting macros at

     http://rsb.info.nih.gov/ij/macros/ExamplePlots.txt

I found these examples by using my browser to search the plugins page
(http://rsb.info.nih.gov/ij/plugins/) and macros page
(http://rsb.info.nih.gov/ij/macros/) for the word "plot".

-wayne