Grid Class
The static Grid class encompasses a few static methods to split up an axis into intervals of points in such a way that number aesthetics are preserved.
Item Index
Methods
gridify
-
axis
This function returns the points for axis labels for a given axis with values ranging from axis.min to axis.max. Both logarithmic and non-logarithmic axes are fully supported.
Parameters:
-
axis
AxisAn axis object representing the ordinate of a paramter
Returns:
Object with Array
hsgrid
-
station
-
[itop]
-
[ibottom]
-
[autoscale]
Split up the snow height uniformly into intervals.
Parameters:
Returns:
Object with max, min, divisions, height and heights properties
hsgrid
-
[bottom]
-
[top]
Split up a given snow height interval uniformly into intervals.
Returns:
Object with max, min, divisions, height and heights properties
points
-
pixels
This function returns the number of points that should devide an axis of length 'pixels'.
Parameters:
-
pixels
Number
Returns:
points
-
min
-
max
-
pixels
This function returns the min and max to be used when drawing the axis with values ranging from min to max, a pixel span of length pixels is to be utilized.
Parameters:
Returns:
Object with min and max property
smartLegend
-
min
-
max
-
nb_labels
This function returns the steps to be used when drawing the axis with values ranging from minimum to maximum. Optionally a desired number of points can be handed over as third parameter.
NOTE: This function has been copied from trunk/meteoio/Graphics.cc of the MeteoIO project: see https://models.slf.ch/p/meteoio
Parameters:
Returns:
Array