Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Use :mpltype:color
for color types#27557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
timhoffm commentedDec 22, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I'm unclear why the doc build is failing. I've only added |
Found the bug in the |
e1d4154
to6df7c6d
Comparelib/matplotlib/axes/_axes.py Outdated
@@ -1073,7 +1073,7 @@ def hlines(self, y, xmin, xmax, colors=None, linestyles='solid', | |||
Respective beginning and end of each line. If scalars are | |||
provided, all lines will have the same length. | |||
colors : color or list of colors, default: :rc:`lines.color` | |||
colors ::mpltype:`color` or list of colors, default: :rc:`lines.color` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Why is this onelist of colors
, while the others were changed tolist of color
(and some others where changed tolist of :mpltype:'color'
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The canoncial description is "list of [type]", i.e. should be "list of color". However, this is currently quite inconsistent. I've only changed it when changing the text anyway.
For "color or list of color" I've refrained from linking the second color if that would make a a line continuation necessary. But that's debatable of course.
lib/matplotlib/quiver.py Outdated
@@ -179,7 +179,7 @@ | |||
Minimum length as a multiple of shaft width; if an arrow length | |||
is less than this, plot a dot (hexagon) of this diameter instead. | |||
color : color or color sequence, optional | |||
color ::mpltype:`color` or color sequence, optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Shouldcolor sequence
here belist of :mpltype:color
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Fixed. - On a general note, I've used a couple of search/replace patterns. It is likely that I have not found all color type definitions with that. I think it's enough to start with the bulk here and fix others later if we find them.
Semi-OT: I don't think our GitHub auto-labeling (ref.#27633) makes much sense here. Can we fine-tune this. Or make deactivation possible (maybe through a "no-auto-label" label)? Or should we just live with it? |
Uh oh!
There was an error while loading.Please reload this page.
`inline.interpreted()` already returns a list of nodes. We mustn't wrapit in another list.
It only cares about file names, so you can't have it ignore PRs where just docstring are touched, for example. |
Follow up to#27200.