Skip to content

BUG: Correct the previous bug fixing on xlim for plotting #28059

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

Merged
merged 8 commits into from
Aug 21, 2019

Conversation

charlesdong1991
Copy link
Member

@charlesdong1991 charlesdong1991 commented Aug 21, 2019

@charlesdong1991
Copy link
Member Author

charlesdong1991 commented Aug 21, 2019

As I mentioned in issue #28021 , I made a big mistake in finding right bug. The problem is kind of found, which is the ax.set_xlim part, my previous was improper that for datetime-like plotting, then it will look differently.

So with this hotfix, the bug for losing margins on axis mentioned in closed issues can still be fixed for non-datetime data, so plotting will be correct. However, for ts_plot, I still need to find a way to create view margin on xaxis. Restoring only test_datetimelike.py proves that ts plot can still work correctly with datetime formatter. @TomAugspurger

sorry again for this, pls let me know if things are not clear.

@charlesdong1991 charlesdong1991 changed the title BUG: Correct the previous bug fixing BUG: Correct the previous bug fixing on xlim for plotting Aug 21, 2019
@charlesdong1991
Copy link
Member Author

charlesdong1991 commented Aug 21, 2019

So to illustrate a bit clearer:

this still works correctly since x is not ts:
Screen Shot 2019-08-21 at 3 06 53 PM
Screen Shot 2019-08-21 at 3 59 55 PM

while this could still have its formatter, only some margin on xaxis will need to be fixed
Screen Shot 2019-08-21 at 3 07 17 PM
Screen Shot 2019-08-21 at 3 09 48 PM

@TomAugspurger
Copy link
Contributor

Thanks @charlesdong1991. The CI failure is unrelated.

After merging this, are there any issues that need to be re-opened?

@charlesdong1991
Copy link
Member Author

charlesdong1991 commented Aug 21, 2019

no need to reopen other PRs, the closed issue can still be fixed. The problem only occurs at datetime-like plotting, and with this PR, the view limit can still not be fixed for ts cases. I think I am pretty sure where the issue/bug is, I am still working on a proper solution to fix ts plots. @TomAugspurger

And I am really sorry for this. I quickly opened this PR just to make sure users using ts plots won't be affected/having behivor change while those view limit issues can still be fixed in the new release which is probably today.

@TomAugspurger
Copy link
Contributor

And I am really sorry for this. I quickly opened this PR just to make sure users using ts plots won't be affected/having behivor change while those view limit issues can still be fixed in the new release which is probably today.

No need to apologize :) The release will probably happen today.

Just to make sure I understand the outstanding issues (after merging this).

  1. The xlim stuff should be fixed for non-datetime plots
  2. There may still be some xlim issues for datetime plots, but it's the same as on 0.25.0?

@charlesdong1991
Copy link
Member Author

Yes, this is very correct. I already updated the issue #28021 description and name to align with the problem. @TomAugspurger

@TomAugspurger TomAugspurger modified the milestones: 0.25.1, 1.0 Aug 21, 2019
@TomAugspurger
Copy link
Contributor

Great, thanks!

One last question: #27993 was targeted for 1.0. So this shouldn't need to be backported to the 0.25.x branch, right?

@charlesdong1991
Copy link
Member Author

charlesdong1991 commented Aug 21, 2019

ahh, yeah, should not be to 0.25x . The #27993 is indeed tagged for 1.0.

@TomAugspurger
Copy link
Contributor

OK, thanks again!

@TomAugspurger TomAugspurger merged commit 32b4710 into pandas-dev:master Aug 21, 2019
galuhsahid pushed a commit to galuhsahid/pandas that referenced this pull request Aug 25, 2019
galuhsahid added a commit to galuhsahid/pandas that referenced this pull request Aug 25, 2019
* master: (40 commits)
  DOC: Fix GL01 and GL02 errors in the docstrings (pandas-dev#27988)
  Remove Encoding of values in char** For Labels (pandas-dev#27618)
  TYPING: more type hints for io.formats.printing (pandas-dev#27765)
  TST: fix compression tests when run without virtualenv/condaenv (pandas-dev#28051)
  DOC: Start 0.25.2 (pandas-dev#28111)
  DOC: Fix docstrings lack of punctuation (pandas-dev#28031)
  DOC: Remove alias for numpy.random.randn from the docs (pandas-dev#28082)
  DOC: update GroupBy.head()/tail() documentation (pandas-dev#27844)
  BUG: timedelta merge asof with tolerance (pandas-dev#27650)
  BUG: Series.rename raises error on values accepted by Series construc… (pandas-dev#27814)
  Preserve index when setting new column on empty dataframe. (pandas-dev#26471)
  BUG: Fixed groupby quantile for listlike q (pandas-dev#27827)
  BUG: iter with readonly values, closes pandas-dev#28055 (pandas-dev#28074)
  TST: non-strict xfail for period test (pandas-dev#28072)
  DOC: Update whatsnew (pandas-dev#28073)
  CI: disable codecov (pandas-dev#28065)
  CI: Set SHA for codecov upload (pandas-dev#28067)
  BUG: Correct the previous bug fixing on xlim for plotting (pandas-dev#28059)
  CI: Add pip dependence explicitly (pandas-dev#28008)
  DOC: Change document code prun in a row (pandas-dev#28029)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants