help-octave
[Top][All Lists]
Advanced

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

Re: Printing a figure as a png... This should be basic!


From: Jaroslav Hajek
Subject: Re: Printing a figure as a png... This should be basic!
Date: Fri, 20 Nov 2009 21:20:21 +0100



On Fri, Nov 20, 2009 at 8:05 PM, Kristen Richter <address@hidden> wrote:
Hi Octave family,

I feel rather embarrassed, but I have been unable to print a figure as a png despite several searches on help forums.

The commands I am using are as follows:
print('graph.png','-dpng')

And I get the following error:

octave:13> print('graph1','-dpng')

gnuplot> set terminal png enhanced  size 1200,900
                      ^
         line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list

         line 0: No terminal defined


gnuplot> plot "-" binary format='%float64' record=15 using ($1):($2) axes x1y1 title "" with lines linestyle 1 , "-" binary format='%float64' record=15 using ($1):($2) axes x1y1 title "" with lines linestyle 2 , "-" binary format='%float64' record=15 using ($1):($2) axes x1y1 title "" with lines linestyle 3 , "-" binary format='%float64' record=15 using ($1):($2) axes x1y1 title "" with lines linestyle 4 , "-" binary format='%float64' record=15 using ($1):($2) axes x1y1 title "" with lines linestyle 5 , "-" binary format='%float64' record=15 using ($1):($2) axes x1y1 title "" with lines linestyle 6 ;
              ^
         line 0: use 'set term' to set terminal type first


gnuplot> @address@hidden(@
         ^
         line 0: invalid character @


gnuplot> ��#)@
         ^
         line 0: invalid character �


This error also applies to attempting to print as a jpeg, but not as an eps... Perhaps because it doesn't have to convert the file?

Searching google for the first two lines of the error message gives results reporting problems related to a multitude of plotting functionalities in multiple versions of Octave on different operating systems. Is there something simple I can correct to print a png (running Octave 3.2.2 and Ubuntu)?

Thank you in advance for your help. I'd appreciate any advice.

-Kristen


You need to install gnuplot with png support.

--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz

reply via email to

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