|
From: theozh <th...@gm...> - 2017-11-03 00:30:26
|
Hi,
I am confused with the separation of datablocks.
Apparently, the keyword "every" requires 1 (and not more) empty line for block separation,
whereas the function STATS_blocks requires 2 empty lines for block separation.
If you want to use both, STATS_blocks to count blocks and "every" to plot blocks this seems to contradict.
How can this be solved?
Below is a copy&paste gnuplot code to illustrate. I expected to get two identical plots, however, which is not the case. What have I missed? I am using Win7/64 gnuplot 5.2rc4.
Thank you for clarification.
### start gnuplot code
reset
$Data1 <<EOD
1
3
2
5
4
6
8
7
9
EOD
$Data2 <<EOD
1
3
2
5
4
6
8
7
9
EOD
set colorsequence classic
set multiplot layout 1,2
stats $Data1 using 1 nooutput
set label 1 sprintf("STATS blocks: %g",STATS_blocks) at graph 0.5,0.5
plot for [i=0:2] $Data1 using 0:1 every 1:1::i::i w lp ls i+1
stats $Data2 using 1 nooutput
set label 1 sprintf("STATS blocks: %g",STATS_blocks) at graph 0.5,0.5
plot for [i=0:2] $Data2 using 0:1 every 1:1::i::i w lp ls i+1
unset multiplot
### end gnuplot code
|