holoviews.plotting.plotly.renderer module#

class holoviews.plotting.plotly.renderer.PlotlyRenderer(*, backend, center, css, dpi, fig, fps, holomap, mode, post_render_hooks, size, widget_location, widget_mode, info_fn, key_fn, name)[source]#

Bases: Renderer

Parameter Definitions


Parameters inherited from:

holoviews.plotting.renderer.Renderer: key_fn, info_fn, center, dpi, fps, mode, size, widget_location, widget_mode, css, post_render_hooks

backend = String(default='plotly', label='Backend')

The backend name.

fig = Selector(default='auto', label='Fig', names={}, objects=['html', 'png', 'svg', 'auto'])

Output render format for static figures. If None, no figure rendering will occur.

holomap = Selector(default='auto', label='Holomap', names={}, objects=['scrubber', 'widgets', 'gif', None, 'auto'])

Output render multi-frame (typically animated) format. If None, no multi-frame rendering will occur.

get_plot_state(obj, doc=None, renderer=None, numpy_convert=False, **kwargs)[source]#

Given a HoloViews Viewable return a corresponding figure dictionary. Allows cleaning the dictionary of any internal properties that were added

classmethod load_nb(inline=True)[source]#

Loads the plotly notebook resources.

classmethod plot_options(obj, percent_size)[source]#

Given an object and a percentage size (as supplied by the %output magic) return all the appropriate plot options that would be used to instantiate a plot class for that element.

Default plot sizes at the plotting class level should be taken into account.