Skip to content

NumericFixedInterval ticks fail on inverted axes #3567

@Alexander-png

Description

@Alexander-png

Issue: when setting NumericFixedInterval for any axis and then inverting it the ticks and tick lines are missing.

ScottPlot Version: 5.0.23

Here is the code for preproducing this issue:

using ScottPlot.TickGenerators;
using System.Windows;

namespace ScottPlotBug
{
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();

            Plotter.Plot.Axes.Left.TickGenerator = new NumericFixedInterval(10);
            Plotter.Plot.Axes.SetLimitsY(0, -100);

            Plotter.Plot.Axes.Bottom.TickGenerator = new NumericFixedInterval(10);
            Plotter.Plot.Axes.SetLimitsX(0, -100);
        }
    }
}

Here what have been displayed:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions