Skip to content

Commit

Permalink
Added documentation changes for matplotlib#2136
Browse files Browse the repository at this point in the history
  • Loading branch information
lennart0901 committed Oct 19, 2014
1 parent 14fa552 commit e5211f1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
3 changes: 2 additions & 1 deletion lib/matplotlib/collections.py
Expand Up @@ -463,7 +463,8 @@ def set_linestyle(self, ls):
"""
Set the linestyle(s) for the collection.
ACCEPTS: ['solid' | 'dashed', 'dashdot', 'dotted' |
ACCEPTS: [ '-' | '--' | '-.' | ':' |
'solid' | 'dashed', 'dashdot', 'dotted' |
(offset, on-off-dash-seq) ]
"""
try:
Expand Down
30 changes: 15 additions & 15 deletions lib/matplotlib/lines.py
Expand Up @@ -915,17 +915,17 @@ def set_linestyle(self, linestyle):
Set the linestyle of the line (also accepts drawstyles)
================ =================
linestyle description
================ =================
``'-'`` solid
``'--'`` dashed
``'-.'`` dash_dot
``':'`` dotted
``'None'`` draw nothing
``' '`` draw nothing
``''`` draw nothing
================ =================
================ =================
linestyle description
================ =================
``'-'`` or ``'solid'`` solid line
``'--'`` or ``'dashed'`` dashed line
``'-.'`` or ``'dash_dot'`` dash-dotted line
``':'`` or ``'dotted'`` dotted line
``'None'`` draw nothing
``' '`` draw nothing
``''`` draw nothing
================ =================
'steps' is equivalent to 'steps-pre' and is maintained for
backward-compatibility.
Expand All @@ -935,10 +935,10 @@ def set_linestyle(self, linestyle):
:meth:`set_drawstyle`
To set the drawing style (stepping) of the plot.
ACCEPTS: [``'-'`` | ``'--'`` | ``'-.'`` | ``':'`` | ``'None'`` |
``' '`` | ``''``]
and any drawstyle in combination with a linestyle, e.g., ``'steps--'``.
ACCEPTS: [``'-'`` | ``'--'`` | ``'-.'`` | ``':'`` |
``'solid'`` | ``'dashed'`` | ``'dash_dot'`` | ``'dotted'`` |
``'None'`` | ``' '`` | ``''``]
and any drawstyle in combination with a linestyle, e.g., ``'steps--'``.
"""
if not is_string_like(linestyle):
if len(linestyle) != 2:
Expand Down
4 changes: 3 additions & 1 deletion lib/matplotlib/patches.py
Expand Up @@ -339,7 +339,9 @@ def set_linestyle(self, ls):
"""
Set the patch linestyle
ACCEPTS: ['solid' | 'dashed' | 'dashdot' | 'dotted']
ACCEPTS: ['-' | '--' | '-.' | ':' |
'solid' | 'dashed' | 'dashdot' | 'dotted' |
(offset, on-off-dash-seq) ]
"""
if ls is None:
ls = "solid"
Expand Down

0 comments on commit e5211f1

Please sign in to comment.