Skip to content

SP5 axes overflowing into the padding of the plot. #3395

@wsomegapoint

Description

@wsomegapoint

Issue:
Hello! I am currently working on creating a heat map in Avalonia, with custom ticks on both the X and Y axes. It all works as expected, except for an issue where the axes appear to overflow into the padding of the plot. In the image below i expect the axes to stop drawing the tick labels at "test Y 61", but instead the ticks are extended to padding of the plot.

ScottPlot Version:
ScottPlot.Avalonia 5.0.21

Code Sample:
Both axes are generated like so:

AvaPlot avaPlot = new();

var heatMapPlot = new Heatmap(SampleData.MonaLisa());
avaPlot.Plot.Add.Plottable(heatMapPlot);

NumericManual ticksY = new();
for (var i = 0; i < 100; i++)
{
    ticksY.AddMajor(i, $"test Y {i}");
}
avaPlot.Plot.Axes.Left.TickGenerator = ticksY;

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