Plot.ResetAllAxes vs. ResetManipulator

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

seveland12 wrote at 2013-04-19 16:31:

I'm trying to programmatically reset the view of my plot to a state as if the user had double-clicked the middle mouse button. It seemed to me that Plot.ResetAllAxes is the appropriate method, but this no longer seems to work as I intend it to in recent builds of OxyPlot that I have tried (unfortunately I don't have the change set info on the version of the DLLs that works). Is this method still the appropriate one to use?

objo wrote at 2013-04-24 11:01:

It should be possible to iterate over the Axes collection in the PlotModel and call the Reset method of each axis. Then call the RefreshPlot on the PlotModel. If this does not work, there is probably a bug (I have not tested myself).