DrawableImageWidget

class mosviz.widgets.DrawableImageWidget(*args, slit_controller=None, **kwargs)[source]

Bases: mosviz.widgets.MOSImageWidget

Attributes Summary

slit_controller
tools

Methods Summary

draw_rectangle([x, y, width, height])
draw_slit() Draw the slit patch stored in the slit controller.
launch_slit_ui()
reset_limits() Auto set the limits of the axes.
set_limits([x_min, x_max, y_min, y_max]) Manually set the limits of the axes.
set_slit_limits() Set y limits of plot according to slit length

Attributes Documentation

slit_controller = None
tools = ['mpl:home', 'mpl:save', 'mpl:pan', 'mpl:zoom', 'image:contrast', 'image:colormap', 'mosviz:slit']

Methods Documentation

draw_rectangle(x=None, y=None, width=None, height=None)[source]
draw_slit()[source]

Draw the slit patch stored in the slit controller.

launch_slit_ui()[source]
reset_limits()[source]

Auto set the limits of the axes.

set_limits(x_min=None, x_max=None, y_min=None, y_max=None)[source]

Manually set the limits of the axes.

set_slit_limits()[source]

Set y limits of plot according to slit length