OffsetMapper¶
-
class
ginga.canvas.coordmap.
OffsetMapper
(viewer, refobj)[source]¶ Bases:
ginga.canvas.coordmap.BaseMapper
A coordinate mapper that maps to the viewer in data coordinates that are offsets relative to some other reference object.
Methods Summary
calc_offsets
(self, pts)data_to
(self, data_pts[, viewer])offset_pt
(self, pts, offset)Offset a point specified by
pt
, by the offsetsoffset
.rotate_pt
(self, pts, theta, offset)Rotate a point specified by
pt
by the angletheta
(in degrees) around the point indicated byoffset
.to_data
(self, delta_pt[, viewer])Methods Documentation
-
offset_pt
(self, pts, offset)[source]¶ Offset a point specified by
pt
, by the offsetsoffset
. Coordinates are assumed to be in the space defined by this mapper.
-