Hi All,

Can anyone give me some pointers on plotting multiple data sets on one set 
of axes.  Plotting two or more data sets on one set of axes is easy if you 
know in advance what the data is called;

(plot (list
      (lines set1)
      (points set2))
     #:x-label "x" #:y-label "y")

however I have a list of data sets generated from reading a bunch of files 
in a directory and I wish to loop through the list and add each data-set to 
an existing set of axes.

Iterating through the data and plotting each set results in multiple plot 
windows.

In summary I am looking for something similar to Matlab's "hold on" e.g.

;Pseudo Matlab code

figure()
for idx = 1 : numel(list-of (list-of vector-pairs))
    plot(list-of (list-of vector-pairs))(idx)
    hold on
end
hold off

I have got (plot-new-window? #t), however as far as I know this is just 
causing a plot to appear in a new window rather than directly in the repl.

Many thanks,

greadey.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/a16546e5-4bc9-4a96-a9b3-1ee28c65b06a%40googlegroups.com.

Reply via email to