Open tacaswell opened 2 years ago
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.
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
see https://github.com/matplotlib/matplotlib/issues/23714
These is some user confusion about when to use
ax.plot
withnp.nan
separated data and when something likeLineCollection
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.