plot_presets.py,preset.csv : Initial commit.

This commit is contained in:
kevin 2016-12-31 13:11:54 -05:00
parent 48765f6e25
commit a223bdbfed
2 changed files with 103 additions and 0 deletions

View File

@ -0,0 +1,70 @@
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import csv
plt.switch_backend('TkAgg')
"""
def randrange(n, vmin, vmax):
return (vmax - vmin)*np.random.rand(n) + vmin
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
n = 100
for c, m, zl, zh in [('r', 'o', -50, -25), ('b', '^', -30, -5)]:
xs = randrange(n, 23, 32)
ys = randrange(n, 0, 100)
zs = randrange(n, zl, zh)
ax.scatter(xs, ys, zs, c=c, marker=m)
ax.set_xlabel('X Label')
ax.set_ylabel('Y Label')
ax.set_zlabel('Z Label')
plt.show()
"""
fn = "preset.csv"
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.set_xlabel('Threshold')
ax.set_ylabel('Lower')
ax.set_zlabel('Upper')
with open(fn) as f:
rd = csv.reader(f)
rd.next()
for x in rd:
label = x[0]
ch = x[1]
mode = x[2]
thresh= x[3]
upr = x[4]
lwr = x[5]
offs = x[6]
c = 'b'
if float(mode)==4:
c = 'g'
if float(mode)==0:
c = 'r'
lbl = "%s-%s" % (label,ch)
x = float(thresh)
y = float(lwr)
z = float(upr)
ax.scatter(x,y,z,c=c)
ax.text(x,y,z, '%s' % (lbl), size=10, zorder=1, color='k')
plt.show()

View File

@ -0,0 +1,33 @@
Preset,Channel,Mode,Threshold,Upper,Lower,Offset,CGain,WetDry,WGain
A,L,1.000000,60.000000,-1.100000,2.000000,,6.000000,1.000000,1.750000,
A,R,1.000000,60.000000,-0.990000,2.000000,,6.000000,1.000000,1.750000,
B,L,1.000000,77.000000,-0.500000,3.000000,,10.000000,,1.750000,
B,R,1.000000,74.000000,-0.500000,2.000000,,10.000000,,1.750000,
C,L,1.000000,80.000000,-0.500000,5.000000,,11.000000,1.000000,,
C,R,1.000000,80.000000,-0.500000,5.000000,,11.000000,1.000000,,
D,L,1.000000,70.000000,-3.900000,4.000000,,9.000000,1.000000,,
D,R,1.000000,70.000000,-4.500000,4.000000,,9.000000,1.000000,,
F_1,L,1.000000,50.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
F_1,R,1.000000,50.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
F_2,L,1.000000,60.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
F_2,R,1.000000,60.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
F_3,L,1.000000,55.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
F_3,R,1.000000,55.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
F_4,L,1.000000,55.000000,-5.000000,1.000000,,6.000000,1.000000,2.000000,
F_4,R,1.000000,55.000000,-5.000000,1.000000,,6.000000,1.000000,2.000000,
G,L,4.000000,60.000000,-0.700000,8.000000,20.000000,10.000000,1.000000,,
G,R,4.000000,64.000000,-0.700000,8.000000,20.000000,10.000000,1.000000,,
G_A,L,4.000000,50.000000,-0.700000,2.000000,40.000000,10.000000,1.000000,,
G_A,R,4.000000,54.000000,-0.700000,2.000000,40.000000,10.000000,1.000000,,
G_1_A,L,4.000000,50.000000,-0.700000,8.000000,20.000000,10.000000,1.000000,1.000000,
G_1_A,R,4.000000,54.000000,-0.700000,2.000000,20.000000,10.000000,1.000000,1.000000,
G_1_D,L,4.000000,40.000000,-0.400000,7.000000,60.000000,10.000000,1.000000,1.000000,
G_1_D,R,4.000000,34.000000,-0.300000,5.000000,64.000000,10.000000,1.000000,1.000000,
1, X,0, 40,-5.5,0.3,0
2, X,0, 40,-5.5,8.0,0
3, X,0, 40, 2.5,0.3,0
4, X,0, 40, 2.5,8.0,0
5, X,0, 95,-5.5,0.3,0
6, X,0, 95,-5.5,8.0,0
7, X,0, 95, 2.5,0.3,0
8, X,0, 95, 2.5,8.0,0
1 Preset,Channel,Mode,Threshold,Upper,Lower,Offset,CGain,WetDry,WGain
2 A,L,1.000000,60.000000,-1.100000,2.000000,,6.000000,1.000000,1.750000,
3 A,R,1.000000,60.000000,-0.990000,2.000000,,6.000000,1.000000,1.750000,
4 B,L,1.000000,77.000000,-0.500000,3.000000,,10.000000,,1.750000,
5 B,R,1.000000,74.000000,-0.500000,2.000000,,10.000000,,1.750000,
6 C,L,1.000000,80.000000,-0.500000,5.000000,,11.000000,1.000000,,
7 C,R,1.000000,80.000000,-0.500000,5.000000,,11.000000,1.000000,,
8 D,L,1.000000,70.000000,-3.900000,4.000000,,9.000000,1.000000,,
9 D,R,1.000000,70.000000,-4.500000,4.000000,,9.000000,1.000000,,
10 F_1,L,1.000000,50.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
11 F_1,R,1.000000,50.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
12 F_2,L,1.000000,60.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
13 F_2,R,1.000000,60.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
14 F_3,L,1.000000,55.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
15 F_3,R,1.000000,55.000000,-3.000000,1.000000,,6.000000,1.000000,2.000000,
16 F_4,L,1.000000,55.000000,-5.000000,1.000000,,6.000000,1.000000,2.000000,
17 F_4,R,1.000000,55.000000,-5.000000,1.000000,,6.000000,1.000000,2.000000,
18 G,L,4.000000,60.000000,-0.700000,8.000000,20.000000,10.000000,1.000000,,
19 G,R,4.000000,64.000000,-0.700000,8.000000,20.000000,10.000000,1.000000,,
20 G_A,L,4.000000,50.000000,-0.700000,2.000000,40.000000,10.000000,1.000000,,
21 G_A,R,4.000000,54.000000,-0.700000,2.000000,40.000000,10.000000,1.000000,,
22 G_1_A,L,4.000000,50.000000,-0.700000,8.000000,20.000000,10.000000,1.000000,1.000000,
23 G_1_A,R,4.000000,54.000000,-0.700000,2.000000,20.000000,10.000000,1.000000,1.000000,
24 G_1_D,L,4.000000,40.000000,-0.400000,7.000000,60.000000,10.000000,1.000000,1.000000,
25 G_1_D,R,4.000000,34.000000,-0.300000,5.000000,64.000000,10.000000,1.000000,1.000000,
26 1, X,0, 40,-5.5,0.3,0
27 2, X,0, 40,-5.5,8.0,0
28 3, X,0, 40, 2.5,0.3,0
29 4, X,0, 40, 2.5,8.0,0
30 5, X,0, 95,-5.5,0.3,0
31 6, X,0, 95,-5.5,8.0,0
32 7, X,0, 95, 2.5,0.3,0
33 8, X,0, 95, 2.5,8.0,0