Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b3e880

Browse files
committed
Better explanation of ticks
1 parent d7c6c5b commit 2b3e880

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

lib/matplotlib/axis.py

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Classes for the ticks and x and y axis
2+
Classes for the ticks and x and y axis.
33
"""
44

55
import datetime
@@ -33,22 +33,25 @@
3333

3434
class Tick(martist.Artist):
3535
"""
36-
Abstract base class for the axis ticks, grid lines and labels
36+
Abstract base class for the axis ticks, grid lines and labels.
3737
38-
1 refers to the bottom of the plot for xticks and the left for yticks
39-
2 refers to the top of the plot for xticks and the right for yticks
38+
Ticks mark a position on an Axis. They contain two lines as markers and
39+
two labels; one each for the bottom and top positions (in case of an
40+
`.XAxis`) or for the left and right positions (in case of a `.YAxis`).
4041
4142
Attributes
4243
----------
43-
tick1line : Line2D
44+
tick1line : `.Line2D`
45+
The left/bottom tick marker.
46+
tick2line : `.Line2D`
47+
The right/top tick marker.
48+
gridline : `.Line2D`
49+
The grid line associated with the label position.
50+
label1 : `.Text`
51+
The left/bottom tick label.
52+
label2 : `.Text`
53+
The right/top tick label.
4454
45-
tick2line : Line2D
46-
47-
gridline : Line2D
48-
49-
label1 : Text
50-
51-
label2 : Text
5255
"""
5356
def __init__(self, axes, loc, label,
5457
size=None, # points

0 commit comments

Comments
 (0)