[1]:
%matplotlib inline
from pylab import *
import skrf as rf
rf.stylely()
from skrf.media import DistributedCircuit
from skrf import Frequency

from ipywidgets import interact

# define a frequency object
freq = Frequency(0,10,1001,'ghz')

# create a Media object for RG-58, based on distributed ckt values
rg58 = DistributedCircuit(frequency = freq,
                          C =93.5e-12,#F/m
                          I =273e-9,  #H/m
                          R =0,#53e-3,   #Ohm/m
                          G =0,       #S/m
                          )


load = rg58.load(.5)
def func(d1=180,d2=180):
    l1 =rg58.line(d=d1,unit='deg')
    l2 =rg58.shunt_delay_open(d=d2,unit='deg')
    ntwk = l2**l1**load
    ntwk.plot_s_smith(0,0)
    draw()
    show()

a=interact(func, d1= (0,360,10),d2= (0,360,10),embed=True);
../../_images/examples_interactive_Interact_Transmission_Lines_0_0.png
[2]: