|
41 | 41 |
|
42 | 42 |
|
43 | 43 | ########################################################################################
|
44 |
| -# We'll use :meth:`pygmt.Figure.plot` method to plot circles on the locations of the |
45 |
| -# hypocenters of the earthquakes. |
| 44 | +# We'll use the :meth:`pygmt.Figure.plot` method to plot circles on the earthquake epicenters. |
46 | 45 |
|
47 | 46 | fig = pygmt.Figure()
|
48 | 47 | fig.basemap(region=region, projection="M15c", frame=True)
|
|
52 | 51 |
|
53 | 52 | ########################################################################################
|
54 | 53 | # We used the style ``c0.3c`` which means "circles of 0.3 centimeter size". The ``pen``
|
55 |
| -# parameter controls the outline of the symbols and the ``color`` controls the fill. |
| 54 | +# parameter controls the outline of the symbols and the ``color`` parameter controls the fill. |
56 | 55 | #
|
57 | 56 | # We can map the size of the circles to the earthquake magnitude by passing an array to
|
58 | 57 | # the ``sizes`` parameter. Because the magnitude is on a logarithmic scale, it helps to
|
|
72 | 71 | fig.show()
|
73 | 72 |
|
74 | 73 | ########################################################################################
|
75 |
| -# Notice that we didn't include the size in the ``style`` argument this time, just the |
| 74 | +# Notice that we didn't include the size in the ``style`` parameter this time, just the |
76 | 75 | # symbol ``c`` (circles) and the unit ``c`` (centimeter). So in this case, the sizes
|
77 | 76 | # will be interpreted as being in centimeters.
|
78 | 77 | #
|
79 | 78 | # We can also map the colors of the markers to the depths by passing an array to the
|
80 |
| -# ``color`` argument and providing a colormap name (``cmap``). We can even use the new |
| 79 | +# ``color`` parameter and providing a colormap name (``cmap``). We can even use the new |
81 | 80 | # matplotlib colormap "viridis". Here, we first create a continuous colormap
|
82 | 81 | # ranging from the minimum depth to the maximum depth of the earthquakes
|
83 | 82 | # using :func:`pygmt.makecpt`, then set ``cmap=True`` in :func:`pygmt.Figure.plot`
|
|
0 commit comments