-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplot_ppar.py
More file actions
27 lines (22 loc) · 895 Bytes
/
plot_ppar.py
File metadata and controls
27 lines (22 loc) · 895 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
import numpy as np
import sys
sys.path.append( 'pkg' )
import pymod_indx, pymod_data, pymod_plot
handle, legend = [], []
ax = pymod_plot.plot_1d_init()
func = np.abs
t = np.loadtxt( "res/time.dat" )
data = np.loadtxt( "res/ppar_1d_dpl0_coo2_37_0.dat" )
label = '[-1, 1, 1]'
pymod_data.plot_signal_1d( t, data, func, handle, legend, ax,
obj='p', t0=-100, lim=[-300.0, 546],
lbl=label, padding=10.0, w_shift=16000. )
pymod_plot.plot_show( ax, handle=handle, legend=legend,
xlabel=r"Time (fs)",
ylabel=r"Signal (arb.)",
title=r"Polarization in time domain" )
# xlabel=r"Freq. (cm$^{-1}$)",
# ylabel=r"Signal (arb.)",
# title=r"Spectrum",
# xlim=[-17000, -15000]
#xlim=[-80000, 8000] )