do_plot args
@@ -29,6 +29,7 @@ class BaseWidget:
# every widgets must prepare a dict "plot_data" in the init
self.plot_data = plot_data
self.backend = backend
+ self.backend_kwargs = backend_kwargs
def check_backend(self, backend, **backend_kwargs):
@@ -90,7 +91,7 @@ def define_widget_function_from_class(widget_class, name):
@copy_signature(widget_class)
def widget_func(*args, **kwargs):
W = widget_class(*args, **kwargs)
- W.do_plot()
+ W.do_plot(W.backend, **W.backend_kwargs)
return W.plotter
widget_func.__doc__ = widget_class.__doc__
