InsetMaps
- class eomaps.inset_maps.InsetMaps(parent, crs=4326, layer=None, xy=(45, 45), xy_crs=4326, radius=5, radius_crs=None, plot_position=(0.5, 0.5), plot_size=0.5, shape='ellipses', indicate_extent=True, indicator_line=False, boundary=True, background_color='w', **kwargs)
Base class to create inset maps.
Methods
|
|
|
Add an annotation to the plot. |
|
Add a colorbar to the map. |
|
Add a "compass" or "north-arrow" to the map. |
|
Add a polygon to a map that indicates the current extent of this inset-map. |
|
Plot a geopandas.GeoDataFrame on the map. |
|
Add gridlines to the map. |
|
Add a line that connects the inset-map to the inset location on a given map. |
|
Draw a line by connecting a set of anchor-points. |
|
Add a small image (png, jpeg etc.) to the map. |
|
Add a marker to the plot. |
|
Add a scalebar to the map. |
|
Convenience function to add a title to the map. |
|
Set the positions of all axes within the current plot based on a previously defined layout. |
|
Cleanup all references to the object so that it can be safely deleted. |
|
Create a (deep)copy of the Maps object that shares selected specifications. |
|
Toggle if annotations are editable or not. |
|
Activate the "layout-editor" to quickly re-arrange the positions of subplots. |
|
Fetch (and cache) WebMap layer names for the companion-widget. |
|
Fetch (and cache) the layers of a map. |
|
Get the pyproj CRS instance of a given crs specification. |
|
Get the extent (x0, x1, y0, y1) of the map in the given coordinate system. |
|
Get the current inset position (and size). |
|
Get the positions of all axes within the current plot. |
|
Indicate a rectangular extent in a given crs on the map. |
|
|
Use the classification of another Maps-object when plotting the data. |
|
|
Use the data of another Maps-object (without copying). |
|
Join the x- and y- limits of the maps (crs must be equal!). |
Make the associated dataset pickable without plotting it first. |
|
|
Create a new (empty) inset-map that shows a zoomed-in view on a given extent. |
|
Create a new Maps-object that shares the same plot-axes. |
|
Create a new map that shares the figure with this Maps-object. |
|
Attach a callback that is executed if the associated layer is activated. |
|
Plot the dataset assigned to this Maps-object. |
|
Force a re-draw of cached background layers. |
Set the behavior of WebMap services with respect to size changes. |
|
|
Save the current figure. |
|
Set classification specifications for the data. |
|
Set GLOBAL savefig parameters for all Maps objects on export to the clipboard. |
|
Set the properties of the dataset you want to plot. |
|
WARNING: m.set_data_specs(...) is depreciated! Use m.set_data(...) instead! |
|
Set the extent (x0, x1, y0, y1) of the map in the given coordinate system. |
|
Set the map-extent based on a given location query. |
|
Set the properties of the map boundary and the background patch. |
|
Set the (center) position and size of the inset-map. |
|
Show the map (only required for non-interactive matplotlib backends). |
|
Show a single layer or (transparently) overlay multiple selected layers. |
|
Print a static image of the figure to the active IPython display. |
|
Update the subplot parameters of the grid. |
|
Add text to figure. |
Attributes
The Blit-Manager used to dynamically update the plots. |
|
Accessor for available classification schemes. |
|
Interface to the feature-layers provided by NaturalEarth. |
|
A collection of open-access WebMap services that can be added to the maps. |
|
Get a Maps-object on the "all" layer. |
|
The matplotlib (cartopy) GeoAxes associated with this Maps-object. |
|
Accessor for attaching callbacks and accessing return-objects. |
|
The collection representing the dataset plotted by m.plot_map(). |
|
Get the most recently added colorbar of this Maps-object. |
|
The crs used for plotting. |
|
The data assigned to this Maps-object. |
|
Base-class for drawing shapes on a map. |
|
The matplotlib Figure associated with this Maps-object. |
|
The layer-name associated with this Maps-object. |
|
A collection of methods to add a new layer to an existing Maps-object from a file. |
|
The parent-object to which this Maps-object is connected to. |
|
Interface to the classifiers provided by the 'mapclassify' module. |
|
Set the plot-shape to represent the data-points. |
|
The shape that is used to represent the dataset if m.plot_map() is called. |
|
A collection of utility tools that can be added to EOmaps plots. |