-
Notifications
You must be signed in to change notification settings - Fork 0
SVGraph_SetGrid()
Sets Ticks and Grid.
SVGraph_SetGrid([xory, Major, Minor, Colour, DashArray])
A string determining along which axis to set the grid.
To set along the x-axis use "x" for the y-axis used "y".
Note: If left blank the grid will be set along both axes.
An approximate number of ticks.
Alternatively: To set specific ticks, this parameter can be set to a string formatted as an array. e.g. "[-5,0,5]" will result in tree ticks.
Note: If left blank the value will remain unchanged.
The number of grid lines between each pair of ticks.
Note: If left blank the value will remain unchanged.
The colour of the grid lines, supports HTML Color Names or Color Values. e.g. "lightgrey" or "#FF00FF".
Note: If left blank the value will remain unchanged.
A comma separated string that determines the look of the grid lines.
- "0":
- "5":
- "5,1":
- "5,1,5":
Note: If left blank the value will remain unchanged.
Ticks will always have grid lines.
; Sets the grid lines along the x-axis to be red
; and to have one grid line between each pair of ticks
Gui, Add, ActiveX, vIE, Shell.Explorer
SVGraph_Attach(IE)
SVGraph_Start()
SVGraph_Chart(700, 365, 40)
SVGraph_SetAxes(-10, 10, -1, 1)
SVGraph_SetGrid("x", , 1, "#FF0000")