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 8582248

Browse filesBrowse files
committed
Add detail to comments in _apply_params.
1 parent 4afde2f commit 8582248
Copy full SHA for 8582248

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎lib/matplotlib/axis.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axis.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,19 @@ def _apply_params(self, **kw):
303303
newmarker = [k for k in kw if k in ['size', 'width', 'pad', 'tickdir']]
304304
if newmarker:
305305
self._size = kw.pop('size', self._size)
306+
# Width could be handled outside this block, but it is
307+
# convenient to leave it here.
306308
self._width = kw.pop('width', self._width)
307309
self._base_pad = kw.pop('pad', self._base_pad)
308-
# apply_tickdir makes _pad and _tickmarkers
310+
# apply_tickdir uses _size and _base_pad to make _pad,
311+
# and also makes _tickmarkers.
309312
self.apply_tickdir(kw.pop('tickdir', self._tickdir))
310313
self.tick1line.set_marker(self._tickmarkers[0])
311314
self.tick2line.set_marker(self._tickmarkers[1])
312315
for line in (self.tick1line, self.tick2line):
313316
line.set_markersize(self._size)
314317
line.set_markeredgewidth(self._width)
315-
# _get_text1_transform uses _pad from apply_tickdir
318+
# _get_text1_transform uses _pad from apply_tickdir.
316319
trans = self._get_text1_transform()[0]
317320
self.label1.set_transform(trans)
318321
trans = self._get_text2_transform()[0]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.