I am trying to draw tines that look like tick-marks on the sides of an equilateral triangle. I am doing this using Matplotlib in Python.
Here is the equilateral triangle***:
import matplotlib.pyplot as plt
from pylab import *
fig = figure()
ax = fig.add_subplot(111)
ax.axis('equal')
ax.plot([1, 0.5], [0, 0.866], 'k-')
ax.plot([0, 0.5], [0, 0.866], 'k-')
ax.plot([0, 1], [0, 0], 'k-')
ax.plot([0.5, 1.01, 0.1], [-0.01, 0.5, 0.88], 'w.') #base boundary
plt.show()
The resulting image is seen here.
.
Now, I would like to add lines that look like tick marks. The lines would be drawn like seen here from 1:07-1:29 and from 2:19-2:32.
I would like the output to look something like this image.
Is there a way to draw these lines with Matplotlib?
EDIT: *** triangle code as per here
