help-octave
[Top][All Lists]
Advanced

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

Re: hold plot to file not working


From: Dmitri A. Sergatskov
Subject: Re: hold plot to file not working
Date: Wed, 16 Jun 2004 20:10:33 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114

Rick Smegal wrote:
Hail,
  Hold appears ineffective when
writing plots to a png graphics file. Is this a
limitation of the device or of plot?


I guess this is a feature. It has been discussed on this list multiple times.
There are few ways to do what you want to accomplish.

If you have octave-forge installed you can do:
...
plot(xh(iwc,:),xpdf(iwc,:))
hold on
bar(xh(iwc,:),yh(iwc,:))
print("-dpng", "/home/rsmegal/Desktop/plottest.png")
...
-------
That will not work with the latest gnuplot (4.0) since the interface
to png terminal has changed.
-------
Another way:
...
plot(xh(iwc,:),xpdf(iwc,:))
hold on
bar(xh(iwc,:),yh(iwc,:))
gset term png medium
gset output "/home/rsmegal/Desktop/plottest.png"
replot
...

Rick Smegal

Regards,
Dmitri.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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