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: Pavel Schor
Subject: Re: Printing a figure as a png... This should be basic!
Date: Fri, 20 Nov 2009 20:17:18 +0100

Hi, I had same problem, in my case it was missing library. I mentioned
my solution here  2 months ago:

in octave3.2  with gnuplot 4.2.5 on ubuntu 9.04 I was not able to save
plot as .png image.... Problem was in missing library libgd. I
downloaded it from www.libgd.org, and then I have recompiled gnuplot.
After that everything is OK.

Kristen Richter píše v Pá 20. 11. 2009 v 20:05 +0100:
> 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
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave





reply via email to

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