Open Jofstera opened 6 hours ago
Hi @Jofstera, thanks for these questions! I really appreciate the complete code example that helped me to get started answering these right away 😎
In this example it is impossible to get a value under 0 or over 50, yet the y-axis shows values outside of this range which are not needed.
Users may create their own classes that manage axis limits to achieve fully custom behavior. Luckily the built-in default axis manager already has an exposed property that can be used to restrict "padding" around values vertically:
Logger1.AxisManager = new ScottPlot.AxisLimitManagers.Full()
{
ExpansionRatio = 0
};
I inverted the y-axis with myPlot.Plot.Axes.InvertY();. But as soon as a DataLogger is added to the plot, the Y-axis becomes uninverted. Is there a way to fix this?
Oof, this sounds like it may be a bug! Thanks for reporting it. I'm running out of time to take a look at it myself today, but I'm guessing the accidental reversion is happening in one of these areas. I'll leave this issue open to track a fix, but if you're able to get to it before I can I would be happy to review a pull request within the next day or two! 🚀
Hi guys, is it possible to set a limit on the Y-axis when using a Datalogger? I know I can set a rule to lock the Y-axis and manually give it tick values, but doing so means the y-axis cannot be expanded dynamically.
ScottPlot Version: WPF SP5 v5.0.45
Code Sample:
In this example it is impossible to get a value under 0 or over 50, yet the y-axis shows values outside of this range which are not needed.
I inverted the y-axis with
myPlot.Plot.Axes.InvertY();
. But as soon as a DataLogger is added to the plot, the Y-axis becomes uninverted. Is there a way to fix this?