The plugin you created does something different than what Zoom Square does.

Example:

Set the axes settings to the following:

Xmin -10 Ymin -50

Xmax 10 Ymax 50

Tick Unit 1 Tick Unit 10

Grid Unit 1 Tick Unit 10

Show Gridlines Show Gridlines

If you Zoom Square at this point, the resulting Graph won't be the same as if you run the Plugin at this point.

]]> Graph.Form1.ZoomSquareAction.Execute()

Graph.Axes.yAxis.Max = Graph.Axes.yAxis.Max*Graph.Axes.yAxis.GridUnit/Graph.Axes.xAxis.GridUnit

Graph.Axes.yAxis.Min = Graph.Axes.yAxis.Min*Graph.Axes.yAxis.GridUnit/Graph.Axes.xAxis.GridUnit

Graph.Redraw()

I'm trying to modify the Circle plugin (with my limited coding skills) to do this, but I'm having no luck. I wish I knew how to create plugins beyond butchering the code of the included plugins.

Thanks!

]]>`Graph.Form1.ZoomSquareAction.Execute()`

Thanks,

Marco

1. Select *Zoom|Square* to scale the axes equally.

2. In the *Edit|Axes* dialog under y-axis, you can now add ***2** to *Minimum* and *Maximum*.

3. You may want to change the *Tick unit* and *Grid unit* to be twice the value as the x-axis.

This can of course be implemented in a plugin.

]]>