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.

UPDATE: I've created a plugin that corrects for the situation described above. If you add this plugin to the plugin folder, you can press Ctrl+Shift+Q and the graph will be zoomed so that the grid-lines are square, using the current grid units.

]]> 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.

]]>