You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the drawcall updates the ylim using the sharey=True setting in matplotlib.pyplot.subplots() is not really useful to compare the weights of different matrices.
MRE:
mtx=logomaker.get_example_matrix('logomaker_logo_matrix')
fig, axs=plt.subplots(2, sharey=True)
logomaker.Logo(mtx*2, ax=axs[0]) # Require a larger dynamic rangelogomaker.Logo(mtx, ax=axs[1]) # ylims are updated to the last displayed range
Output:
Expected behavior:
If multiple logos with a shared y or x axes are drawn, the range accomodates the largest drawing to allow comparison of the magnitude.
matplotlib version used: 3.5.2
The text was updated successfully, but these errors were encountered:
I'm also running into this problem.
I'm getting around it by setting sharey=True, then saving the lowest ymin and highest ymax via ax.get_ylim() for each plot and finally setting ax.set_ylim(ymin, ymax) at the end of creating the figure. Hope that helps you too.
As the drawcall updates the
ylim
using thesharey=True
setting inmatplotlib.pyplot.subplots()
is not really useful to compare the weights of different matrices.MRE:
Output:
Expected behavior:
If multiple logos with a shared y or x axes are drawn, the range accomodates the largest drawing to allow comparison of the magnitude.
matplotlib version used:
3.5.2
The text was updated successfully, but these errors were encountered: