|
From: Pan r. <pan...@gm...> - 2012-03-07 01:19:19
|
On Tue, Mar 6, 2012 at 11:47 PM, Marek W. Gutowski <gu...@if...> wrote: > To be elegant, add the last command >> set output # before seeing the resulting figure > Maybe this is what you need. Examine also your script with > "plot sin(x)" replaced with "test". You may want to insert > "reset" as the very first command. Who knows what and > how did you plot earlier in the same gnuplot session? > Gnuplot remembers every earlier "set" command until > explicitly changed/modified/revoked or just "unset". > Hi, I modified the script as follow gnuplot <<'EOF' reset set term jpeg set output "hello.jpg" #plot sin(x) test set output EOF and I got the attached picture. Still the background is black as well as no x-y axis was drew. I used the gnuplot 4.4 patchlevel 4 for cygwin on win7. - BR, Ruochen |