0

How to create a new PlotCommand for zooming out

Carl 2 years ago 0

Hi,


I'm currently making an application that displays graphs and allows some user interaction. I'd like to make a new PlotCommand that zooms the plot out to the Minimum/Maximum bounds of the plot. I know there is the PlotCommands.Reset command, however, this only seems to zoom out to the currently set Minimum/Maximum values of the axes, which constantly change during the use (due to other functionality I've implemented). I can determine the bounds that I want to zoom out to, I'm just not sure how to make a PlotCommand and bind it to a key press since this doesn't seem to be covered in the documentation. I'm new to both C# and OxyPlot. Any help would be appreciated.