64
64
rotated by ``angle``.
65
65
============================== ====== =========================================
66
66
67
- As a deprecated feature, ``None`` also means 'nothing' when directly
68
- constructing a `.MarkerStyle`, but note that there are other contexts where
69
- ``marker=None`` instead means "the default marker" (e.g. :rc:`scatter.marker`
70
- for `.Axes.scatter`).
71
-
72
67
Note that special symbols can be defined via the
73
68
:ref:`STIX math font <mathtext>`,
74
69
e.g. ``"$\u266B$"``. For an overview over the STIX font symbols refer to the
@@ -227,24 +222,22 @@ def __init__(self, marker,
227
222
"""
228
223
Parameters
229
224
----------
230
- marker : str, array-like, Path, MarkerStyle, or None
231
- - Another instance of *MarkerStyle* copies the details of that
232
- ``marker``.
233
- - *None* means no marker. This is the deprecated default.
225
+ marker : str, array-like, Path, MarkerStyle
226
+ - Another instance of `MarkerStyle` copies the details of that *marker*.
234
227
- For other possible marker values, see the module docstring
235
228
`matplotlib.markers`.
236
229
237
230
fillstyle : str, default: :rc:`markers.fillstyle`
238
231
One of 'full', 'left', 'right', 'bottom', 'top', 'none'.
239
232
240
- transform : transforms.Transform, default: None
233
+ transform : `~matplotlib. transforms.Transform`, optional
241
234
Transform that will be combined with the native transform of the
242
235
marker.
243
236
244
- capstyle : `.CapStyle` or %(CapStyle)s, default: None
237
+ capstyle : `.CapStyle` or %(CapStyle)s, optional
245
238
Cap style that will override the default cap style of the marker.
246
239
247
- joinstyle : `.JoinStyle` or %(JoinStyle)s, default: None
240
+ joinstyle : `.JoinStyle` or %(JoinStyle)s, optional
248
241
Join style that will override the default join style of the marker.
249
242
"""
250
243
self ._marker_function = None
@@ -309,10 +302,8 @@ def _set_marker(self, marker):
309
302
310
303
Parameters
311
304
----------
312
- marker : str, array-like, Path, MarkerStyle, or None, default: None
313
- - Another instance of *MarkerStyle* copies the details of that
314
- ``marker``.
315
- - *None* means no marker.
305
+ marker : str, array-like, Path, MarkerStyle
306
+ - Another instance of `MarkerStyle` copies the details of that *marker*.
316
307
- For other possible marker values see the module docstring
317
308
`matplotlib.markers`.
318
309
"""
@@ -388,13 +379,13 @@ def get_user_transform(self):
388
379
if self ._user_transform is not None :
389
380
return self ._user_transform .frozen ()
390
381
391
- def transformed (self , transform : Affine2D ):
382
+ def transformed (self , transform ):
392
383
"""
393
384
Return a new version of this marker with the transform applied.
394
385
395
386
Parameters
396
387
----------
397
- transform : `~matplotlib.transforms.Affine2D`, default: None
388
+ transform : `~matplotlib.transforms.Affine2D`
398
389
Transform will be combined with current user supplied transform.
399
390
"""
400
391
new_marker = MarkerStyle (self )
@@ -410,10 +401,10 @@ def rotated(self, *, deg=None, rad=None):
410
401
411
402
Parameters
412
403
----------
413
- deg : float, default: None
404
+ deg : float, optional
414
405
Rotation angle in degrees.
415
406
416
- rad : float, default: None
407
+ rad : float, optional
417
408
Rotation angle in radians.
418
409
419
410
.. note:: You must specify exactly one of deg or rad.
@@ -437,14 +428,14 @@ def scaled(self, sx, sy=None):
437
428
"""
438
429
Return new marker scaled by specified scale factors.
439
430
440
- If *sy* is None , the same scale is applied in both the *x*- and
431
+ If *sy* is not given , the same scale is applied in both the *x*- and
441
432
*y*-directions.
442
433
443
434
Parameters
444
435
----------
445
436
sx : float
446
437
*X*-direction scaling factor.
447
- sy : float, default: None
438
+ sy : float, optional
448
439
*Y*-direction scaling factor.
449
440
"""
450
441
if sy is None :
0 commit comments