Search Locate Previous Next Contents

PostScrp.FindPoints – multiple data points

This function is designed to allow the user to select several data points which fall within a given rectangle on the chart. It would normally be used in conjunction with a Dyalog Locator object – the function RawGui_Locate in the RainPro workspace illustrates the technique.

 inf„ŒDQ lnm
© Transform locator to (lower-left -> top right) ...
 inf„+™2 2½2‡inf
 inf„(>šinf)´inf
© Pass as (x,y) bounding box to get enclosed points ...
 :If ~0¹½info„'#.pgi'#.PostScrp.FindPoints²inf
  'Got some (Chart name, series#, row, column) ...' ª info
 :End

This selects chart markers only, with no tolerance (the marker must lie on or within the bounding rectangle). It returns a 0 by 4 matrix if no points are selected, otherwise one row per data point giving the chart name, series name and row/column index in the original data matrix. Vectors are treated as 1-column matrices.



Continue to: PostScrp.FindHint – return data hints
© Copyright Causeway Graphical Systems Ltd 2003