Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to configure defaults for Canvas #540

Open
FeldrinH opened this issue Jan 17, 2024 · 0 comments
Open

Ability to configure defaults for Canvas #540

FeldrinH opened this issue Jan 17, 2024 · 0 comments

Comments

@FeldrinH
Copy link

FeldrinH commented Jan 17, 2024

As shown in the example notebook, it is possible to configure the appearance of the Canvas widget by setting some attributes on it.
A lot of these attributes are settings that I would like to configure in the same way for all figures. It would be very convenint if there was some way to set the default values of these attributes before creating plots (similar to matplotlib.rcParams).

I tried changing the traitlet definitions directly (i.e. Canvas.header_visible.default_value = False), but apparently the traitlets cache the original default values somewhere and ignore the change to default_value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants