grapa.frontend.frames_main.GUIFrameCanvasGraph

class grapa.frontend.frames_main.GUIFrameCanvasGraph(master, application: Application, **kwargs)

Bases: object

Handles the canvas with graph, and the toolbar Contains a Frame, to be embedded in a wider application (.frame.pack()) Some methods will call methods of application

__init__(master, application: Application, **kwargs)

Methods

__init__(master, application, **kwargs)

close_tab()

Closes current tab

disable_canvas_callbacks()

disable all registered canvas callbacks

enable_canvas_callbacks()

restore suitable list of canvas callbacks, for datapicker

get_canvas()

Returns the canvas

get_tabs()

Returns the tabs element

on_mousewheel(event)

Handles the event on_mousewheel on the canvas.

registercallback_notifycanvas(func)

Register functions to callback when the canvas gets notified of an event

set_canvas_background()

Change background color of the canvas

update_ui()

Update plot on canvas

update_upon_resize_window(*_args)

Updates the frame including the canvas, but only when main app is ready

close_tab()

Closes current tab

disable_canvas_callbacks()

disable all registered canvas callbacks

enable_canvas_callbacks()

restore suitable list of canvas callbacks, for datapicker

get_canvas()

Returns the canvas

get_tabs() GraphsTabManager

Returns the tabs element

on_mousewheel(event) None

Handles the event on_mousewheel on the canvas. Zoom in/out, the location pointed by mouse stays at the same position. Only affects current active ax - can be problematic if several axes

registercallback_notifycanvas(func)

Register functions to callback when the canvas gets notified of an event

set_canvas_background()

Change background color of the canvas

update_ui()

Update plot on canvas

update_upon_resize_window(*_args)

Updates the frame including the canvas, but only when main app is ready