========================================== =================
linestyle description
========================================== =================
``'-'`` ``'solid'`` solid line
``'--'`` or ``'dashed'`` dashed line
``'-.'`` or ``'dashdot'`` dash-dotted line
``':'`` or ``'dotted'`` dotted line
``'none'``, ``'None'``, ``' '``, or ``''`` draw nothing
========================================== =================
Summary
The manual docs for linestyle in #27996 have me thinking of the ideas in #18664 and that we can do a simplified version of this using
:mpltypesand_docstring.interpthat we can then use to have a consistent way to document linestyle across the library.Proposed fix
linestyle_docfor _docstyle.interpd:matplotlib/lib/matplotlib/sphinxext/roles.py
Lines 126 to 128 in 436a12a