Hi! I’m new to pygmt (it’s amazing!) and have a quick question. What is the preferred way to plot multiple triangles (e.g., from a triangulated mesh) with a single fig.plot call? I’m asking because I’d like to plot 100-100k of these and looping is too slow.
A MWE of a sequential two triangle (one red and one blue) example is below. I thought a first thing to do would be to learn how to plot both of these with a single call to fig.plot.
Thoughts and guidance much appreciated!
import pygmt fig = pygmt.Figure() fig.plot(x=[-130, -125, -127], y=[35, 40, 39], color="red", pen="1.0p,black") fig.plot(x=[-126, -125, -127], y=[35, 38, 37], color="blue", pen="1.0p,black") fig.show()