Plot#
- class jdaviz.core.template_mixin.Plot(**kwargs: Any)[source]#
Bases:
PluginSubcomponentPlot subcomponent. For most cases where a plugin only requires a single plot, use the mixin instead.
To use in a plugin, define
plugin.plot = Plot(plugin), create aplot_widgetUnicode traitlet, and setplugin.plot_widget = 'IPY_MODEL_'+self.plot.model_id.To render in the plugin’s vue file:
<jupyter-widget :widget="plot_widget"></jupyter-widget>
Public constructor
Attributes Summary
A trait which allows any value.
Methods Summary
add_line(label[, x, y])add_scatter(label[, x, y])clear_marks(*mark_labels)Attributes Documentation
- figure#
A trait which allows any value.
- marks#
- template_file = ('/home/docs/checkouts/readthedocs.org/user_builds/jdaviz-javerbukh/envs/return-quickstart/lib/python3.11/site-packages/jdaviz/core/template_mixin.py', '../components/plugin_plot.vue')#
Methods Documentation