Commit 4af4efb6 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Improve the constrained layout option

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