help-octave
[Top][All Lists]
Advanced

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

Re: Silent plot(x,y) (3.2 or later bug?)


From: Carlo de Falco
Subject: Re: Silent plot(x,y) (3.2 or later bug?)
Date: Fri, 16 Oct 2009 12:30:08 +0200


On 16 Oct 2009, at 02:59, Karol Krizka wrote:

2009/10/15 Tatsuro MATSUOKA <address@hidden>:
Hello

Please try

x=[0:1];
for i=[0:100]
plot(x,x*i);
filename=sprintf("%02d.png",i);
drawnow('png',filename);
end

The above works on octave 3.0.5 (mingw).

Thanks, that works!

However, it does not work on octave 3.2.2 (mingw), 3.3.50+ (mingw) and octave 3.2.3(cygwin)
error: get: unknown property "__pixels_per_inch__"
error: called from:
error: C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m \plot\gnuplot_drawnow.m at line 190,
column 14
error: C:\Programs\Octave\3.2.2_gcc-4.3.0\share\octave\3.2.2\m \plot\gnuplot_drawnow.m at line 74,
column 7

The error message is for octave 3.2.2 (mingw) but that for octave 3.2.3 on cygwin is almost the same.

I also have octave 3.2 installed on a different Ubuntu computer, and I
get the same error.
error: get: unknown property "__pixels_per_inch__"
error: called from:
error: /usr/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line 190, column 14 error: /usr/share/octave/3.2.2/m/plot/gnuplot_drawnow.m at line 74, column 7
error:   test.m at line 5, column 2

the following should work on 3.2.x (I have tested it on 3.2.3 on OS X)

close all
set (0, "defaultfigurevisible", "off")
for i=[0:100]
plot(x,x*i, "visible", "off");
filename=sprintf("%02d.png",i);
print('-dpng',filename);
end
set (0, "defaultfigurevisible", "on")

hth
c.
--
Cheers,
Karol Krizka
http://www.krizka.net



reply via email to

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