Skip to content

Plot looks stretched #14

@MarcSkovMadsen

Description

@MarcSkovMadsen
import hvplot.pandas  # noqa: F401
import numpy as np
import pandas as pd
import panel as pn

from panel_reactflow import ReactFlow

pn.extension("jsoneditor")

data = pd.DataFrame({"x": range(50), "y": np.random.randn(50).cumsum()})
plot = data.hvplot.line(x="x", y="y", height=300, width=400)


nodes = [
    {
        "id": "source",
        "type": "panel",
        "label": "Data Source",
        "position": {"x": 0, "y": 0},
        "data": {},
        "view": pn.panel(plot),
    },
]

ReactFlow(nodes=nodes, edges=[], sizing_mode="stretch_both").servable()

My browser is at 100%. The axis labels look stretched. The text is pixelated.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions