help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: saving plots to files


From: Shai Ayal
Subject: Re: saving plots to files
Date: Fri, 11 Aug 2006 17:09:25 +0300
User-agent: Thunderbird 2.0a1 (Windows/20060724)

OK, I'm not sure why you cannot produce png files, but my guess is that the version of gnuplot which comes with your octave does not support png.

You can view the eps file on windows using the shareware gsview (google should find it). From what I remember it also allows you to covert to other formats

I think you might also benefit from downloading the newer 2.1.73 octave version from sourceforge, but I haven't tested it myself.

Shai

Lapi, Vincent J, ALABS wrote:
Shai Ok,
(1) Windows XP, Octave 2.1.50, from source forge.
(2) The code works but in the case of .png files produces empty files.
In the case of .eps it produces a file type of size but I cannot open
because I do not have the correct applications to open eps file type. I
need to know what file type options are available so that I can try to
produce a file types that I can open.
Thanks,
vlapi
-----Original Message-----
From: Shai Ayal [mailto:address@hidden Sent: Friday, August 11, 2006 9:20 AM
To: Lapi, Vincent J, ALABS
Cc: address@hidden
Subject: Re: saving plots to files

Hi

For someone to try to help you in a more intelligent way, Please add at least the following info:
1) OS, octave version, how you got it (compile from source, binary ?)
2) a short snippet of code showing what exactly didn't work e.g does this help:

plot(1:10);
print -dpng file.png

Shai

Lapi, Vincent J, ALABS wrote:
Hi,

Can anyone help me with the exact syntax for saving plots to files and

the file format options that are available under Octave for this
purpose?
I ran "print -dpng file.png" and I get a .png file but it is of size zero i.e., nothing in it. I ran "print -deps file.eps and I get a file

size 16 KB, but I don't have any application on my machine that can
open
this file type. So I tried "print -jpg file.jpg" to see if the JPEG format would work, but Octave gave me an error for this one. Do you
know
of any commonly used graphics file formats that might work. You
commands
seem to be the correct way, but I am not quite there yet.

Thanks,

vlapi



------------------------------------------------------------------------
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave


------------------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]