Hi,
I would like to plot "toothed" curves using basemap. These are curves
with triangles on one side, that are used to plot pressure fronts in
meteorology or thrust faults in geology. You need to be able to say
which side of the curve the triangles should appear on. Does anyone know
whether
Hmmm, this is actually an interesting problem. I am also a meteorologist,
so this is interesting to me.
I haven't figured it out yet, but here are my thoughts:
1) There are the "^" triangle markers as well as "2" tri_up markers:
Looks like someone else figured out a creative solution using quiver:
http://stackoverflow.com/questions/19918502/sawtooth-line-style-in-matplotlib
Here it is (slightly cleaned up):
import matplotlib.pyplot as pltimport numpy as np
x = np.linspace(0, 2*np.pi, 100)
y = np.sin(x)
dx = np.diff(x)
Wow, that's fantastic Ben. Thanks so much for finding that, it's just
what I need!
Regards,
- Phil
Benjamin Root wrote:
Looks like someone else figured out a creative solution using quiver:
http://stackoverflow.com/questions/19918502/sawtooth-line-style-in-matplotlib
Here it is (slightly