help-octave
[Top][All Lists]
Advanced

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

Re: Octave in Mandrake 8.x? --> GREAT!!


From: Ana O'Lyric
Subject: Re: Octave in Mandrake 8.x? --> GREAT!!
Date: Tue, 16 Oct 2001 10:24:02 GMT

Jonathan, MILLIONS OF THANKS!!  You are great!  It works!!
(I can only wonder why didn't I have to do this in RedHat??)

I am very much indebted to you! I hope that in a couple
of months I will be able to express my thankfulness
in a public way.

Cheers,
Ana

>Hi again Ana:
>
>On Monday 15 October 2001 04:58 am, you wrote:
>> Thanks a lot for your _very_ useful answer!  The links to gnuplot
>> tutorials are really great, and your example is very instructive!
>
> You are welcome.
>
>> But now I see that my problem was not only due to a strange dealing
>> of gnuplot with its tmp files: I have fixed it.  There is also
>> a surpising problem with the standard figure.m file.  When a command
>> of the form figure (n) is envoked, I get the following reply:
>>
>> octave:1> figure (1);
>> error: figure: gnuplot doesn't appear to support this feature
>> error: evaluating index expression near line 48, column 7
>> error: evaluating if command near line 39, column 5
>> error: evaluating if command near line 38, column 3
>> error: called from `figure' in file
>> `/usr/share/octave/2.0.16/m/plot/figure.m'
>
> Yes, I get the same thing. That is because the global variable 
>gnuplot_has_frames is set to zero by default. Now I really don't understand

>what figure(n) is supposed to do. I have never used this. I did find the 
>following relevant line in help -i figure:
>
> - Built-in Variable: gnuplot_has_frames
>     If the value of this variable is nonzero, Octave assumes that your
>     copy of gnuplot has support for multiple frames that is included
>     in recent 3.6beta releases.  It's initial value is determined by
>     configure, but it can be changed in your startup script or at the
>     command line in case configure got it wrong, or if you upgrade
>     your gnuplot installation.
>
> It seems that to use figure(n), gnuplot_has_frames cannot be equal to zero.

>However it looks like that is the default value:
>
>octave:10>  gnuplot_has_frames
>gnuplot_has_frames = 0
>
>However if I change it to 2 like so:
>
>octave:12>  gnuplot_has_frames=2
>gnuplot_has_frames = 2
>
>figure(1)  runs:
>
>octave:14> figure(1)
>ans = 1
>
>If you are running Mandrake 8.x then you must have Gnuplot 3.7.x. This is 

>certainly better than the 3.6 beta version they say is needed to work.
>
> I also discovered that to make multiple plots the variable 
>gnuplot_has_multiplot has to be changed from it's zero value like so:
>
>octave:19> X = [0.0:0.1:5.0]';
>octave:20> Y1 = sin(X);
>octave:21> Y2 =cos(X);
>
>  <snip>
>
>octave:27> gnuplot_has_multiplot
>gnuplot_has_multiplot = 0
>octave:28> gnuplot_has_multiplot=2
>gnuplot_has_multiplot = 2
>octave:29> multiplot(2,2)
>octave:30> mplot(X,Y1,X,Y2)
>
> I have never really used these features before so I will have to play with

>them. It may be that gnuplot_has_frames and  gnuplot_has_multiplot are set
to 
>zero to conserve memory? HTH.
>
>
>-- 
>       Cheers,
>
>       Jonathan
>

http://www.e-mail.ru

JPEG image


reply via email to

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