Creates an array of evenly-spaced floating point numbers.
sarray = Ngl.fspan(start, end, num)
Value at which to start.end
Value at which to end.num
Number of equally-spaced points desired between start and end.
A one-dimensional floating point NumPy array of length num.
This function returns an array of equally spaced floating point numbers in the range that starts at the value of the first argument and ends at the value of the second argument. The third argument specifies the number of points desired, including the start and end values.
import Ngl x1 = Ngl.fspan(-1,1,5) # [ -1. -0.5 0.0 0.5 1. ] x2 = Ngl.fspan(0.,100.,6) # [ 0. 20. 40. 60. 80. 100.]