Commit 40a4b9b9 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'fixes' into 'master'

Improve the constrained layout option

See merge request !84
parents 0d77ab60 4af4efb6
Pipeline #21630 failed with stages
in 24 minutes and 41 seconds
...@@ -136,8 +136,8 @@ def const_layout_option(dflt=True, **kwargs): ...@@ -136,8 +136,8 @@ def const_layout_option(dflt=True, **kwargs):
plt.rcParams['figure.constrained_layout.use'] = value plt.rcParams['figure.constrained_layout.use'] = value
return value return value
return click.option( return click.option(
'-Y', '--clayout/--no-clayout', default=dflt, show_default=True, '-Y/-nY', '--clayout/--no-clayout', default=dflt,
help='(De)Activate constrained layout', show_default=True, help='(De)Activate constrained layout',
callback=callback, **kwargs)(func) callback=callback, **kwargs)(func)
return custom_layout_option return custom_layout_option
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment