|
From: Thomas S. <t.s...@fz...> - 2014-03-20 20:50:15
|
gnuuser4165 <s416504 <at> yahoo.com> writes: > > set term png > set output MainPlot.png > plot "ABC.dat" > plot "XYZ.dat" > Set output > set term pop > > I see this generate plot MainPlot.png using ABC.dat but does not overwrite > by XYZ.dat. > > I have loop where I wanted to overwrite output on same file. > > can Anyone help on this? if you would have a look into the file "MainPlot.png" with a binary editor or viewer you would see that there are two png-images written into this file one after the other. because the png-format is a single image format (no animation) an image display program stops after the first image (it reads the "IEND" chunk), neglecting the second image. if you want to overwrite the image, you have to close ("set output") and reopen the output file. |