Gnuplotting multichannel data without a text file

I just read Gnuplotting data without a text file , and I want to do the same, but with "multi-plot". I currently have:

plot 'data.csv' using 1:3:2:6:5:7:xticlabels(8) with candlesticks title 'Quartiles' whiskerbars, \ '' using 1:4:4:4:4:4 with candlesticks lt -1 notitle 

and I want to embed data in data.csv .

+4
source share
1 answer

It is quite simple:

 set multiplot layout 1,2 plot '-' u 1:2 1 2 2 3 3 4 e plot '-' u 1:2 2 3 3 4 4 5 e 

Please note that the embedded data is actually not very happy with the pseudo file. '' At this point, you really need to include all of your data. So, if you want 2 tracks on the same subset of the multiplier:

 set multiplot layout 1,2 plot '-' u 1:2, '-' u 1:3 1 2 3 4 5 6 7 8 9 e 1 2 3 4 5 6 7 8 9 e plot '-' u 1:($2*$3) 1 2 3 4 5 6 7 8 9 e 

This ends up being the same as if you had a data file data.txt :

 #data.txt 1 2 3 4 5 6 7 8 9 

and built it using this (much simpler) script:

 set multiplot layout 1,2 plot 'data.txt' u 1:2, '' u 1:3 plot '' u 1:($2*$3) 
+5
source

Source: https://habr.com/ru/post/1469190/


All Articles