CartesianMapper¶
-
class
ginga.canvas.coordmap.
CartesianMapper
(viewer)[source]¶ Bases:
ginga.canvas.coordmap.BaseMapper
A coordinate mapper that maps to the viewer in Cartesian coordinates that do not scale (unlike DataMapper).
Methods Summary
data_to
(data_pts[, viewer])offset_pt
(pts, offset)Offset a point specified by
pt
, by the offsetsoffset
.rotate_pt
(pts, theta, offset)Rotate a point specified by
pt
by the angletheta
(in degrees) around the point indicated byoffset
.to_data
(crt_pts[, viewer])Methods Documentation
-
offset_pt
(pts, offset)[source]¶ Offset a point specified by
pt
, by the offsetsoffset
. Coordinates are assumed to be in the space defined by this mapper.
-