Plot#

class jdaviz.core.template_mixin.Plot(**kwargs: Any)[source]#

Bases: PluginSubcomponent

Plot 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 a plot_widget Unicode traitlet, and set plugin.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

figure

A trait which allows any value.

marks

template_file

Methods Summary

add_line(label[, x, y])

add_scatter(label[, x, y])

clear_all_marks()

clear_marks(*mark_labels)

Attributes Documentation

figure#

A trait which allows any value.

marks#
template_file = ('/home/docs/checkouts/readthedocs.org/user_builds/jdaviz/envs/v3.6.2/lib/python3.11/site-packages/jdaviz/core/template_mixin.py', '../components/plugin_plot.vue')#

Methods Documentation

add_line(label, x=[], y=[], **kwargs)[source]#
add_scatter(label, x=[], y=[], **kwargs)[source]#
clear_all_marks()[source]#
clear_marks(*mark_labels)[source]#