-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: mixed freq timeseries plotting with shared axes (GH13341) #14330
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
BUG: mixed freq timeseries plotting with shared axes (GH13341) #14330
Conversation
18d6d61
to
b3537e2
Compare
Current coverage is 85.26% (diff: 93.75%)
|
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.
Looks good at a glance. Not 100% sure about the best way to fix the other case yet :/
@@ -1584,3 +1584,5 @@ Bug Fixes | |||
- ``PeridIndex`` can now accept ``list`` and ``array`` which contains ``pd.NaT`` (:issue:`13430`) | |||
- Bug in ``df.groupby`` where ``.median()`` returns arbitrary values if grouped dataframe contains empty bins (:issue:`13629`) | |||
- Bug in ``Index.copy()`` where ``name`` parameter was ignored (:issue:`14302`) | |||
- Bug in plotting regular and irregular timeseries using shared axes |
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.
Will need to move to 0.19.1 now; Sorry I missed this earlier.
@@ -778,6 +778,42 @@ def test_mixed_freq_irreg_period(self): | |||
irreg.plot() | |||
ps.plot() | |||
|
|||
def test_mixed_freq_shared_ax(self): | |||
import matplotlib.pyplot as plt |
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.
This matches the other tests, but plt
should be available on self
here, e.g. self.plt.
b3537e2
to
98df6e3
Compare
Rebased, moved to 0.19.2 and addressed Tom's comment. |
Closes #13341, partly closes #14322 (that example still does not work when first plotting the irregular series)
cc @sinhrks @TomAugspurger