-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQ25.py
More file actions
43 lines (27 loc) · 863 Bytes
/
Copy pathQ25.py
File metadata and controls
43 lines (27 loc) · 863 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
43
from smith_chart import plot_smith
from pylab import *
plot_smith()
ZL = 1.5 - 0.7j
G = (ZL-1)/(ZL+1)
plot(real(G),imag(G),'bo')
# marker of load impedance
text(real(G),imag(G),ZL)
text(0.9,0.9,r'$|\Gamma|=%0.2f$'%abs(G))
# G - circle
theta = linspace(0,2*pi,128)
plot(abs(G) * cos(theta),abs(G)*sin(theta),alpha=0.4)
#line from the load point
amp = linspace(0,1.3,128)
plot(amp*cos(angle(G)),amp*sin(angle(G)))
L = 0.196 # lambda
# travel towards generator
phi = linspace(0,L,64)*4*pi
for p in phi:
plot(abs(G) * cos(-p+angle(G)),abs(G)*sin(-p+angle(G)),marker='o',c='m',markersize=6,alpha=0.2)
L = -0.0541667 # lambda
# travel towards generator
phi = linspace(0,L,64)*4*pi
for p in phi:
plot(abs(G) * cos(-p+angle(G)),abs(G)*sin(-p+angle(G)),marker='o',c='c',markersize=6,alpha=0.2)
savefig('Q25.png',dpi=150,bbox_inches='tight')
show()