I have a datafile containing columns with different orders of magnitude. I would like to plot all columns with similar order of magnitude collectively into the same canvas. I do so by testing the maximum of each column using the stats
command.
I tried so far
set key autotitle columnheader
set terminal pdfcairo
set out 'test.pdf'
do for [col=5:125] {
stats 'datafile' using col nooutput
if( STATS_max < 1e-7 ) {
#draw to canvas 1
plot 'datafile' using 1:col with lines
} else {
if( STATS_max < 1e-6 ) {
#draw to canvas 2
plot 'datafile' using 1:col with lines
} else {
#draw to canvas 3
plot 'datafile' using 1:col with lines
}
}
}
but couldn't solve yet the problem to switch between the canvas.
The file looks like (1st row are the titles):
time 5.000/5.000 5.000/4.000 ...
1e-5 7.6e-23 3.057e-17 ...
0.002 3.4e-17 5.2e-13 ...
. . . .
. . . .
. . . .
Is there a way to achieve this behaviour, and if yes, how? Thanks in advance.