BaseFrame#

class astropy.visualization.wcsaxes.frame.BaseFrame(parent_axes, transform, path=None)[source]#

Bases: OrderedDict

Base class for frames, which are collections of Spine instances.

Parameters:
parent_axesWCSAxes

The axes the frame is attached to.

transformTransform

The transform from data to world coordinates.

pathPath, optional

The path that makes up the frame, in data coordinates. If not given, this is determined from the spine positions.

Attributes Summary

Methods Summary

draw(renderer)

get_color()

get_linewidth()

sample(n_samples)

set_color(color)

Sets the color of the frame.

set_linewidth(linewidth)

Sets the linewidth of the frame.

update_spines()

Attributes Documentation

origin#
patch#
transform#

Methods Documentation

draw(renderer)[source]#
get_color()[source]#
get_linewidth()[source]#
sample(n_samples)[source]#
set_color(color)[source]#

Sets the color of the frame.

Parameters:
colorstr

The color of the frame.

set_linewidth(linewidth)[source]#

Sets the linewidth of the frame.

Parameters:
linewidthfloat

The linewidth of the frame in points.

update_spines()[source]#