Re: Plotting in a MetaCard window ? Has anyone done it ?

Steve Pothier (starnet!apple!aries.saic.com!pothiers)
Mon, 14 Mar 94 11:48:04 MST

I am making good progress with my MC application front end, but now
I need to plot some data. So far, I have been calling other motif plotting
routines such as 'xmgr', 'gnuplot', and tektronix plot10 routines with
shell().

Has anyone tried constructing a plotting window with MC ? Even a
simple x-y line plot would be interesting, but I would also like to do a
2D plot where intensity was represented by color (blue=0, red=max).
I would have an x-y matrix of intensity values, which I would need
to interpolate to obtain the intensity=color of each pixel.

It looks possible in principle, but has anyone tried either the simple
x-y line plot or the 2D intensity plot ? Would MC be fast enough to do
this, or would I need to write an external procedure ?

I've done the simple x-y line plot (and a scatter plot, but that's
basically the same thing).

The speed was acceptable in my application but I was plotting in real
time (piped the points from another application) and the data-source
was the real bottleneck. The number of points I had to plot at once
was fairly small (1-200). You will probably want to write a routine
that will scale your points (normalize them to fit in the graphic).

I did have several problems initially, which I reported. (most, maybe
all, have been fixed).

-Pothier-