bugGNU Octave - Bugs: bug #51720, output of...

 
 

bug #51720: output of set(gca,"ycolor",...) only applies when "yticklabelmode" (or "yticklabel") is set explicitly

Submitter:  wilhelm <petermeier>
Submitted:  Thu 10 Aug 2017 07:21:03 AM UTC
   
 
Category:  Plotting 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
   

Thu 10 Aug 2017 03:32:17 PM UTC, comment #1: 

The version of Octave that you are using, 4.0.0, is deprecated and no longer supported.  The current stable version is 4.2.1.  I ran your sample code in that version and the ycolor attribute is always respected and the labels and axes turn red.

I suggest upgrading to the current stable version for better results.

Rik <rik5>
Group administrator
Thu 10 Aug 2017 07:21:03 AM UTC, original submission:  

ycolor in set(gca) applies only to the ticklabels, if yticklabel is set explicitly, otherwise ticklabels stay black. It seems "yticklabelmode" is not updated to "manual" when "ytick" is set. But "yticklabelmode is set to manual when "yticklabel" is set manually. Probably its the same with xcolor (but I did not check).


example (to see the different colors)

"case 1"
figure(1)
plot(1:10,1:10)
set(gca,"ytick",2:2:10,"ycolor","r")
get(gca,"ycolor")
get(gca,"yticklabelmode")
#
"case 2"
figure(2)
plot(1:10,1:10)
set(gca,"ytick",2:2:10,"ycolor","r","yticklabel",{"2","4","6","8","10"})
get(gca,"ycolor")
get(gca,"yticklabelmode")
#
"case 3"
figure(3)
plot(1:10,1:10)
set(gca,"ytick",2:2:10,"ycolor","r","yticklabelmode","manual")
get(gca,"ycolor")
get(gca,"yticklabelmode")


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 rik5 (Posted a comment)
  • -email is unavailable- added by petermeier (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-08-10 rik5 CategoryNone Plotting
        StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code