feature request -- can brokenaxes be modified to act as a wrapper to existing plots? #80
Unanswered
PhillipMaire
asked this question in
Q&A
Replies: 1 comment 6 replies
-
@PhillipMaire thanks for the question. I did try to do something like that a few years ago, but it would require essentially copying all of the plot components to a new figure and axes, and I hit some roadblocks. In theory you should be able to do something like: import pandas as pd
from brokenaxes import brokenaxes
df = pd.util.testing.makeMixedDataFrame()
bax = brokenaxes(xlims=((1,2), (3,4)))
for ax in bax.axs:
df.plot(ax=ax) but I just tried that and got a strange bug about exceeding the maximum ticks. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey thanks for your work on brokenaxes! I was wondering if it is possible to make a wrapper for only basic operations that would work like this.
the reason for this is that I plot using pandas dataframe and pivot tables and groupby functions which makes it hard to use brokenaxes as the plotter directly. thank you!
Beta Was this translation helpful? Give feedback.
All reactions