Skip to content

Commit de043e7

Browse files
committed
Added a basic scripting page for the demo
1 parent b864afe commit de043e7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/script.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import numpy as np
2+
import scisoftpy as dnp
3+
4+
# np?
5+
6+
np.sum(np.random.rand(100,100))
7+
8+
# %timeit previous
9+
10+
# %pylab
11+
12+
import pandas as pd
13+
df = pd.DataFrame()
14+
df['a'] = np.random.rand(100)
15+
df['b'] = np.random.rand(100)
16+
df.plot()
17+
18+
# dnp plotting
19+
dnp.plot.line(np.random.rand(100))
20+
dnp.plot.image(dnp.random.rand(100,100))
21+
dnp.plot.surface(dnp.random.rand(100,100))
22+
23+
# async
24+
for i in range(1000):
25+
dnp.plot.image(dnp.random.rand(100,100))
26+
print(i)
27+
28+
#
29+
a = np.random.rand(100)
30+
b = np.random.rand(100)
31+
32+

0 commit comments

Comments
 (0)