Need to have Zoom-in & Zoom-out functionality to happen / be managed in Button click options:
ScottPlot Version: 5.0.34
By default, whatever zooming functionality is happening in mouse events, that functionality needs to happen / be managed in button click option (i.e., +, -)
I tried the following code, but it works only when buttons are used for zooming. but when zoomed with mouse events and then used the button, it not working
double val = 1.0;
private void ZoomIn_Click(object sender, EventArgs e)
{
if (val <= 3.5)
{
formsPlot1.Plot.Axes.Zoom(val, val);
formsPlot1.Refresh();
val = val + 0.1;
}
}
private void ZoomOut_Click(object sender, EventArgs e)
{
if (val > 1.1)
{
val = val - 0.1;
formsPlot1.Plot.Axes.ZoomOut(val, val);
formsPlot1.Refresh();
}
}