ax.twinx().plot() will reset the x_limits if only an axvspan was used on ax #6284
Closed
2 tasks done
Labels
Difficulty: Medium
https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
Milestone
Create a figure and axis, and add a vspan to that axis. If you twinx it, and apply a plot to the twin, the x_limits can adjust, potentially making the vspan not visible.
Minimal code sample:
Note how the x-axis labels shifted away from the range (1,2).
I expected:
Matplotlib 1.5.1 on OS X 10.11 with Python 2.7.10
pip install -U matplotlib
(with SIP disabled)The text was updated successfully, but these errors were encountered: