Closed Yefee closed 2 years ago
This is actually the behavior expected from the proplot side, though I agree that it is a bit counter-intuitive. When initializing the figure, you may add "sharey=False" to disable the label sharing:
fig, axs = pplt.subplots(ncols=1, nrows=2, sharey=False)
It should fix your problem.
Good to know! Thanks!
Thanks for the help @syrte. You're right this is counterintuitive -- I'll consider disabling share
and span
in the next version by default... or maybe even try to automatically detect whether users want shared labels depending on whether they separately apply labels to individual axes (as in your example) or make single axs.format(xlabel='label')
calls.
See #384 for updates
Description
When having 2 axes, the ylabel of top panel appears in the middle of the left figure.
Steps to reproduce
Expected behavior: CC appears at the left of top panel DDappears at the left of bottom panel
Actual behavior: CC appears in the middle
Equivalent steps in matplotlib
Please try to make sure this bug is related to a proplot-specific feature. If you're not sure, try to replicate it with the native matplotlib API. Matplotlib bugs belong on the matplotlib github page.
Proplot version
import matplotlib; print(matplotlib.version); import proplot; print(proplot.version) 3.4.3 0.9.5