You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import rf as rfpy
from pylab import *
import numpy as np
import re
import matplotlib
from matplotlib import pyplot as plt
import skrf as rf
rf.stylely #this is also confusing. Example says to use rf.stylely(), but that gives an error
bfu725 = rf.Network('BFU725F_2V_5mA_S_N.s2p')
bfu725
2-Port Network: 'BFU725F_2V_5mA_S_N', 40.0-26000.0 MHz, 197 pts, z0=[50.+0.j 50.+0.j]
But when I try to plot the data I get an error:
bfu725.plot_s_db()
AttributeError: 'Network' object has no attribute 'plot_s_d
So it looks like the dynamically created function plot_s_db() does not get created.
What could be the reason? I cannot do any ploting using skrf.
Linux MX, python 3.11, matplotlib installed (inline plotting using matplotlib works)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Edit: It looks like I had a very old version of skrf installed and that was the problem. After upgrading skrf everything works fine.
I follow the example instructions given on https://scikit-rf.readthedocs.io/en/latest/tutorials/Networks.html using a transistor s2p data file.
I load the s2p file with no problem and I get:
But when I try to plot the data I get an error:
So it looks like the dynamically created function plot_s_db() does not get created.
What could be the reason? I cannot do any ploting using skrf.
Linux MX, python 3.11, matplotlib installed (inline plotting using matplotlib works)
Beta Was this translation helpful? Give feedback.
All reactions