2012/2/13 Andrea Gavana <[email protected]> > ---------- Forwarded message ---------- > From: "Andrea Gavana" <[email protected]> > Date: Feb 13, 2012 11:31 PM > Subject: Re: [Numpy-discussion] Creating parallel curves > To: "Jonathan Hilmer" <[email protected]> > > Thank you Jonathan for this, it's exactly what I was looking for. I' ll > try it tomorrow on the 768 well trajectories I have and I'll let you know > if I stumble upon any issue. > > If someone could shed some light on my problem number 2 (how to adjust the > scaling/distance) so that the curves look parallel on a matplotlib graph > even though the axes scales are different, I'd be more than grateful. > > Thank you in advance. >
Hi. Maybe this could help you as a starting point. *from Shapely.geometry import LineString from matplotlib import pyplot myline = LineString(...) x, y = myline.xy xx, yy = myline.buffer(distancefrommyline).exterior.xy # coordinates around myline pyplot.plot(x, y) pyplot.plot(xx,yy) pyplot.show()* Best.
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
