Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zed-Graph Set scale to default programmatically

I've got a winforms application which uses zed-graph library to plot graphs. When I right-click on the control (while application is running) a context menu shows up and I can choose Set Scale to default.
How do I achive this Set Scale to default-behaviour programmatically?

like image 287
StuffHappens Avatar asked Dec 12 '22 08:12

StuffHappens


1 Answers

For each x- and y-axis following code is executed:

_scale._minAuto = true;
_scale._maxAuto = true;
_scale._majorStepAuto = true;
_scale._minorStepAuto = true;
_crossAuto = true;
_scale._magAuto = true;
_scale._formatAuto = true;

For more information easily look in the source code and search for "Set Scale to default".

like image 76
SpeziFish Avatar answered Dec 14 '22 23:12

SpeziFish