CoCalc Public Filessupport / 2015-05-12-204845.htmlOpen with one click!
Authors: Gihan Marasingha, Harald Schilly, ℏal Snyder, William A. Stein
Description: Jupyter html version of support/2015-05-12-204845.ipynb
Compute Environment: Ubuntu 18.04 (Deprecated)
In [3]:
%matplotlib inline
import matplotlib.pyplot as pyplot
import matplotlib.tri as tri
import numpy

node =  numpy.asarray([[0,0],[1,0],[1,1],[0,1]])
x = node[:,0]
y = node[:,1]
triangles = numpy.asarray([[1,2,0],[3,0,2]])

pyplot.triplot(x, y, triangles, 'go-')
pyplot.title('triplot of user-specified triangulation')
pyplot.xlabel('Longitude (degrees)')
pyplot.ylabel('Latitude (degrees)')
In [ ]: