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

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

[Octave-bug-tracker] [bug #51720] output of set(gca, "ycolor", ...) only


From: wilhelm
Subject: [Octave-bug-tracker] [bug #51720] output of set(gca, "ycolor", ...) only applies when "yticklabelmode" (or "yticklabel") is set explicitly
Date: Thu, 10 Aug 2017 03:21:05 -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/?51720>

                 Summary: output of set(gca,"ycolor",...) only applies when
"yticklabelmode" (or "yticklabel") is set explicitly
                 Project: GNU Octave
            Submitted by: petermeier
            Submitted on: Thu 10 Aug 2017 07:21:03 AM UTC
                Category: None
                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:

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






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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