-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG/CLN: LinePlot uses incorrect xlim when secondary_y=True #7459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@cpcloud ? |
@sinhrks ? |
@@ -2932,12 +2908,6 @@ def _subplots(nrows=1, ncols=1, naxes=None, sharex=False, sharey=False, squeeze= | |||
|
|||
ax : Matplotlib axis object, optional | |||
|
|||
secondary_y : boolean or sequence of ints, default False | |||
If True then y-axis will be on the right | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what did these kw's do?
cc @rosnfeld ok with this? |
Not sure how deep a review I can do as I am just about to head out abroad again (more or less offline until August), but this does seem to behave properly in various ad-hoc tests, and seems to clean up a few things that surprised me when I first started looking at plotting code. A somewhat larger/more dramatic change than I would have expected, but glad to see that larger changes are possible/being done to the somewhat thorny (IMO) plotting code. |
BUG/CLN: LinePlot uses incorrect xlim when secondary_y=True
xlim
is not set properly whensecondary_y=True
. This is different issue from #7322.Also, refactored
secondary_y
to be handled only byMPLPlot
, because it will be required in future fix to pass multiple axes todf.plot
, like #7069 (I'm willing to work soon..).