-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_vis.py
35 lines (27 loc) · 898 Bytes
/
test_vis.py
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
import numpy as np
import pandas as pd
import matplotlib
matplotlib.use('Qt5Agg')
import matplotlib.pyplot as plt
import matplotlib.collections as collections
import matplotlib.patches as patches
import matplotlib.animation as animation
import mx3tools.ovftools as ovftools
import mx3tools.statutil as statutil
import mx3tools.datautil as datautil
import mx3tools.plotutil as plotutil
import mx3tools.util as util
import tqdm
import cmocean
import pprint
plt.style.use('dark_background')
np.set_printoptions(linewidth=120, precision=3)
data = datautil.SimRun('/home/pdmurray/Desktop/Workspace/dmidw/barkhausen/D_0.0e-3/2019-06-24/')
# azbins, azhist, _, _ = statutil.event_hists(data, 40, key='Az')
# print('Done!')
d = data.get_sim(1)
y = util.diff(d.t(), d.table['ext_exactdwposavg (m)'].values, 1, 1)
plt.plot(d.t(), d.vdw(), '-w')
plt.plot(d.t(), y, '-r')
plt.tight_layout()
plt.show()