[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plotyy problem
From: |
Ben Abbott |
Subject: |
Re: plotyy problem |
Date: |
Wed, 01 Dec 2010 21:18:30 -0500 |
On Dec 1, 2010, at 9:10 PM, Ben Abbott wrote:
> On Dec 1, 2010, at 11:38 AM, keithspg wrote:
>
>> I am running a function I wrote to crunch some acquired data. I am also using
>> plotyy to plot this and generate a pdf of each data set. Everything works
>> great except that my loop runs 32 times and each time plotyy comes back with
>> an answer requiring a return press. When the function completes its work, I
>> must hit 'f' once or twice to see all the 'ans = 1' for each loop. All the
>> plots are generated and such, so it is not a problem with function, just a
>> bit odd when used in a function as I am here.
>>
>> The behavior of plotyy can be seen with these input lines:
>>
>> octave:1> x=[1:10];
>> octave:2> y=[10:-1:1];
>> octave:3> plot(x);
>> octave:4> clf
>> octave:5> plot(y);
>> octave:6> clf
>> octave:7> plotyy(x,x,x,y);
>> ans = 1
>>
>> Notice that this does not happen with plot. I have looked through the
>> plotyy.m for a missing semicolon, but could not find one. Can anyone else
>> give any help with this? I am running 3.3.54 compiled from the tar ball.
>>
>> KeithG
>
> I think this has been recently fixed. I don't recall where the problem was.
> If I'm able to find the changeset, I'll provide the info.
>
> Ben
I found the changeset.
http://hg.savannah.gnu.org/hgweb/octave/rev/acebc0e675c1
Keith if you edit gnuplot_drawnow, line 307 that will have a single character
"1" on it.
Ben