-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
df.plot with two plots in the same axes and 2nd one is line plot makes different chart between 0.23.4 and 0.25.0 #27686
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
Comments
@wh243s can you debug to figure out what is going on? |
It happens when the second chart is the line chart in the same axes. |
@TomAugspurger https://github.com/pandas-dev/pandas/issues/27796. Same issue. This also happens when I use seaborn to plot a heatmap. |
You're saying #27796 is a duplicate of this? |
I guess so. I mean the results(plots) we get are the same: line charts would re-define the range of x-axis, which makes the line chart starts from the origin. But there should be a certain distance between the line chart and the origin. |
Ok I'll close that one then.
…On Thu, Aug 8, 2019 at 7:17 AM arthurire ***@***.***> wrote:
You're saying #27796 <#27796>
is a duplicate of this?
I guess so.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27686?email_source=notifications&email_token=AAKAOISFT34CCORT7VDIO6DQDQFDZA5CNFSM4IINZVVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD33NPZA#issuecomment-519493604>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIXYBGAIYY6ADQM5A7LQDQFDZANCNFSM4IINZVVA>
.
|
The fix to this causes broader limits that were set prior to calls to pandas.DataFrame.plot.(line|area) to be lost. The fix is to manually set the desired axis limit after the calls to DataFrame.plot, but it was still a bit of a surprise to have it narrow the x-axis after the was specifically set larger so that projection lines (pyplot.axvline) would be visible. |
Code Sample, a copy-pastable example if possible
Problem description
dataframe.plot with secondary_y=True makes different chart between 0.23.4 and 0.25.0 as attached.


Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
Note: Many problems can be resolved by simply upgrading
pandas
to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check ifmaster
addresses this issue, but that is not necessary.For documentation-related issues, you can check the latest versions of the docs on
master
here:https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
Expected Output
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]The text was updated successfully, but these errors were encountered: