|
From: radfahrer <cl...@m-...> - 2010-09-27 14:37:36
|
Hi everybody,
I am trying to plot a triangular grid from a textfile using triplot, but all
I get is some wired straight line
code:
import numpy as np
import matplotlib.pyplot as plt
x, y = np.loadtxt('points.dat', unpack=True)
triangles = np.loadtxt('triangles.dat', dtype=np.int32)
plt.triplot(x, y, triangles, 'go-')
Thanks
http://old.nabble.com/file/p29815755/points.dat points.dat
http://old.nabble.com/file/p29815755/triangles.dat triangles.dat
--
View this message in context: http://old.nabble.com/Problems-using-triplot-from-file-tp29815755p29815755.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
|