Dienstag, 3. Dezember 2013

Gnuplot multiplot - problems with replot

All those who use gnuplot multiplot probably know about the problems using replot in the multiplot environment. When using replot the lines which were plotted first and get replotted and appear darker or broader and if the xranges and yranges do not fit perfectly the plots get shifted.


For all that a small
 clear
statement in between the plot and replot might help.


For this i will show a full example in the following and two images of the two results with the png-terminal:
set terminal png
set output "test.png"
set multiplot

plot sin(x)
clear
replot cos(x)

unset multiplot 


without clearwith clear

Keine Kommentare:

Kommentar veröffentlichen