|
From: Mahmood N. <nt_...@ya...> - 2013-05-09 13:29:56
|
The data files look like $ cat data.txt 0 10 20 30 40 50 $ cat data2.txt 100 80 60 40 Now, when I run plot "data.txt" using 1, "data2.txt" u 2 The points for data2.txt are not shown correctly.Please see the attachment. Regards, Mahmood ________________________________ From: Marek W. Gutowski <gu...@if...> To: Mahmood Naderan <nt_...@ya...> Sent: Thursday, May 9, 2013 5:18 PM Subject: Re: [Gnuplot-info] multiple data files in one instance of gnuplot Is the command like: gnuplot> plot "data1.txt" using 1, "data2.txt" u 2 what you need? It plots two data sets in the same window. Cheers, Marek Mahmood Naderan wrote: > Hi > I have two *data files* and want to open them with one instance of gnuplot. Both of the files are single columned. If I run this command: > > plot "data1.txt" using 1 > plot "data2.txt" using 1 > > The result is that the second will replace the first one. The naiive solution is to open another terminal and plot the second one. > What I want is this sequence > > plot "data1.txt" using 1 > <first chart is opened in a new window and the console returns to gnuplot> > plot "data2.txt" using 1 > <second chart is opened in a new window and the console returns to gnuplot> > > As a result I have to chart windows in one gnuplot. > > > Searching the documents and internet, there are examples for a single data file with two columns. So it is easy to open two chart windows in one gnuplot. But that is not my case. > > Is there any way to do that? > > > Regards, > Mahmood -- Marek W. Gutowski Institute of Physics PAS, ON-3.2, Al. Lotnikow 32/46 02-668 Warszawa, Poland, tel. +48-22-228436601 ext. 3122 == To talk or not to talk? Yes, talk, plain ASCII please == ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |