@@ -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+
414421Linking to other code
415422---------------------
416423To link to other methods, classes, or modules in Matplotlib you can encase
0 commit comments