Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 62dbc20

Browse filesBrowse files
authored
Merge pull request #13313 from timhoffm/doc-tick
Better explanation of ticks
2 parents e8b6519 + 2b3e880 commit 62dbc20
Copy full SHA for 62dbc20

File tree

Expand file treeCollapse file tree

1 file changed

+15
-12
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-12
lines changed

‎lib/matplotlib/axis.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
+15-12Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.