holoviews.plotting.plotly.tiles module#

class holoviews.plotting.plotly.tiles.TilePlot(element, plot=None, **params)[source]#

Bases: ElementPlot

Parameter Definitions


Parameters inherited from:

holoviews.plotting.plot.DimensionedPlot: fontsize, fontscale, show_title, title, normalize, projection

holoviews.plotting.plot.GenericElementPlot: apply_ranges, apply_extents, default_span, hooks, padding, show_grid, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation

holoviews.plotting.plotly.plot.PlotlyPlot: width, height

holoviews.plotting.plotly.element.ElementPlot: bgcolor, invert_axes, invert_xaxis, invert_yaxis, logx, logy, show_legend, xaxis, yaxis, xticks, yticks, aspect, invert_zaxis, labelled, logz, margins, responsive, zlabel, zticks

generate_plot(key, ranges, element=None, is_geo=False)[source]#

Override to force is_geo to True

get_extents(element, ranges, range_type='combined', **kwargs)[source]#

Gets the extents for the axes from the current Element. The globally computed ranges can optionally override the extents.

The extents are computed by combining the data ranges, extents and dimension ranges. Each of these can be obtained individually by setting the range_type to one of:

  • ‘data’: Just the data ranges

  • ‘extents’: Element.extents

  • ‘soft’: Dimension.soft_range values

  • ‘hard’: Dimension.range values

To obtain the combined range, which includes range padding the default may be used:

  • ‘combined’: All the range types combined and padding applied

This allows Overlay plots to obtain each range and combine them appropriately for all the objects in the overlay.

If lims_as_soft_ranges is set to True, the xlim and ylim will be treated as soft ranges instead of the default case as hard ranges while computing the extents. This is used e.g. when apply_hard_bounds is True and xlim/ylim is set, in which case we limit the initial viewable range to xlim/ylim, but allow navigation up to the abs max between the data range and xlim/ylim.

init_graph(datum, options, index=0, **kwargs)[source]#

Initialize the plotly components that will represent the element

Parameters#

datumdict

An element of the data list returned by the get_data method

optionsdict

Graph options that were returned by the graph_options method

indexint

Index of datum in the original list returned by the get_data method

Returns#

dict

Dictionary of the plotly components that represent the element. Keys may include:

  • ‘traces’: List of trace dicts

  • ‘annotations’: List of annotations dicts

  • ‘images’: List of image dicts

  • ‘shapes’: List of shape dicts