get_world_transform

sunpy.visualization.wcsaxes_compat.get_world_transform(axes)[source] [edit on github]

Get the transformation to world coordinates.

If the axes is a WCSAxes instance this returns the transform to the “world” coordinates, otherwise it returns the transform to the matplotlib data coordinates, which are assumed to be in world coordinates.

Parameters

axes (WCSAxes or Axes) – The axes to get the transform from.

Returns

CompositeGenericTransform – The transformation object.