|
From: Amit S. <lis...@gm...> - 2010-01-13 14:04:25
|
Hi all: Just signed up here. I have been wandering about this question for a while now and thought of asking you folks. I have a data file with only a single column of say 500 lines. This 500 lines is actually the result of 10 experiments, each of which gives me 50 lines of data. I would like to tell gnuplot to treat this one file as 10 different sets of data and not a single big set, i.e it should plot every 50 dataset and then "replot" over it. (separate colors). There are two things I have tried so far: 1. Make sure that my program while writing the data, inserts line break after a data set (i.e. every 50 lines). The problem with this is that all of them are plotted in the same color 2. In the second scenario, I have written a Python script, which reads the big data file and creates separate files i.e. 10 files for the separate data sets. Then I use gnuplot to plot them, manually (ofcourse I could automate this part by making using of pipes). Is there a native gnuplot way to do this? Your opinions are welcome. Thanks, Amit -- Journal: http://amitksaha.wordpress.com µ-blog: http://twitter.com/amitsaha IRC: cornucopic on #scheme, #lisp, #math, #linux |