strange multiplot behavior with wxt

Allin Cottrell <[email protected]> Wed, 28 Jun 2023 08:50:15 -0400 (EDT)
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <alpine.LFD.2.20.3.2306280832440.154361@myrtle>
I'm puzzled by a multiplot example where the output seems to be 
non-deterministic -- though the fault may be in my script 
(strange_multi.plt, attached).

I'm on Linux, using gnuplot 5.4.3 and also 5.4.8, using 
the wxt terminal for screen display with the command line

gnuplot strange_multi.plt -persist

On some invocations the frequency bars appear in the first sub-plot, 
on other invocations they do not appear, the upper plot shows no 
data. But if I write the plot to file using, say, pngcairo or 
pdfcairo, the first sub-plot is always OK.

Am I misusing multiplot or might there be a bug here?

-- 
Allin Cottrell
Department of Economics
Wake Forest University

_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
strange_multi.plt (text/plain, 3.4 KB)
set multiplot layout 2,1 rowsfirst
# subplot 1
set linetype 1 lc rgb "#5F6B84"
set linetype 2 lc rgb "#000000"
set border 3 back lc rgb "#808080"
set tics nomirror
set xrange [27:63]
set yrange [0.0:0.187]
set nokey
set xlabel 'WA'
set ylabel 'Relative frequency'
set style fill solid 0.6
plot '-' using 1:2 w boxes
30 0.09
33 0.14
36 0.17
39 0.08
42 0.1
45 0.09
48 0.11
51 0.06
54 0.07
57 0.06
60 0.03
e
reset
# subplot 2
set linetype 1 pt 6 lc rgb "#1B9E77"
set linetype 2 pt 7 lc rgb "#D95F02"
set border 3 back lc rgb "#808080"
set tics nomirror
set xlabel 'WA'
set key left top
plot \
 '-' using 1:2 title "LFP = 0" w lines, \
 '-' using 1:2 title "LFP = 1" w lines
27.46931445 0.01009502504 
27.59643442 0.01043678576 
28.83044752 0.01428320853 
28.95681928 0.01467710968 
30.1915806 0.01875547954 
30.31720413 0.0191704093 
31.55271367 0.02323699436 
31.67758898 0.02364801189 
32.91384674 0.02750589326 
33.03797383 0.02789324581 
34.27497981 0.03127888088 
34.39835868 0.03161656383 
35.63611288 0.03415643752 
35.75874353 0.03440807582 
36.99724595 0.0357725168 
37.11912838 0.03590679299 
38.35837902 0.03606341755 
38.47951323 0.03607872728 
39.71951209 0.03541032329 
39.83989808 0.03534543091 
41.08064516 0.03450473785 
41.20028293 0.03442367488 
42.44177823 0.03401330001 
42.56066778 0.0339740012 
43.8029113 0.03424856505 
43.92105263 0.03427467695 
45.16404437 0.03502813453 
45.28143748 0.03509929407 
46.52517744 0.03580233946 
46.64182233 0.03586827499 
47.88631052 0.03598729246 
48.00220718 0.03599837631 
49.24744359 0.03529072694 
49.36259203 0.03522528979 
50.60857666 0.0337962192 
50.72297688 0.03366500891 
51.96970973 0.03176413232 
52.08336174 0.03159084865 
53.3308428 0.02935760252 
53.44374659 0.02915548166 
54.69197587 0.02654469922 
54.80413144 0.02631011588 
56.05310894 0.02322583796 
56.16451629 0.02295072395 
57.41424201 0.01942408162 
57.52490114 0.01911180897 
58.77537508 0.01536235095 
58.88528599 0.01503279084 
60.13650815 0.01139333546 
60.24567084 0.01107581173 
e
27.46931445 0.01434597586 
27.59643442 0.01514728841 
28.83044752 0.02292600458 
28.95681928 0.02381071782 
30.1915806 0.03245513146 
30.31720413 0.03325496796 
31.55271367 0.04112137331 
31.67758898 0.04167978467 
32.91384674 0.0472080222 
33.03797383 0.04744255273 
34.27497981 0.04977979977 
34.39835868 0.04970117234 
35.63611288 0.04891237093 
35.75874353 0.0486037942 
36.99724595 0.04548733823 
37.11912838 0.04506939907 
38.35837902 0.04081996485 
38.47951323 0.04041452036 
39.71951209 0.03626415936 
39.83989808 0.03595816148 
41.08064516 0.03280442258 
41.20028293 0.03262340643 
42.44177823 0.03074498046 
42.56066778 0.03065462047 
43.8029113 0.02971047436 
43.92105263 0.02964873462 
45.16404437 0.02899915673 
45.28143748 0.02891496893 
46.52517744 0.02802302785 
46.64182233 0.0278941901 
47.88631052 0.02651961588 
48.00220718 0.02634787876 
49.24744359 0.02450267208 
49.36259203 0.02430434335 
50.60857666 0.02215829137 
50.72297688 0.02195995755 
51.96970973 0.01979851698 
52.08336174 0.01962931122 
53.3308428 0.01777205435 
53.44374659 0.0176463517 
54.69197587 0.01625662218 
54.80413144 0.01615921136 
56.05310894 0.01507443309 
56.16451629 0.01496620485 
57.41424201 0.01375214114 
57.52490114 0.0135974332 
58.77537508 0.01184919741 
58.88528599 0.01164357892 
e
unset multiplot