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: Frie, Eddie J
Subject: RE: Printing a figure as a png... This should be basic!
Date: Mon, 23 Nov 2009 08:56:30 -0800

Here is some working example code I use in Octave:

figure(4);

plot (freq_dev_array/1e9,ild,";insertion loss deviation;", freq_dev_array/1e9, -il_max, ";bottom limit;",freq_dev_array/1e9,il_max,";top limit;");

title('Insertion loss deviation');

xlabel('Freq (Ghz)');

ylabel('ILD (db)');

grid on

print -dpng x.png

 

in gnuplot I use:

set terminal png  font "arial, 30" size 3200, 2400 transparent

set output ‘foo.png’

 

I hope this helps.

 

-Eddie Frie

(Not speaking for Intel)

 

 

From: Kristen Richter [mailto:address@hidden
Sent: Friday, November 20, 2009 11:06 AM
To: address@hidden
Subject: Printing a figure as a png... This should be basic!

 

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> @������g@��~���(@
         ^
         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]