org.das2.graph.VectorPlotRenderer
Draw vectors as arrows, from a dataset[:,4] where
dataset[0,:] is x,y,dx,dy.
PROP_SCALE
property name for the scale.
acceptsData
acceptsData( QDataSet ds ) → boolean
return true if the renderer accepts data in this form. This
renderer needs rank 2 data with 4 columns,
Parameters
ds -
Returns:
boolean
search for examples
view on GitHub
view source
doAutorange
doAutorange( QDataSet ds ) → QDataSet
autorange on the data, returning a rank 2 bounds for the dataset.
Parameters
ds - the dataset to autorange.
Returns:
a bounds dataset, where result[0,:] is the xrange and result[1,:] is the yrange.
search for examples
view on GitHub
view source
getScale
getScale( ) → double
get the scale relating the length of the vector (dx and dy, the last two
columns) to the positions of the vector (in the first two columns).
Returns:
the scale
search for examples
view on GitHub
view source
setScale
setScale( double scale ) → void
set the scale relating the length of the vector (dx and dy, the last two
columns) to the positions of the vector (in the first two columns).
Default is 1.
Parameters
scale - the new scale
Returns:
void (returns nothing)
search for examples
view on GitHub
view source