-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.py
More file actions
42 lines (27 loc) · 726 Bytes
/
Copy pathscript.py
File metadata and controls
42 lines (27 loc) · 726 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
33
34
35
36
37
38
39
40
41
42
import numpy as np
import scisoftpy as dnp
# np?
np.sum(np.random.rand(100,100))
# %timeit previous
# %pylab
import pandas as pd
df = pd.DataFrame()
df['a'] = np.random.rand(100)
df['b'] = np.random.rand(100)
df.plot()
# dnp plotting
dnp.plot.line(np.random.rand(100))
dnp.plot.image(dnp.random.rand(100,100))
dnp.plot.surface(dnp.random.rand(100,100))
dnp.plot.image(dnp.random.rand(100,100), name="Wibble")
dnp.plot.image(dnp.random.rand(100,100), name="Plot 2")
# async
for i in range(1000):
dnp.plot.image(dnp.random.rand(100,100))
print(i)
# Show variables
a = np.random.rand(100)
b = np.random.rand(100)
# show debgging
from demo import foo
foo.mul(a,b)