|
From: eich <ei...@in...> - 2008-01-28 23:46:32
|
Hans-Bernhard Bröker schrieb: > 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? I tried it before with plot filename using ($1):(((int($2)%147)/147.2*2*pi/5)-pi/5) axes x1y1 title 'TARGET_M1' with lines, filename using ($1):(((int($3)%147)/147.2*2*pi/5)-pi/5) axes x1y1 title 'ACTUAL_M1' with lines, filename using ($1):(((int($4)%147)/147.2*pi/5)) axes x1y1 title 'ERROR_M1' with lines, filename using ($1):14 axes x1y2 title 'CURRENT_M1' with lines which produced the same results i.e. works under linux and not under win32. Same result for gif and jpg. BUT.... your lines work perfectly!!!!!! (with the ''u instead of using and 1: instead of $1). What is the difference? Thank you for the tip |