help-octave
[Top][All Lists]
Advanced

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

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


From: Kristen Richter
Subject: Printing a figure as a png... This should be basic!
Date: Fri, 20 Nov 2009 14:05:56 -0500

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


reply via email to

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