Skip to content

SP5 Inverted Y axis loses labelling #3397

@BrianAtZetica

Description

@BrianAtZetica

Issue: When I invert the Y axis of a chart the Y-axis labels and horizontal grid lines are ommitted.

ScottPlot Version: ScottPlot.WPF v5.0.21

Code Sample:

using ScottPlot;
using System.Drawing;

double[] dataX = { 1, 2, 3, 4, 5 };
double[] dataY = { 1, 4, 9, 16, 25 };

ScottPlot.Plot myPlot = new();
var trace = myPlot.Add.SignalXY(dataX, dataY);
myPlot.SavePng("quickstart1.png", 400, 300);

myPlot.Axes.SetLimits(left: 0, right: 6, bottom: 26, top: 0);
myPlot.SavePng("quickstart2.png", 400, 300);

quickstart1.png:
quickstart1

quickstart2.png:
quickstart2

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