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

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

[Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots


From: Rik
Subject: [Octave-bug-tracker] [bug #59589] default color in bar (and hist) plots is different from Matlab
Date: Tue, 1 Dec 2020 14:16:20 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36

Update of bug #59589 (project octave):

                 Release:                   6.1.0 => dev                    

    _______________________________________________________

Follow-up Comment #1:

In Matlab 2017b, they switched from using colors from the "colormap" property
of the axes or figure to using colors from the "colororder" property.  That is
the root incompatibility.

For example, this reproduces the same result as Matlab


h = bar (1:5);
set (h, 'facecolor', get (gca, 'colororder')(1,:))
get (h, 'facecolor')
ans =

        0   0.4470   0.7410


I don't think there would be any objection if you wanted to modify __bar__.m
to use "colororder".

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59589>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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