Another alternative would be to use the multi-plot capability.
That enables you to place several stick plots in a stack, carefully
preserving the x locations - something obviously important for spectra.
There would be no difficulty with varying the number of plots, though
obviously too many would make each plot rather small. That way you would
also preserve all the information.
Fraser
Unfortunately, I can't always know before running the verb how many data
sets I want to plot. I can manually count the number of rows in my matrix
and plot them all separately in different colours, but I'm not too keen on
that.
The spectra I really want to plot are represented as impulses rather than
as bar graphs, which is what makes the 'stick' form appropriate to the
task. Bar plots displace the x-value, which I don't want to happen.
I know that the larger-amplitude impulses will cover the smaller ones at
the same x-value, but that is what I want to be able to see. If they are
all the same colour, I can't tell which is which.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm