octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #51721] when using several right yaxes in a pl


From: wilhelm
Subject: [Octave-bug-tracker] [bug #51721] when using several right yaxes in a plot with box on the yticklabels get confused
Date: Thu, 10 Aug 2017 04:27:22 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

URL:
  <http://savannah.gnu.org/bugs/?51721>

                 Summary: when using several right yaxes in a plot with box on
the yticklabels get confused
                 Project: GNU Octave
            Submitted by: petermeier
            Submitted on: Thu 10 Aug 2017 08:27:20 AM UTC
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: wilhelm
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

When 2 axes with right y-axes and at least one boxed axes-object with left
yaxis are used, the second y axis somehow takes over the ticklabels of the
first right y-axis for the (not to be tick-labeled) left tickmarks of the
boxed axes-object with left-yaxis.

I know this sounds confusing, which is probably the reason why this has not
been spotted before, here is an example:


pos1=[.15,.15,.75,.4];
pos2=[.15,.55,.75,.4];
boxstate="on";

#this results in wrong output
figure(1)
clf
ax2=axes("nextplot","add")
plot(1:10,sqrt(3.6:12.6),"r")
set(ax2,"yaxislocation","right","yticklabel","2","position",pos1,"box",boxstate,"color","none")
ax3=axes("nextplot","add")
plot(1:10,sqrt(2.1:11.1),"c")
set(ax3,"yaxislocation","left","yticklabel","3","position",pos2,"box",boxstate,"color","none")
ax4=axes("nextplot","add")
plot(1:10,sqrt(3.1:12.1),"k")
set(ax4,"yaxislocation","right","yticklabel","4","position",pos2,"box",boxstate,"color","none")

#without the boxed, left yaxis, axes-object it works
figure(2)
clf
ax2=axes("nextplot","add")
plot(1:10,sqrt(3.6:12.6),"r")
set(ax2,"yaxislocation","right","yticklabel","2","position",pos1,"box",boxstate,"color","none")

#ax3=axes("nextplot","add")
#plot(1:10,sqrt(2.1:11.1),"c")
#set(ax3,"yaxislocation","left","yticklabel","3","position",pos2,"box",boxstate,"color","none")

ax4=axes("nextplot","add")
plot(1:10,sqrt(3.1:12.1),"k")
set(ax4,"yaxislocation","right","yticklabel","4","position",pos2,"box",boxstate,"color","none")

#without boxing it works as well
boxstate="off";

figure(3)
clf

ax2c=axes("nextplot","add")
plot(1:10,sqrt(3.6:12.6),"r")
set(ax2c,"yaxislocation","right","yticklabel","2","position",pos1,"box",boxstate,"color","none")

ax3=axes("nextplot","add")
plot(1:10,sqrt(2.1:11.1),"c")
set(ax3,"yaxislocation","left","yticklabel","3","position",pos2,"box",boxstate,"color","none")

ax4c=axes("nextplot","add")
plot(1:10,sqrt(3.1:12.1),"k")
set(ax4c,"yaxislocation","right","yticklabel","4","position",pos2,"box",boxstate,"color","none")






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51721>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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