help-octave
[Top][All Lists]
Advanced

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

Re: [SOLVED] change position of x-axis


From: Juan Pablo Carbajal
Subject: Re: [SOLVED] change position of x-axis
Date: Wed, 12 Oct 2011 10:53:27 +0200

On Wed, Oct 12, 2011 at 12:13 AM, Ben Abbott <address@hidden> wrote:
> On Oct 11, 2011, at 3:40 PM, bpabbott wrote:
>
>> On Oct 11, 2011, at 02:30 PM, Juan Pablo Carbajal <address@hidden> wrote:
>>
>>> On Tue, Oct 11, 2011 at 8:18 PM, bpabbott <address@hidden> wrote:
>>> > On Oct 11, 2011, at 12:21 PM, Juan Pablo Carbajal <address@hidden>
>>> > wrote:
>>> >
>>> > Ben,
>>> > Ok, I found the problem.
>>> > As I see it, when set(gca,'box','off') is executed, the stream to gnuplot
>>> > adds
>>> >> unset y2tics; set ytics in nomirror
>>> >> unset x2tics; set xtics in nomirror
>>> >> set border 3;
>>> >
>>> > The last line is the problem. With this I see that box off in octave
>>> > means "axes in the left-botom margins".
>>> >
>>> > I see three possible solutions:
>>> > 1 Make set(gca,'box','off') deal with the current state of axis.
>>> > 2. Make set(gca,'box','off') be gnuplot's "unset border"
>>> > 3. Make set(gca,'yaxislocation','zero') be gnuplot's "set yzeroaxis;
>>> > set border 1; "
>>> > Make set(gca,'xaxislocation','zero') be gnuplot's "set xzeroaxis;
>>> > set border 2; "
>>> >
>>> > Thanks
>>> >
>>> > Thanks for looking at this. I prepare a patch later today.
>>> > Ben
>>> >
>>>
>>> Ben,
>>>
>>> Let me known if I can be of assistance. I just need pointers to the
>>> files involved.
>>
>> I've attached a changeset which I hope to test a bit more before pushing. If 
>> you like you can try some tests as well.
>>
>> Ben
>
> I've pushed the change. I used the 3rd option to ensure the box is properly 
> turned off.
>
>        http://hg.savannah.gnu.org/hgweb/octave/rev/16a706965ee0
>
> Ben
>
>
>

Thank you very much Ben!
It works like a charm.



-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

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