Open danfrankj opened 8 years ago
I think the way to do this in pandas is
In [10]: df = pd.concat([ser1, ser2], axis=1)
In [11]: df.plot(sharex=True, sharey=True, subplots=True, layout=(1, 2))
We do quite a bit of messing axes when drawing, so supporting this could be a bit of work. Will leave open though, if you want to give it a shot.
@TomAugspurger My example is simplified - I actually do a fair bit of different computation for each subplot making it difficult/impossible to do within a single call to a DataFrame.plot
xaxis adjustment is performed on this line. it's nice to have a logic for shared xaxis.
Was going to look into this, but it doesn't seem to be an issue any more as far as I can tell.
Maybe this can be closed?
Code Sample, a copy-pastable example if possible
x axis truncated by second call
Expected Output
Using only matplotlib:
output of
pd.show_versions()