Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Doc]: style string for matplotlib.pyplot.plot¶ #25326

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
martinlicht opened this issue Feb 25, 2023 · 2 comments
Closed

[Doc]: style string for matplotlib.pyplot.plot¶ #25326

martinlicht opened this issue Feb 25, 2023 · 2 comments
Labels

Comments

@martinlicht
Copy link

martinlicht commented Feb 25, 2023

Documentation Link

https://matplotlib.org/2.1.2/api/_as_gen/matplotlib.pyplot.plot.html

Problem

The documentation explains the line style marker. After listing format string characters and single-letter color abbreviations, it goes on with:

In addition, you can specify colors in many weird and wonderful ways, including full names ('green'), hex strings ('#8000'), RGB or RGBA tuples ((0,1,0,1)) or grayscale intensities as a string ('0.8'). Of these, the string specifications can be used in place of a fmt group, but the tuple forms can be used only as kwargs.

The first sentence suggests that you can use full names, hex, and RGBA tuple strings in addition to the color abbreviations in a format string.

Suggested improvement

Possible rephrase:

In place of a fmt group, you can specify colors in many weird and wonderful ways, including full names ('green'), hex strings ('#8000'), or grayscale intensities as a string ('0.8'). You can also use RGB or RGBA tuples ((0,1,0,1)), but the tuple forms can be used only as kwargs.

@rcomer
Copy link
Member

rcomer commented Feb 25, 2023

That version of the docs is rather old (2018). Do you find the most recent version better?
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.plot.html#matplotlib-pyplot-plot

@jklymak jklymak added the status: needs clarification Issues that need more information to resolve. label Feb 25, 2023
@martinlicht
Copy link
Author

Thank you, I didn't realize that documentation was from a much older version.

@QuLogic QuLogic added Community support Users in need of help. and removed status: needs clarification Issues that need more information to resolve. labels Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants