@@ -337,7 +337,7 @@ An example docstring looks like:
337
337
338
338
colors : array_like of colors, optional, default: 'k'
339
339
340
- linestyles : [ 'solid' | 'dashed' | 'dashdot' | 'dotted'] , optional
340
+ linestyles : { 'solid', 'dashed', 'dashdot', 'dotted'} , optional
341
341
342
342
label : string, optional, default: ''
343
343
@@ -389,10 +389,9 @@ to keep in mind:
389
389
Parameters
390
390
----------
391
391
projection :
392
- [ 'aitoff' | 'hammer' | 'lambert' | 'mollweide' | \
393
- 'polar' | ' rectilinear'] , optional
392
+ { 'aitoff', 'hammer', 'lambert', 'mollweide', 'polar', \
393
+ 'rectilinear'} , optional
394
394
The projection type of the axes.
395
- """
396
395
397
396
...
398
397
"""
@@ -411,6 +410,14 @@ to keep in mind:
411
410
-------
412
411
lines : `~matplotlib.collections.LineCollection`
413
412
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
+
414
421
Linking to other code
415
422
---------------------
416
423
To link to other methods, classes, or modules in Matplotlib you can encase
0 commit comments