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: Karol Krizka
Subject: Re: Silent plot(x,y) (3.2 or later bug?)
Date: Thu, 15 Oct 2009 17:59:40 -0700

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/
>



reply via email to

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