-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Python 3.10 #42
Comments
try this `# -- coding: utf-8 -- last edit: 11.04.2018'''
For making a Smith Chart plot it is sufficient to import :mod: Example:
Note: Supplying parameters to :meth: from collections.abc import Iterable import matplotlib as mp from . import smithhelperfrom .smithhelper import EPSILON, TWO_PI, ang_to_c, z_to_xyINF = 1e9 class SmithAxes1(Axes):
class SmithAxes(Axes):
author = "Paul Staerke" def xy_to_z(*xy):
def z_to_xy(z): def moebius_z(*args, norm): def moebius_inv_z(*args, norm): def ang_to_c(ang, radius=1): def lambda_to_rad(lmb): def rad_to_lambda(rad): import sys import numpy as np sys.path.append("..") sample datadata = np.loadtxt("data/s11.csv", delimiter=",", skiprows=1)[::100] data = np.loadtxt("data/s22.csv", delimiter=",", skiprows=1)[::100] plot datapp.figure(figsize=(6, 6)) ax = pp.subplot(1, 1, 1, projection='smith') pp.plot(200 + 100j, datatype=SmithAxes.Z_PARAMETER) leg = pp.legend(loc="lower right", fontsize=12) pp.savefig("export.pdf", format="pdf", bbox_inches="tight") |
This is by far the best smith chart plotting solution. Please add support for Python 3.10
Python 3.10 deprecated Iterable from collections (they moved it to collection.abc)
replacing collections with collection.abc is doesn't quite fix it though - it results in a different error
The text was updated successfully, but these errors were encountered: