[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 19:14:45 +0900 (JST) |
Hello
I have looked at codes of gnuplot_drawnow.m and print.m.
Initialization of __pixels_per_inch__ is executed in print.m
I think that this is a bug.
Tentatively, this bug(?) can be avoided by dummy print once for octave 3.2 or
later.
plot (1:10);print ('dummy.png','-dpng');clf;
x=[0:1];
for i=[0:100]
plot(x,x*i);
filename=sprintf("%02d.png",i);
drawnow('png',filename);
end
close;unlink('dummy.png');
Side effect: An empty plow window is open during print :-(, but it is no
relation for speed
please forgive the bug will be fixed.
Tatsuro
Regards
Tatsuro
--- 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
>
> --
> Cheers,
> Karol Krizka
> http://www.krizka.net
>
>
> > 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/
> >
>
--------------------------------------
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, 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, 2009/10/16
- Re: Silent plot(x,y) (3.2 or later bug?),
Tatsuro MATSUOKA <=
- 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