5.11.1.16. eqcorrscan.utils.plotting.threeD_gridplot

eqcorrscan.utils.plotting.threeD_gridplot(nodes, save=False, savefile=None)[source]

Plot in a series of grid points in 3D.

Parameters:
  • nodes (list) – List of tuples of the form (lat, long, depth)
  • save (bool) – if True will save without plotting to screen, if False (default) will plot to screen but not save
  • savefile (str) – required if save=True, path to save figure to.
Returns:

matplotlib.figure.Figure

Example

>>> from eqcorrscan.utils.plotting import threeD_gridplot
>>> nodes = [(-43.5, 170.4, 4), (-43.3, 170.8, 12), (-43.4, 170.3, 8)]
>>> threeD_gridplot(nodes=nodes)  

(Source code, png, hires.png)

../../_images/eqcorrscan-utils-plotting-threeD_gridplot-1.png