Skip to content

A image of a plot with a PolarAxis is cut when Y axis is inverted #4836

@Corbini

Description

@Corbini

Issue: (Describe the bug here)

A image of Plot is cut when use use Plot.Axes.SetLimits with inverted y values

Image

ScottPlot Version: ScottPlot.Avalonia 5.0.54

Code Sample:

ScottPlot.Plot myPlot = new ();
var polarAxis2 = myPlot.Add.PolarAxis(100);
polarAxis2.Rotation = Angle.FromDegrees(RotationDegree);
polarAxis2.Circles.ForEach(x => x.LinePattern = LinePattern.Dotted);
polarAxis2.Spokes.ForEach(x => x.LinePattern = LinePattern.Dotted);

myPlot.Axes.SetLimits(-140, 140, 140, -140);

myPlot.SavePng("quickstart.png", 400, 300);

If you invert SetLimits values for y axis it prints normally.

myPlot.Axes.SetLimits(-140, 140, -140, 140);

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