bugGNU Octave - Bugs: bug #51721, when using several right yaxes in...

 
 

bug #51721: when using several right yaxes in a plot with box on the yticklabels get confused

Submitter:  wilhelm <petermeier>
Submitted:  Thu 10 Aug 2017 08:27:20 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  wilhelm Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 22 Aug 2017 08:50:33 AM UTC, comment #4: 

Closing as fixed, according to OP's reuqest

Avinoam Kalma <avinoam>
Group Member
Tue 22 Aug 2017 07:18:20 AM UTC, comment #3: 

Thanks a lot for the quick replies, after a week of vacation I upgraded my octave to current stable and voila:

Issue is solved when upgrading to octave 4.2.1.
Please close the discussion.


@ RIK

My gnuplot version is gnuplot 4.6 patchlevel 7

I tried OpenGL before and had difficulites formatting a properly publishable graphics file, so I stayed with gnuplot (because I try to be lazy).



wilhelm <petermeier>
Thu 10 Aug 2017 03:44:10 PM UTC, comment #2: 

Also, version 4.0.0 of Octave is deprecated and no longer supported.  This may already have been fixed in the latest stable version 4.2.1.

Besides a screenshot, can you also supply the version of gnuplot you are using?  At a shell prompt


gnuplot --version


Finally, the Octave interface to gnuplot is not as good as the interfaces to OpenGL which are available for the fltk or qt toolkits.  In addition to upgrading Octave, you might try switching toolkits to see if the results are better.

Rik <rik5>
Group administrator
Thu 10 Aug 2017 11:28:52 AM UTC, comment #1: 

I ran your code with octave 4.2.1+
and I don't know if I am seeing what you are seeing!

You should attach a picture of what you are seeing.

Doug Stewart <dastew>
Thu 10 Aug 2017 08:27:20 AM UTC, original submission:  

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")


wilhelm <petermeier>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by petermeier (Submitted the item)
  • -email is unavailable- added by petermeier
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-22 avinoam StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2017-08-10 rik5 StatusNone Need Info
    2017-08-10 petermeier Carbon-Copy- Added petermeier

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code