[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: two questions -- one remaining
From: |
Joe Koski |
Subject: |
Re: two questions -- one remaining |
Date: |
Mon, 12 Sep 2005 14:49:54 -0600 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
on 9/12/05 1:03 PM, address@hidden at address@hidden wrote:
> Hello,
>
> thank your for your quick answers. I tried your suggestions, but still I have
> the problem.
>
> Joe:
>> Klári,
>>
>> In Octave, plotting is done with with a separate program, gnuplot.
>> Whilemany of the plot commands are the same, the order of the
>> commands differs.
>> Try placing the plot command after the title, xlabel, etc. If you
>> still have
>> problems, try setting automatic_replot=0.
>>
>> Joe
> I have 2.1.71 version and octave-forge is also installed. I followed your
> instructions but the problem remained. What I dont understand is that other
> mfiles work pretty well with the same syntax for plot command.
>
>
Klári,
Do I understand that you do get successful plots with other .m files? What
happens when you enter at the octave:> prompt
octave:1> x=rand(1,10);
octave:2> plot(x);
Do you get a plot?
Sometimes a plot command will work based on defaults, or leftover commands
from the previous plot, but the ordering with the plot command last in the
sequence is normal with a few exceptions (legend, for example).
This is complicated by the fact that I'm not on a Windows machine, so I
can't try things. Anyone got any ideas?
Joe
> Doug:
>> The plot command automatically starts up GNUPLOT and sends the
>> info to
>> it through a pipe.
>>
>> If after you have drawn a plot you then close GNUPLOT and try to
>> plot
>> another plot it will act like you have reported. So the solution
>> is to
>> leave GNUPLOT there and let octave handle GNUPLOT.
>>
>> If you have shut down GNUPLOT then you must restart Octave to get
>> it
>> back again.
>> Doug
> I am sorry for being so beginner I do not even know how to close gnuplot. If
> you think the commented line of the previous version of my mfile, so I deleted
> all close command from my file (this is a heritage from matlab:), restarted
> octave and the problem remained.
>
> I am very confused because it sometimes works, sometimes doesnot, I feel
> myself very silly. Roughly I might say that plot command works pretty well at
> the command line + in all other mfiles I have with the only exception I
> mentioned last time. So I thought if some of you might have a good idea where
> to start searching my mistakes...
>
> thank you again
>
> Klári
>
>
>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- environment variable, roberto, 2005/09/10
- Re: environment variable, Søren Hauberg, 2005/09/10
- Re: environment variable, Henry F. Mollet, 2005/09/10
- Re: environment variable, Colin Ingram, 2005/09/11
- two questions, major, 2005/09/11
- Re: two questions -- one answer, Doug Stewart, 2005/09/11
- Re: two questions, Joe Koski, 2005/09/11
- Re: two questions -- one remaining, major, 2005/09/12
- Re: two questions -- one remaining,
Joe Koski <=
- Re: two questions -- one remaining, Dmitri A. Sergatskov, 2005/09/12
- Re: two questions -- one remaining, Paul Probert, 2005/09/12
- Re: two questions -- one remaining, Henry F. Mollet, 2005/09/12
- Re: two questions -- one remaining, Joe Koski, 2005/09/12
- Re: two questions -- no one remaining, major, 2005/09/13
- Re: two questions -- no one remaining, Henry F. Mollet, 2005/09/13
- Re: two questions -- one remaining, Henry F. Mollet, 2005/09/13
- Re: two questions, Bill Denney, 2005/09/11