From: Till S. <til...@im...> - 2007-03-01 23:49:44
|
On Thu, 1 Mar 2007 18:29:20 -0500 "Sadeghian, Soroush" <SOR...@sa...> wrote: > 1. if I want to plot another set of numbers (different file) with > different colors, on top of my previous plotted points from the first > file, how can I do this? This is straightforward, and following the example given by Ramzi > gnuplot>plot "file.txt" u 3:1 you can simply add more files by separating them with a comma, e.g. gnuplot>plot "file1.txt" u 3:1, "file2.txt" u 4:1 etc. A different colour / linestyle will be chosen automatically, if you want more control of this, see the link below. > 2. How can I export the graph once it is finished plotting the blue > points on top of the red points? Where can I export it to? How? You have to set the "terminal" to an output type first. For example, if you want an eps file named "MyGraph.eps" in color, with the example above, do something like gnuplot>set terminal postscript enhanced eps color gnuplot>set output "MyGraph.eps" gnuplot>plot "file1.txt" u 3:1, "file2.txt" u 4:1 Of course, there are many more options on how to do a plot, which output format to chose etc. I would suggest you read the following introduction to gnuplot: http://t16web.lanl.gov/Kawano/gnuplot/index-e.html Regards Till |