Files
Misc-Downhole-Diagnostics/WellBore/drawWellBore.py
Patrick McDonagh a1714c722f Initial Commit
2016-07-01 16:43:39 -05:00

30 lines
617 B
Python

# -*- coding: utf-8 -*-
"""
Created on Fri Oct 23 18:23:25 2015
@author: patrickjmcd
"""
import csv
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
f = open('melinda254.csv', 'rb')
reader = csv.reader(f)
headers = reader.next()
csv_data = {}
for h in headers:
csv_data[h] = []
for row in reader:
for h,v in zip(headers, row):
csv_data[h].append(float(v))
csv_data['Depth'] = map(lambda x: -1*x, csv_data['Depth'])
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.plot(csv_data['Northings'], csv_data['Eastings'], csv_data['Depth'])
plt.show()