|
From: <HBB...@t-...> - 2008-01-28 21:44:59
|
Markus Eich wrote:
> I want to draw several plots into one .gif or .png image. Those lines
> work perfectly under linux:
If so, that has to be considered quite surprising. Nor is the
difference of behaviour really tied to using Linux vs. Win32, but rather
to which PNG driver you're using.
Your script absuses 'replot', which causes it to generate not one, but
*four* pages of output. A PNG can't really hold more than one.
These lines:
> plot filename using ($1):(((int($2)%147)/147.2*2*pi/5)-pi/5) axes x1y1
> title 'TARGET_M1' with lines
> replot filename using ($1):(((int($3)%147)/147.2*2*pi/5)-pi/5) axes x1y1
> title 'ACTUAL_M1' with lines
> replot filename using ($1):(((int($4)%147)/147.2*pi/5)) axes x1y1 title
> 'ERROR_M1' with lines
> replot filename using ($1):14 axes x1y2 title 'CURRENT_M1' with lines
should be replaced with something like:
plot \
filename using ($1):(((int($2)%147)/147.2*2*pi/5)-pi/5) \
axes x1y1 title 'TARGET_M1' with lines, \
'' u 1:(((int($3)%147)/147.2*2*pi/5)-pi/5) \
axes x1y1 title 'ACTUAL_M1' with lines, \
'' u 1:(((int($4)%147)/147.2*pi/5)) \
axes x1y1 title 'ERROR_M1' with lines, \
'' u 1:14 axes x1y2 title 'CURRENT_M1' with lines
> I tried also without "replot" but with the "," separation.
... and what happened?
|