Skip to content

Avalonia: Setting Plot background to transparent makes app see-through #3444

@jpgarza93

Description

@jpgarza93

Issue: (Describe the bug here)
Setting plot background data and figure to transparent creates a see-through application, instead of showing whatever color is behind.

ScottPlot Version:
ScottPlot.Avalonia 5.0.21

Code Sample:

var transparent = ScottPlot.Colors.Transparent;
ScottPlot.Plot plot = new();

/* code to reproduce the bug */
plot.Style.Background(figure: transparent, data: transparent);

Image Example
I'll set only the figure: transparent to show the issue, you can see it becomes see-through and you can see my VS code behind:
image

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