Created
March 17, 2021 00:54
-
-
Save tomr-stargazer/ac40cef643d608efa9da5eaa511b8524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# works | |
fig10 = plt.figure(constrained_layout=False) | |
gs0 = fig10.add_gridspec(1, 2) | |
gs00 = gs0[0].subgridspec(3, 1) | |
gs01 = gs0[1].subgridspec(2, 1) | |
bax0 = brokenaxes(xlims=((0,100), (150,200)), subplot_spec=gs00[0,0]) | |
bax1 = brokenaxes(xlims=((0,100), (150,200)), subplot_spec=gs00[1,0]) | |
# causes misplaced, floating "//" marks | |
fig10 = plt.figure(constrained_layout=True) | |
gs0 = fig10.add_gridspec(1, 2) | |
gs00 = gs0[0].subgridspec(3, 1) | |
gs01 = gs0[1].subgridspec(2, 1) | |
bax0 = brokenaxes(xlims=((0,100), (150,200)), subplot_spec=gs00[0,0]) | |
bax1 = brokenaxes(xlims=((0,100), (150,200)), subplot_spec=gs00[1,0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment