Skip to content

FigureWidget: resizing can only expand but cannot shrink #3689

Closed
@martinRenou

Description

@martinRenou

When executing the following in a JupyterLab Notebook, increasing the window size results in the plot correctly expanding, but reducing the size of the window does not shrink the plot correctly (see following GIF):

import ipywidgets as widgets

import plotly.graph_objects as go
import plotly.express as px


fig = px.line([1, 2, 3, 4, 6], template='plotly_dark')

fw = go.FigureWidget(fig)

fw

resizing

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