pydsm.delsig.axisLabels

pydsm.delsig.axisLabels(points, incr)

Generate alphanumeric axis labels.

If the parameter incr is an integer, the function returns an array of strings corresponding to the values specified in points, stepping through them with indexes 0, incr, 2*incr, ...

If the parameter incr is a couple of integers (start, incr), the stepping occurs with indexes start, start+incr, start+2*incr, ...

Parameters:

points : array like of floats

the axis points to label

incr : int or couple of ints

the increment to use in labelling

Returns:

s : list of strings

list of labels

Notes

In the original DELSIG function, the parameter points is named range.

Values in points less than 1e-6 are truncated to zero. This value is hardwired in the function.