Skip to content

How to annotate and add Markers to Smith Chart output? #1039

Closed Answered by mhuser
shabaz123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @shabaz123 thank you for your interest in the smith chart.
I do not know a simple way to have interactive markers but you will find below an example with two traces and your background image.

import skrf as rf
from matplotlib import pyplot as plt
import numpy as np
rf.stylely()

from skrf.data import ring_slot

n = ring_slot
marker_idx = [30, 60, 90]
colors = ['g', 'r']
to_plot = [0, 1]


# prepare figure
fig, ax = plt.subplots(1, 1, figsize=(7,8))
background = plt.imread('smithchart.png')

# nice smith chart
# tweak background position
ax.imshow(background, extent=[-1.19, 1.14, -1.13, 1.15])
rf.plotting.smith(ax = ax, draw_labels = True, ref_imm = 1.0, chart_type = 'z')

# plot ma…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by shabaz123
Comment options

You must be logged in to vote
1 reply
@mhuser
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants