8000 update writing docs concerning explicit parameter lists · matplotlib/matplotlib@3e45bbf · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e45bbf

Browse files
committed
update writing docs concerning explicit parameter lists
1 parent 407a460 commit 3e45bbf

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

doc/devel/documenting_mpl.rst

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ An example docstring looks like:
337337
338338
colors : array_like of colors, optional, default: 'k'
339339
340-
linestyles : ['solid' | 'dashed' | 'dashdot' | 'dotted'], optional
340+
linestyles : {'solid', 'dashed', 'dashdot', 'dotted'}, optional
341341
342342
label : string, optional, default: ''
343343
@@ -389,10 +389,9 @@ to keep in mind:
389389
Parameters
390390
----------
391391
projection :
392-
['aitoff' | 'hammer' | 'lambert' | 'mollweide' | \
393-
'polar' | 'rectilinear'], optional
392+
{'aitoff', 'hammer', 'lambert', 'mollweide', 'polar', \
393+
'rectilinear'}, optional
394394
The projection type of the axes.
395-
"""
396395
397396
...
398397
"""
@@ -411,6 +410,14 @@ to keep in mind:
411410
-------
412411
lines : `~matplotlib.collections.LineCollection`
413412
413+
414+
Deprecated formatting conventions
415+
---------------------------------
416+
* Formerly, we have used square brackets for explicit parameter lists
417+
``['solid' | 'dashed' | 'dotted']``. With numpydoc we have switched to their
418+
standard using curly braces ``{'solid', 'dashed', 'dotted'}``.
419+
420+
414421
Linking to other code
415422
---------------------
416423
To link to other methods, classes, or modules in Matplotlib you can encase

0 commit comments

Comments
 (0)
0