-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCDplot.py
47 lines (41 loc) · 1.22 KB
/
CDplot.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
36
37
38
39
40
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 6 13:25:57 2016
@author: dfs1
"""
import matplotlib.pyplot as plt
import numpy as np
import CDSAXSfunctions as CD
def PlotQzCut(Qz,SimInt,ExpI,numbercuts):
S=SimInt
I=ExpI
for i in range(0,numbercuts):
S[:,i]=S[:,i]/(10.**(i+1))
I[:,i]=I[:,i]/(10.**(i+1))
for i in range(numbercuts):
plt.semilogy(Qz[:,i],I[:,i],'.')
plt.semilogy(Qz[:,i],S[:,i])
def plotLAM1(Coord,Trapnumber,Pitch):
Coordp=np.zeros([Trapnumber+1,5,2])
Coordp[:,:,0]=Coord[:,:,0]
Coordp[:,:,1]=Coord[:,:,0]
Coordp[:,0:1,1]=Coordp[:,0:1,1]+Pitch
for S in range(1):
h=0
Lc= np.zeros([Trapnumber+1,2])
Rc= np.zeros([Trapnumber+1,2])
for i in range(Trapnumber+1):
Lc[i,0]=Coordp[i,0,S]
Rc[i,0]=Coordp[i,1,S]
Lc[i,1]=h
Rc[i,1]=h
h=h+Coordp[i,2,S]
plt.plot(Lc[:,0],Lc[:,1])
plt.plot(Rc[:,0],Rc[:,1])
Cc=np.zeros([2,2])
for i in range(Trapnumber):
Cc[0,0]=Lc[i+1,0]
Cc[0,1]=Lc[i+1,1]
Cc[1,0]=Rc[i+1,0]
Cc[1,1]=Rc[i+1,1]
plt.plot(Cc[:,0],Cc[:,1])