Skip to content

Minor changes about stackplot documentation #20036

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
motimace opened this issue Apr 21, 2021 · 1 comment · Fixed by #20041
Closed

Minor changes about stackplot documentation #20036

motimace opened this issue Apr 21, 2021 · 1 comment · Fixed by #20041
Milestone

Comments

@motimace
Copy link

Problem

https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.stackplot.html#matplotlib.axes.Axes.stackplot

I found labels & colors to be unclear because Length N list of str & Length N list of color made me think that Length have to be equal to length of x. It is better that length of labels & colors is equal to data series length (M).

Suggested Improvement

labels: list
A sequence of strings providing the labels for each data series.

colors: list, default: None
A list or tuple of colors. These will be cycled through and used to colour the stacked areas.

Matplotlib version

  • Operating system: Windows 10
  • Matplotlib version: 3.4.1
  • Matplotlib documentation version (is listed under the logo): 3.4.1
QuLogic added a commit to QuLogic/matplotlib that referenced this issue Apr 22, 2021
QuLogic added a commit to QuLogic/matplotlib that referenced this issue Apr 22, 2021
@QuLogic
Copy link
Member

QuLogic commented Apr 22, 2021

Please see the linked PR above.

@QuLogic QuLogic added this to the v3.4.2 milestone Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants