Skip to content

setting plt.rcParams['figure.figsize'] does not work.  #48

Open
@PrParadox

Description

@PrParadox

I tried to make matplotlib responsive by doing this little trick

from js import window 
plt.rcParams['figure.figsize'] = [window.innerWidth*window.devicePixelRatio, 6] 
plt.rcParams["figure.dpi"] = window.devicePixelRatio

However, it does not work. Interestingly, even if I hardcode figsize, it still does not respect my parameters. What should be done? (the figure is interactive. i.e it has a slider)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions