out3Plot.outDistanceTimeAnalysis.getVelocityPoints
- getVelocityPoints(xMax, yMax, width, height, xinterval, yinterval)[source]
get points for legend creation (box and sloping lines)
if xMax, yMax, xinterval, yinterval are all 1 -> points refer to axes coordinates, that range from 0 to 1
if given true values, e.g. in seconds and meters, points are in data coordinates and can be used for velocity calculus etc.
- Note: used to be an internal function to rangeTimeVelocityLegend,
so use with care.
- Parameters
xMax (float) – max x extent of data (timeSteps)
yMax (float) – max y extent of data (rangeGates)
width (float) – fractional percentage of legend width
height (float) – fractional percentage of legend height
xinterval (float) – interval on x
yinterval (float) – interval on y
- Returns
points – list of point coordinates
- Return type
list