Figure.meca cannot draw beachball with different colors


Hope this email finds you well. I found my pygmt cannot give beachball with various colors. I followed the example here: Focal mechanisms — PyGMT
However, my pygmt always returns errors saying that “compressionfill” and “extensionfill” are unrecognized (even “pen” is also unrecognized). Can anyone tell me how to solve this problem?

Thank you!

Hello @Y-Tang99,

maybe you are not using PyGMT version v0.9.0, but an earlier version? The parameters compressionfill (for G), extensionfill (for E), and pen (for W) are available up on PyGMT v0.9.0 (please see the changelog

Hello Yvonne,

Thanks for the reply. I tried to update my pygmt, and it worked!