Skip to content

Commit 608e85f

Browse files
committed
Tweaking docstrings in MarkerStyle.
1 parent 0d15d08 commit 608e85f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

lib/matplotlib/markers.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def transformed(self, transform: Affine2D):
426426
Parameters
427427
----------
428428
transform : Affine2D, default: None
429-
- transform will be combined with current user supplied transform.
429+
Transform will be combined with current user supplied transform.
430430
"""
431431
new_marker = MarkerStyle(self)
432432
if new_marker._user_transform is not None:
@@ -442,12 +442,12 @@ def rotated(self, deg=None, rad=None):
442442
Parameters
443443
----------
444444
deg : float, default: None
445-
- use this parameter to specify rotation angle in degrees.
445+
Use this parameter to specify rotation angle in degrees.
446446
447447
rad : float, default: None
448-
- use this parameter to specify rotation angle in radians.
448+
Use this parameter to specify rotation angle in radians.
449449
450-
Note: you must specify exactly one of deg or rad.
450+
.. note:: You must specify exactly one of deg or rad.
451451
"""
452452
if not ((deg is None) ^ (rad is None)):
453453
raise ValueError("Exactly one of deg or rad shall be used.")
@@ -473,10 +473,9 @@ def scaled(self, sx, sy=None):
473473
Parameters
474474
----------
475475
sx : float
476-
- *x*-direction scaling factor.
477-
476+
*X*-direction scaling factor.
478477
sy : float, default: None
479-
- *y*-direction scaling factor.
478+
*Y*-direction scaling factor.
480479
"""
481480
if sy is None:
482481
sy = sx
@@ -493,9 +492,9 @@ def translated(self, tx, ty):
493492
Parameters
494493
----------
495494
tx : float
496-
495+
Coordinate for translation in *x*-direction.
497496
ty : float
498-
497+
Coordinate for translation in *y*-direction.
499498
"""
500499
new_marker = MarkerStyle(self)
501500
_transform = new_marker._user_transform or Affine2D()

0 commit comments

Comments
 (0)