-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemp_script.py
More file actions
32 lines (29 loc) · 877 Bytes
/
Copy pathtemp_script.py
File metadata and controls
32 lines (29 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# exec(open("./temp_script.py").read())
# test matplitlib speed
import matplotlib
matplotlib.use('Qt4Agg')
import matplotlib.pyplot as plt
import numpy as np
import PyNeuroPlot as pnp
import time
if 0:
t=time.time()
for i in range(100):
temp=plt.subplot(10,10,i+1)
temp=pnp.SignalPlot( np.arange(1000.0)/1000, np.random.rand(2000,1000,5)+i )
print(time.time()-t);
if 0:
t=time.time()
h_f = plt.figure()
for i in range(100):
temp = h_f.add_subplot(10,10,i+1)
temp = pnp.SignalPlot( np.arange(1000.0)/1000, np.random.rand(2000,1000,5)+i )
print(time.time()-t)
if 1:
t=time.time()
[hf, hs] = plt.subplots(10,10)
for i in range(10):
for j in range(10):
plt.axes(hs[i,j])
temp = pnp.SignalPlot( np.arange(1000.0)/1000, np.random.rand(2000,1000,5)+i )
print(time.time()-t)