Skip to content

Instantly share code, notes, and snippets.

@tomr-stargazer
Created March 17, 2021 00:54
Show Gist options
  • Save tomr-stargazer/ac40cef643d608efa9da5eaa511b8524 to your computer and use it in GitHub Desktop.
Save tomr-stargazer/ac40cef643d608efa9da5eaa511b8524 to your computer and use it in GitHub Desktop.
# 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