Skip to content

Commit d180725

Browse files
jklymakMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #10683: Convert Tick attributes to numpydoc
1 parent 1d311f2 commit d180725

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

lib/matplotlib/axis.py

+17-23
Original file line numberDiff line numberDiff line change
@@ -44,38 +44,32 @@ class Tick(artist.Artist):
4444
1 refers to the bottom of the plot for xticks and the left for yticks
4545
2 refers to the top of the plot for xticks and the right for yticks
4646
47-
Publicly accessible attributes:
47+
Attributes
48+
----------
49+
tick1line : Line2D
4850
49-
:attr:`tick1line`
50-
a Line2D instance
51+
tick2line : Line2D
5152
52-
:attr:`tick2line`
53-
a Line2D instance
53+
gridline : Line2D
5454
55-
:attr:`gridline`
56-
a Line2D instance
55+
label1 : Text
5756
58-
:attr:`label1`
59-
a Text instance
57+
label2 : Text
6058
61-
:attr:`label2`
62-
a Text instance
59+
gridOn : bool
60+
Determines whether to draw the tickline.
6361
64-
:attr:`gridOn`
65-
a boolean which determines whether to draw the tickline
62+
tick1On : bool
63+
Determines whether to draw the first tickline.
6664
67-
:attr:`tick1On`
68-
a boolean which determines whether to draw the 1st tickline
65+
tick2On : bool
66+
Determines whether to draw the second tickline.
6967
70-
:attr:`tick2On`
71-
a boolean which determines whether to draw the 2nd tickline
72-
73-
:attr:`label1On`
74-
a boolean which determines whether to draw tick label
75-
76-
:attr:`label2On`
77-
a boolean which determines whether to draw tick label
68+
label1On : bool
69+
Determines whether to draw the first tick label.
7870
71+
label2On : bool
72+
Determines whether to draw the second tick label.
7973
"""
8074
def __init__(self, axes, loc, label,
8175
size=None, # points

0 commit comments

Comments
 (0)