30 lines
617 B
Python
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() |