[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Silent plot(x,y) (3.2 or later bug?)
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Silent plot(x,y) (3.2 or later bug?) |
Date: |
Fri, 16 Oct 2009 09:32:30 +0900 (JST) |
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).
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.
Regards
Tatsuro
--- Karol Krizka wrote:
> Hi there,
>
> I'm wondering if it is possible to plot a graph without displaying
> anything to the file. Basically, I'm trying to do an animated graph by
> plotting them step by step (suggested here:
> http://www.nabble.com/Displaying-an-animation---%22movie%22-td4199665.html
> ) and saving each graph as a file.
>
> In summary, I have the following script:
> x=[0:1];
> for i=[0:1000]
> plot(x,x*i);
> filename=sprintf("%02d.png",i);
> print(filename);
> end
>
> The problem is that plot command displays the graph to the screen, and
> I think that it might be slowing (I show more than than 1000 frames..)
> down my script. Is there a way to suppress/silent the plot() command?
>
> I'm using octave 3.0.5 from the Ubuntu Karmic repositories.
>
> After some googling, I found the following suggestion:
> gset term postscript eps color
> gset output "name.eps"
>
> But:
> octave:1> gset term postscript eps color
> parse error:
>
> syntax error
>
> >>> gset term postscript eps color
> ^
>
> octave:1> gset output "name.eps"
> parse error:
>
> syntax error
>
> >>> gset output "name.eps"
> ^
> Any suggestions? Am I missing some package?
> --
> Cheers,
> Karol Krizka
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
--------------------------------------
GyaO! - Anime, Dramas, Movies, and Music videos [FREE]
http://pr.mail.yahoo.co.jp/gyao/
- Silent plot(x,y), Karol Krizka, 2009/10/15
- Re: Silent plot(x,y) (3.2 or later bug?),
Tatsuro MATSUOKA <=
- 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, 2009/10/16
- 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