[Top][All Lists]

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

[Octave-bug-tracker] [bug #62645] Colormap or ColorOrder not respected b

From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #62645] Colormap or ColorOrder not respected by `bar`
Date: Fri, 17 Jun 2022 05:46:33 -0400 (EDT)

Update of bug #62645 (project octave):

                  Status:            Works For Me => Confirmed              
                 Release:                   7.1.0 => dev                    
        Operating System:               GNU/Linux => Any                    
                 Summary:       Colormap not work => Colormap or ColorOrder
not respected by `bar`


Follow-up Comment #2:

I can confirm that issue.
The bar plot uses the default colors instead of a gray color scheme.

There might be two separate issues causing this:
1. There is no listener to the colormap property for the bar plot. But the
documentation of bar states:
> The default color for bars is taken from the axes’ "ColorOrder" property.
So setting the colormap might not be expected to work in the first place.

2. Even if that is changed in the reproducer, `bar` doesn't respect what is
set for the `"ColorOrder"` property of its parent axes either:

hf = figure(); clf(hf);
hax = axes(hf, 'ColorOrder', gray(5));
bar (hax, rand(10,3));

The second issue might be caused by the usage of `newplot` in `__bar__` (line
225) which resets the default properties of the axes afaict.
Not sure what that is needed for. Maybe it should be conditional on something
(e.g., whether `bar` is called with an `axes` handle argument or not). Or it
might be possible to remove it unconditionally (and change the current axes

What does Matlab do?


Reply to this item at:


Message sent via Savannah

reply via email to

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