Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
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:mpltypes
and_docstring.interp
that we can then use to have a consistent way to document linestyle across the library.
Proposed fix
- Make something the following table
linestyle_doc
for _docstyle.interpd:
========================================== ================= linestyle description ========================================== ================= ``'-'`` ``'solid'`` solid line ``'--'`` or ``'dashed'`` dashed line ``'-.'`` or ``'dashdot'`` dash-dotted line ``':'`` or ``'dotted'`` dotted line ``'none'``, ``'None'``, ``' '``, or ``''`` draw nothing ========================================== =================
- Add something like that table tolinestyles reference (apparently can't reuse the interp in examples :/)
- Add linestyles and a link to the linestyles reference to
matplotlib/lib/matplotlib/sphinxext/roles.py
Lines 126 to 128 in436a12a
type_to_link_target= { 'color':'colors_def', }