From Seaborn I generate two separate AxesSubplots. I then get figures from those two subplots separately. I would expect that two objects would not magically interfere with each other without some kind of method being invoked that would make them do that. Why is this broken?
axsp0 = sns.distplot(cas_brs_min['dist'].dropna()) axsp1 = sns.distplot(pd.Series(np.log(cas_brs_min['dist'].dropna()), name='log(dist)')) axsp0.get_figure().savefig('hist_dist.png') axsp1.get_figure().savefig('hist_log_dist.png')
￼What I get is the following:
When I believe I should be getting:
I am also aware that there exists a object oriented interface for Matplotlib, although it doesn't seem anyone uses it in any tutorials. If I wanted to create a pairplot for this, how would I do that? All I see is
f, ax = plt.pairplot(2); ax.plot(...); which doesn't seem to interface with anything I can do in Seaborn, which generates plots that I would seemingly have to assign?