sknrf.app.dataviewer.view.figure module

class sknrf.app.dataviewer.view.figure.ToolbarMenus(value)

Bases: Flag

An enumeration.

STATE = 1
SCALE = 2
MARKUP = 4
AXES = 8
SUBPLOT = 16
ALL = 31
sknrf.app.dataviewer.view.figure.do_nothing(*args)
sknrf.app.dataviewer.view.figure.contour_plot(fig, ax, x, y, xi, yi, z, **kwargs)
class sknrf.app.dataviewer.view.figure.Cursor(ax)

Bases: object

mouse_move(event)
class sknrf.app.dataviewer.view.figure.NavigationToolbar(canvas, parent, coordinates=True, toolbar_menus=ToolbarMenus.ALL)

Bases: NavigationToolbar2QT

toolbar_menu_map = {<ToolbarMenus.STATE: 1>: (('Save', 'Save\nFigure', 'download', 'save_figure'), ('Back', 'Undo', 'circled_undo', 'back'), ('Forward', 'Redo', 'circled_redo', 'forward')), <ToolbarMenus.SCALE: 2>: (('Zoom', 'Rectangle\nZoom', 'zoom-in', 'zoom'), ('Auto-scale', 'Auto\nScale', 'zoom-out', 'home'), ('Pan', 'Pan Left\nZoom Right\nMouse', 'arrow_left_right', 'pan')), <ToolbarMenus.MARKUP: 4>: (('Cursor', 'Crosshair', 'eye', 'crosshair'), ('Hide Markers', 'Show/Hide\nmarkers', 'pin', 'toggle_markers')), <ToolbarMenus.AXES: 8>: (('Clear Axes', 'Clear the\nAxes', 'cancel', 'clear_axes'),), <ToolbarMenus.SUBPLOT: 16>: (('Refresh', 'Refresh', 'circled_sync', 'refresh'), ('Subplots', 'Configure\nSubplots', 'equalizer', 'configure_subplots'), ('Clear Figure', 'Clear\nFigure', 'cancel-circle', 'clear_figure'))}
set_message(message)

Display a message on toolbar or in status bar.

save_figure(*args)

Save the current figure.

back(*args)

Move back up the view lim stack.

For convenience of being directly connected as a GUI callback, which often get passed additional parameters, this method accepts arbitrary parameters, but does not use them.

forward(*args)

Move forward in the view lim stack.

For convenience of being directly connected as a GUI callback, which often get passed additional parameters, this method accepts arbitrary parameters, but does not use them.

refresh()
configure_subplots()
edit_parameters()
clear_figure()
zoom(*args)
home(*args)

Restore the original view.

For convenience of being directly connected as a GUI callback, which often get passed additional parameters, this method accepts arbitrary parameters, but does not use them.

pan(*args)

Toggle the pan/zoom tool.

Pan with left button, zoom with right.

crosshair(*args)
toggle_markers(*args)
clear_axes(*args)
staticMetaObject = PySide6.QtCore.QMetaObject("NavigationToolbar" inherits "NavigationToolbar2QT": )
class sknrf.app.dataviewer.view.figure.ContentCanvas(figure)

Bases: FigureCanvasQTAgg

get_default_filename()

Return a string, which includes extension, suitable for use as a default filename.

staticMetaObject = PySide6.QtCore.QMetaObject("ContentCanvas" inherits "FigureCanvasQTAgg": )
class sknrf.app.dataviewer.view.figure.ContentFigure(parent=None, figure=None, gridspec=GridSpec(1, 1), interactive=False)

Bases: QFrame

axesSelected
addLegend
removeLegend
connect_signals()
disconnect_signals()
gcf()
gctb()
gca()
sca(ax)
scaid(gid)
gcp()
scpid(gid)
scp(plt)
add_toolbar(coordinates=True, toolbar_menus=ToolbarMenus.ALL)
add_axes(fig_model, ax_id, ax_model, share_x=False, share_y=False)
set_axes(index)
remove_axes(index)
add_plot(fig_model, ax_id, ax_model, plt_id, plt_model)
set_plot(fig_model, ax_id, ax_model, plt_id, plt_model, x, y, options)

Update the plot.

share_axis(ax, ax_old)
set_grid(ax, major_grid, minor_grid)
show_context_menu(pos)

Display the “right-click” context menu

add_legend()
add_legend_here()
move_legend_left()
move_legend_right()
move_legend_up()
move_legend_down()
remove_legend()
hide_artist()
send_artist_to_front()
send_artist_forward()
send_artist_backward()
send_artist_to_back()
update_axis(ax_model, xlabel='', ylabel='', xlim=(), ylim=())
update_pos()
on_pick(event)

Bold the selected line.

update(self) None
update(self, arg__1: PySide6.QtCore.QRect) None
update(self, arg__1: Union[PySide6.QtGui.QRegion, PySide6.QtGui.QBitmap, PySide6.QtGui.QPolygon, PySide6.QtCore.QRect]) None
update(self, x: int, y: int, w: int, h: int) None
staticMetaObject = PySide6.QtCore.QMetaObject("ContentFigure" inherits "QFrame": Methods:   #34 type=Signal, signature=axesSelected(int), parameters=int   #35 type=Signal, signature=addLegend(PyObject,PyObject), parameters=PyObject, PyObject   #36 type=Signal, signature=removeLegend(PyObject), parameters=PyObject   #37 type=Slot, signature=set_plot()   #38 type=Slot, signature=show_context_menu(QPoint), parameters=QPoint   #39 type=Slot, signature=add_legend()   #40 type=Slot, signature=add_legend_here()   #41 type=Slot, signature=move_legend_left()   #42 type=Slot, signature=move_legend_right()   #43 type=Slot, signature=move_legend_up()   #44 type=Slot, signature=move_legend_down()   #45 type=Slot, signature=remove_legend()   #46 type=Slot, signature=hide_artist()   #47 type=Slot, signature=send_artist_to_front()   #48 type=Slot, signature=send_artist_forward()   #49 type=Slot, signature=send_artist_backward()   #50 type=Slot, signature=send_artist_to_back()   #51 type=Slot, signature=on_pick(PyObject), parameters=PyObject )