Skip to content
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

Clarify when to use None / np.nan to segement data #113

Open
tacaswell opened this issue Aug 25, 2022 · 2 comments
Open

Clarify when to use None / np.nan to segement data #113

tacaswell opened this issue Aug 25, 2022 · 2 comments

Comments

@tacaswell
Copy link
Member

see matplotlib/matplotlib#23714

These is some user confusion about when to use ax.plot with np.nan separated data and when something like LineCollection is a better choice. In particular, using the segmented data approach the line will be drawn as a single path which will not show self-intersection for alpha < 1.

@timhoffm timhoffm added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Aug 26, 2022
@rougier
Copy link
Member

rougier commented Sep 21, 2022

But does that mean we need to include this in the cheatsheets ? I initially added the None case because I discovered it quite lately and thought it might something worth to be known even though there is a clear difference in output.

@timhoffm
Copy link
Member

This is definitely too specialized and complex for the cheetsheet. I recommend moving the topic back to our docs, e.g. to https://matplotlib.org/devdocs/users/explain/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants