Skip to content

Commit 06a13df

Browse files
authored
Merge pull request matplotlib#31439 from Chirag3841/fix-secondary-axis-doc
Clarify SecondaryAxes limit behavior via documentation
2 parents 0adda9f + 5fd2d99 commit 06a13df

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/matplotlib/axes/_secondary_axes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,10 @@ def set_color(self, color):
333333
components except for the complementary axis are hidden. You may modify
334334
the complementary axis, e.g. by setting ticks or an axis label. However,
335335
it is not designed to hold data, so that you should not call any
336-
plotting methods on it.
336+
plotting methods on it. Its limits are derived from the parent Axes via
337+
the specified transformation, and setting limits on the secondary axis
338+
(e.g., via ``set_xlim`` or ``set_ylim``) has no effect.
339+
337340
338341
Other Parameters
339342
----------------

0 commit comments

Comments
 (0)