In on file the data spaces are separated by a space and in the other one
they are separated with <tab>, requiring set datafile separator "\t".
How can I say plot "file1.txt", "file2.txt", to be compatible with both?
In on file the data spaces are separated by a space and in the other one
they are separated with <tab>, requiring set datafile separator "\t".
How can I say plot "file1.txt", "file2.txt", to be compatible with both?
Here the default "whitespace" works with both separators (Tabulator and Space).
set datafile separator whitespace
On Wed, 10 Jun 2020, Jörg Buchholz wrote:
Here the default "whitespace" works with both separators (Tabulator and
Space).
set datafile separator whitespace
In my second file I have: set timefmt "%d/%m/%Y %H:%M:%S" and now when I
plot the second file using 1:2 gnuplot believes the hour field is my
second column. Same with 1:3.
I know how to workaround with multiplot but I thought it could be simpler.
I know how to workaround with multiplot but I thought it could be simpler. >>
There will be more than one solution. My solution is, bring both files
to the same separator. With "sytem" you can do it from inside gnuplot.
On Thu, 11 Jun 2020, Jörg Buchholz wrote:
I know how to workaround with multiplot but I thought it could be
simpler.
There will be more than one solution. My solution is, bring both files
to the same separator. With "sytem" you can do it from inside gnuplot.
Thanks, but I am with Windows. But I know how to process either file in Fortran. Or I'll ask the enthusiast who provided the files to
standardize either one :-)
On 6/11/20 8:21 AM, Jean-Pierre Coulon wrote:
On Thu, 11 Jun 2020, Jörg Buchholz wrote:
I know how to workaround with multiplot but I thought it could be
simpler.
There will be more than one solution. My solution is, bring both files
to the same separator. With "sytem" you can do it from inside gnuplot.
Thanks, but I am with Windows. But I know how to process either file in
Fortran. Or I'll ask the enthusiast who provided the files to
standardize either one :-)
install cygwin and then use gnuplot there... sed and awk and gnuplot are available under cygwin.
On Wed, 10 Jun 2020, Jörg Buchholz wrote:
Here the default "whitespace" works with both separators
(Tabulator and
Space).
set datafile separator whitespace
In my second file I have: set timefmt "%d/%m/%Y %H:%M:%S" and now
when I plot the second file using 1:2 gnuplot believes the hour
field is my second column. Same with 1:3.
I know how to workaround with multiplot but I thought it could be
simpler.
Am 10.06.2020 um 15:43 schrieb Jean-Pierre Coulon:
On Wed, 10 Jun 2020, Jörg Buchholz wrote:
Here the default "whitespace" works with both separators
(Tabulator and
Space).
set datafile separator whitespace
In my second file I have: set timefmt "%d/%m/%Y %H:%M:%S" and now
when I plot the second file using 1:2 gnuplot believes the hour
field is my second column. Same with 1:3.
I know how to workaround with multiplot but I thought it could be
simpler.
The timeformat specifier should win against any datafile separator.
At least I was pretty sure it used to. That however doesn´t seem to
be the case both in gp5.3rc1 and 4.6.6. Hmmm ....
$dat << EOD
03/04/2020 14:14:14 654
03/04/2020 15:15:15 543
03/04/2020 16:16:16 654
EOD
#set dataf sep ...
set xdata time
set timefmt "%d/%m/%Y %H:%M:%S"
plot $dat us (timecolumn(1)):3 w lp ps 3
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 76:33:25 |
Calls: | 6,657 |
Calls today: | 3 |
Files: | 12,203 |
Messages: | 5,332,734 |
Posted today: | 1 |