Plot Manager#

class shift.PlotManager(center: GeoLocation | None = None)#

Class for managing plotly plots.

Parameters:

center (GeoLocation) – Centre of the map. Optional defaults to GeoLocation(0,0)

Examples

Creating an instance of the plot manager.

>>> plt_instance = PlotManager()

Adding plot the plot manager.

>>> plt_instance.add_plot([GeoLocation(0,0),
    GeoLocation(0.0001, 0.0001)], name="plot1")

Displaying the plot in the browser.

>>> plt.instance.show()

Constructor for managing plots with plotly.

Methods#

PlotManager.__init__([center])

Constructor for managing plots with plotly.

PlotManager.add_plot(geometries, name[, mode])

Method to add geometries.

PlotManager.show()

Method to show the plot.