CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download
Project: test
Views: 91872
1
# -*- coding: utf-8 -*-
2
"""
3
Created on Sat Jan 24 15:20:47 2015
4
5
@author: rlabbe
6
"""
7
8
import numpy as np
9
import matplotlib.pyplot as plt
10
11
try:
12
data
13
except:
14
cols = ('time','millis','ax','ay','az','rollrate','pitchrate','yawrate',
15
'roll','pitch','yaw','speed','course','latitude','longitude',
16
'altitude','pdop','hdop','vdop','epe')
17
data = np.genfromtxt('2014-03-26-000-Data.csv', delimiter=',',
18
names=True, usecols=cols).view(np.recarray)
19
20
21
22
plt.subplot(311)
23
plt.plot(data.ax)
24
plt.subplot(312)
25
plt.plot(data.speed)
26
plt.subplot(313)
27
plt.plot(data.course)
28
plt.tight_layout()
29
30
plt.figure()
31
plt.subplot(311)
32
plt.plot(data.pitch)
33
plt.subplot(312)
34
plt.plot(data.roll)
35
plt.subplot(313)
36
plt.plot(data.yaw)
37
plt.figure()
38
plt.plot(data.longitude, data.latitude)
39