PRO LoadSelection, x, y, qual, dxLeft, dyUp, dxRight, dyDown, len

COMMON Data, plotList, vectorTable
COMMON SelectionRetrieval, plotsSelected, shift

IF No_Data() THEN RETURN

nbSels = N_Selected()
IF nbSels EQ 0 THEN RETURN

index =  Where( plotList.name EQ plotsSelected(0) )
indices = index(0)
IF nbSels GT 1 THEN $
  FOR i = 1,nbSels-1 DO BEGIN
    index =  Where( plotList.name EQ plotsSelected(i) )
    indices = [ indices,  index(0) ]
  ENDFOR

x = vectorTable( *, plotList(indices).x )
y = vectorTable( *, plotList(indices).y )
qual = vectorTable( *, plotList(indices).qual )
dxLeft = vectorTable( *, plotList( indices ).dxLeft )
dyUp = vectorTable( *, plotList(indices).dyUp )
dxRight = vectorTable( *, plotList(indices).dxRight )
dyDown = vectorTable( *, plotList(indices).dyDown )
len = plotList(indices).len

END