Skip to content

Legend GetBitmap throws System.ArgumentException: 'Parameter is not valid.' #860

@mzemljak

Description

@mzemljak

ScottPlot 4.1.09-beta

I'm having problem displaying and saving Legend.
Legend doesn't shows on the Plot.
When calling Plot3.Plot.Legend().GetBitmap(false) an exception System.ArgumentException: 'Parameter is not valid.' is thrown.

Code for using and updating Plot in an WPF .net 5 aplication.

public WpfPlot Plot3
{
    get { return _plot3; }
    set { SetProperty(ref _plot3, value); }
}
<ContentControl Grid.Column="2" MinWidth="200" MinHeight="200" Content="{Binding Plot3}"></ContentControl>
var legendBitmap = Plot3.Plot.Legend().GetBitmap(false);

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