Skip to content

Commit 8582248

Browse files
committed
Add detail to comments in _apply_params.
1 parent 4afde2f commit 8582248

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/matplotlib/axis.py

Lines 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)