geoviews.plotting.bokeh.plot module#

Module for geographic bokeh plot baseclasses.

class geoviews.plotting.bokeh.plot.GeoOverlayPlot(element, **params)[source]#

Bases: GeoPlot, OverlayPlot

Subclasses the HoloViews OverlayPlot to add custom behavior for geographic plots.

Parameter Definitions


Parameters inherited from:

holoviews.plotting.plot.DimensionedPlot: fontscale, show_title, normalize

holoviews.plotting.plot.GenericElementPlot: apply_ranges, apply_extents, bgcolor, default_span, hooks, invert_axes, invert_xaxis, invert_yaxis, logx, logy, padding, xaxis, yaxis, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation

holoviews.plotting.bokeh.plot.BokehPlot: title, shared_datasource, title_format, autohide_toolbar

holoviews.plotting.bokeh.element.ElementPlot: fontsize, xticks, yticks, toolbar, width, height, active_tools, align, apply_hard_bounds, autorange, border, aspect, backend_opts, data_aspect, frame_width, frame_height, min_width, min_height, max_width, max_height, margin, multi_y, scalebar, scalebar_range, scalebar_unit, scalebar_location, scalebar_label, scalebar_tool, scalebar_opts, subcoordinate_y, subcoordinate_scale, responsive, gridstyle, labelled, lod, show_frame, shared_axes, tools, hover_tooltips, hover_formatters, hover_mode, xformatter, yformatter

holoviews.plotting.bokeh.element.LegendPlot: legend_cols, legend_labels, legend_muted, legend_offset, legend_position, legend_opts

holoviews.plotting.plot.GenericOverlayPlot: show_legend, batched, legend_limit, style_grouping

holoviews.plotting.bokeh.element.OverlayPlot: tabs, multiple_legends

geoviews.plotting.bokeh.plot.GeoPlot: projection, show_grid, default_tools, infer_projection, fixed_bounds, show_bounds

global_extent = Boolean(default=False, label='Global extent')

Whether the plot should display the whole globe.

class geoviews.plotting.bokeh.plot.GeoPlot(element, **params)[source]#

Bases: ProjectionPlot, ElementPlot

Plotting baseclass for geographic plots with a cartopy projection.

Methods

get_data(element, ranges, style)

Returns the data from an element in the appropriate format for initializing or updating a ColumnDataSource and a dictionary which maps the expected keywords arguments of a glyph to the column in the datasource.

initialize_plot([ranges, plot, plots, source])

Initializes a new plot object with the last available frame.

update_frame(key[, ranges, element])

Set the plot(s) to the given frame number.

Parameter Definitions


Parameters inherited from:

holoviews.plotting.plot.DimensionedPlot: fontscale, show_title, normalize

holoviews.plotting.plot.GenericElementPlot: apply_ranges, apply_extents, bgcolor, default_span, hooks, invert_axes, invert_xaxis, invert_yaxis, logx, logy, padding, show_legend, xaxis, yaxis, xlabel, ylabel, xlim, ylim, zlim, xrotation, yrotation

holoviews.plotting.bokeh.plot.BokehPlot: title, shared_datasource, title_format, autohide_toolbar

holoviews.plotting.bokeh.element.ElementPlot: fontsize, xticks, yticks, toolbar, width, height, active_tools, align, apply_hard_bounds, autorange, border, aspect, backend_opts, data_aspect, frame_width, frame_height, min_width, min_height, max_width, max_height, margin, multi_y, scalebar, scalebar_range, scalebar_unit, scalebar_location, scalebar_label, scalebar_tool, scalebar_opts, subcoordinate_y, subcoordinate_scale, responsive, gridstyle, labelled, lod, show_frame, shared_axes, tools, hover_tooltips, hover_formatters, hover_mode, xformatter, yformatter

projection = Parameter(default=<Bound CRS: +proj=merc +a=6378137.0 +b=6378137.0 +nadgrids=@nu ...> Name: unknown Axis Info [cartesian]: - E[east]: Easting (metre) - N[north]: Northing (metre) Area of Use: - undefined Coordinate Operation: - name: unknown to WGS84 - method: NTv2 Datum: unknown using nadgrids=@null - Ellipsoid: unknown - Prime Meridian: Greenwich Source CRS: unknown , label='Projection')

Allows supplying a custom projection to transform the axis coordinates during display. Defaults to GOOGLE_MERCATOR.

show_grid = Boolean(default=False, label='Show grid')

Whether to show gridlines on the plot.

default_tools = List(bounds=(0, None), default=['save', 'pan', WheelZoomTool(id='p1004', ...), BoxZoomTool(id='p1005', ...), 'reset'], label='Default tools')

A list of plugin tools to use on the plot.

infer_projection = Boolean(default=False, label='Infer projection')

Whether the projection should be inferred from the element crs.

fixed_bounds = Boolean(default=False, label='Fixed bounds')

Whether to prevent zooming beyond the projections defined bounds.

global_extent = Boolean(default=False, label='Global extent')

Whether the plot should display the whole globe.

show_bounds = Boolean(default=False, label='Show bounds')

Whether to show gridlines on the plot.

get_data(element, ranges, style)[source]#

Returns the data from an element in the appropriate format for initializing or updating a ColumnDataSource and a dictionary which maps the expected keywords arguments of a glyph to the column in the datasource.

initialize_plot(ranges=None, plot=None, plots=None, source=None)[source]#

Initializes a new plot object with the last available frame.

update_frame(key, ranges=None, element=None)[source]#

Set the plot(s) to the given frame number. Operates by manipulating the matplotlib objects held in the self._handles dictionary.

If n is greater than the number of available frames, update using the last available frame.