You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a “CN” color spec, i.e. 'C' followed by a single digit, which is an index into the default property cycle (matplotlib.rcParams['axes.prop_cycle']); the indexing occurs at artist creation time and defaults to black if the cycle does not include color.
In particular, this implies that the lookup is not performed on the Axes' prop_cycle (but the global one), which is the actual behavior, may be a bit strange but I guess is OK.
On the other hand, the look up definitely occurs at draw time and not at artist creation time:
We need to discuss whether the doc is wrong or the behavior is wrong...
Matplotlib version
Operating system:
Matplotlib version: master (there was some refactoring in New color conversion machinery. #6382 but looking at the diff it is clear that the current behavior was already present earlier).
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
Bug report
Bug summary
http://matplotlib.org/devdocs/tutorials/colors/colors.html states that
In particular, this implies that the lookup is not performed on the Axes' prop_cycle (but the global one), which is the actual behavior, may be a bit strange but I guess is OK.
On the other hand, the look up definitely occurs at draw time and not at artist creation time:
Code for reproduction
Actual outcome
outputs 'C0' and a red line, not a tab:blue one.
Expected outcome
We need to discuss whether the doc is wrong or the behavior is wrong...
Matplotlib version
print(matplotlib.get_backend())
):The text was updated successfully, but these errors were encountered: