Skip to content

Commit

Permalink
Merge pull request matplotlib#29343 from timhoffm/mnt-discourage-line…
Browse files Browse the repository at this point in the history
…style

MNT: Discourage alternate strings for 'none' linestyle
  • Loading branch information
story645 authored Dec 19, 2024
2 parents 9db1b97 + 55320d3 commit a18354a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions lib/matplotlib/inset.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ def set_linestyle(self, ls):
"""
Set the linestyle of the rectangle and the connectors.
========================================== =================
linestyle description
========================================== =================
``'-'`` or ``'solid'`` solid line
``'--'`` or ``'dashed'`` dashed line
``'-.'`` or ``'dashdot'`` dash-dotted line
``':'`` or ``'dotted'`` dotted line
``'none'``, ``'None'``, ``' '``, or ``''`` draw nothing
========================================== =================
======================================================= ================
linestyle description
======================================================= ================
``'-'`` or ``'solid'`` solid line
``'--'`` or ``'dashed'`` dashed line
``'-.'`` or ``'dashdot'`` dash-dotted line
``':'`` or ``'dotted'`` dotted line
``''`` or ``'none'`` (discouraged: ``'None'``, ``' '``) draw nothing
======================================================= ================
Alternatively a dash tuple of the following form can be provided::
Expand Down
18 changes: 9 additions & 9 deletions lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,15 +1152,15 @@ def set_linestyle(self, ls):
- A string:
========================================== =================
linestyle description
========================================== =================
``'-'`` or ``'solid'`` solid line
``'--'`` or ``'dashed'`` dashed line
``'-.'`` or ``'dashdot'`` dash-dotted line
``':'`` or ``'dotted'`` dotted line
``'none'``, ``'None'``, ``' '``, or ``''`` draw nothing
========================================== =================
======================================================= ================
linestyle description
======================================================= ================
``'-'`` or ``'solid'`` solid line
``'--'`` or ``'dashed'`` dashed line
``'-.'`` or ``'dashdot'`` dash-dotted line
``':'`` or ``'dotted'`` dotted line
``''`` or ``'none'`` (discouraged: ``'None'``, ``' '``) draw nothing
======================================================= ================
- Alternatively a dash tuple of the following form can be
provided::
Expand Down
18 changes: 9 additions & 9 deletions lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,15 +445,15 @@ def set_linestyle(self, ls):
"""
Set the patch linestyle.
========================================== =================
linestyle description
========================================== =================
``'-'`` or ``'solid'`` solid line
``'--'`` or ``'dashed'`` dashed line
``'-.'`` or ``'dashdot'`` dash-dotted line
``':'`` or ``'dotted'`` dotted line
``'none'``, ``'None'``, ``' '``, or ``''`` draw nothing
========================================== =================
======================================================= ================
linestyle description
======================================================= ================
``'-'`` or ``'solid'`` solid line
``'--'`` or ``'dashed'`` dashed line
``'-.'`` or ``'dashdot'`` dash-dotted line
``':'`` or ``'dotted'`` dotted line
``''`` or ``'none'`` (discouraged: ``'None'``, ``' '``) draw nothing
======================================================= ================
Alternatively a dash tuple of the following form can be provided::
Expand Down

0 comments on commit a18354a

Please sign in to comment.