help-octave
[Top][All Lists]
Advanced

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

Re: change position of x-axis


From: Ben Abbott
Subject: Re: change position of x-axis
Date: Tue, 11 Oct 2011 18:13:07 -0400

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




reply via email to

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