Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/gallery/seismology/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
compressive and extensive quadrants can be filled either with a color or a pattern via
the ``compression_fill`` and ``extension_fill`` parameters, respectively. Use the
``pen`` parameter to adjust the outline of the beachballs.

For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True``
is ignored. For details, please see the upstream GMT
[issue 9176](https://github.com/GenericMappingTools/gmt/issues/9176) and
[PR 9177](https://github.com/GenericMappingTools/gmt/pull/9177).
"""

# %%
Expand Down
5 changes: 5 additions & 0 deletions examples/tutorials/advanced/focal_mechanisms.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@
# ``depth``, e.g., by moment magnitude or hypocentral depth, respectively. Use the
# parameter ``cmap`` to pass the desired colormap. Now, the fills of the small circles
# indicating the event locations are given by the colormap.
#
# For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as ``cmap=True``
# is ignored. For details, please see the upstream GMT
# [issue 9176](https://github.com/GenericMappingTools/gmt/issues/9176) and
# [PR 9177](https://github.com/GenericMappingTools/gmt/pull/9177).

fig = pygmt.Figure()
fig.coast(region="d", projection="N10c", land="lightgray", frame=True)
Expand Down
7 changes: 7 additions & 0 deletions pygmt/src/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,13 @@ def meca(
automatically. The color of the compressive quadrants is determined by the
z-value (i.e., event depth or the third column for an input file). This setting
also applies to the fill of the circle defined via ``offset``.

.. note::
For GMT 6.7.0, a colormap set up via ``pygmt.makecpt`` and applied as
``cmap=True`` is ignored. For details, please see the upstream GMT
[issue 9176](https://github.com/GenericMappingTools/gmt/issues/9176) and
[PR 9177](https://github.com/GenericMappingTools/gmt/pull/9177).

no_clip
Do **not** skip symbols that fall outside the frame boundaries [Default is
``False``, i.e., plot symbols inside the frame boundaries only].
Expand Down