Clarify when to use None / np.nan to segement data
Author: tacaswellCreated Aug 25, 2022Updated Sep 21, 2022
see https://github.com/matplotlib/matplotlib/issues/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.
Source: matplotlib/cheatsheets