[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
- Silent plot(x,y), Karol Krizka, 2009/10/15
- Re: Silent plot(x,y) (3.2 or later bug?), Tatsuro MATSUOKA, 2009/10/15
- Re: Silent plot(x,y) (3.2 or later bug?), Karol Krizka, 2009/10/15
- Re: Silent plot(x,y) (3.2 or later bug?),
Carlo de Falco <=
- Re: Silent plot(x,y) (3.2 or later bug?), Tatsuro MATSUOKA, 2009/10/16
- Re: Silent plot(x,y) (3.2 or later bug?), Ben Abbott, 2009/10/16
- Re: Silent plot(x,y) (3.2 or later bug?), Ben Abbott, 2009/10/16
- Re: Silent plot(x,y) (3.2 or later bug?), Tatsuro MATSUOKA, 2009/10/17
- Re: Silent plot(x,y) (3.2 or later bug?), Karol Krizka, 2009/10/18
Re: Silent plot(x,y), Thomas Weber, 2009/10/16
Silent plot(x,y), John W. Eaton, 2009/10/23