func_sketch._gui.plot_widget module#

Class of widgets to show plots.

class func_sketch._gui.plot_widget.PlotWidget(**kwargs)#

Bases: Image

Class of widgets to show plots.

_get_plot_image_size() tuple[int, int]#

Get size of the plot image.

_on_shared_plot_config(_instance: object, _value: object) None#

Callback when the plot_config property is set in shared_state.

_on_shared_plot_range(_instance: object, _value: object) None#

Callback when the plot_range property is set in shared_state.

_on_shared_sampled_curves(_instance: object, _value: object) None#

Callback when the sampled_curves property is set in shared_state.

_prepare_texture() None#

Prepare texture for the plot.

_update_plot() None#

Update the plot.

on_shared_state(_instance: object, _value: object) None#

Callback when the shared_state property is set.

on_size(_instance: object, _value: object) None#

Callback when the size of the widget is changed.

shared_state#

Shared state object.