From fa67b2e3c15d1388c4d9f085be7859d3238bfb12 Mon Sep 17 00:00:00 2001 From: mcapodif Date: Mon, 9 Dec 2024 10:45:52 +0100 Subject: [PATCH] Fix plot on Iris filter example that was plotting magnitude of S parameters instead of dB. --- examples/high_frequency/radiofrequency_mmwave/iris_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/high_frequency/radiofrequency_mmwave/iris_filter.py b/examples/high_frequency/radiofrequency_mmwave/iris_filter.py index a0df6a421..f2f5a62bf 100644 --- a/examples/high_frequency/radiofrequency_mmwave/iris_filter.py +++ b/examples/high_frequency/radiofrequency_mmwave/iris_filter.py @@ -242,7 +242,7 @@ def place_iris(z_pos, dz, param_count): report = hfss.post.create_report(traces_to_plot) # Creates a report in HFSS solution = report.get_solution_data() -plt = solution.plot(solution.expressions) # Matplotlib axes object. +plt = solution.plot(solution.expressions, formula="dB20") # Matplotlib axes object. # - # The following command generates a field plot in HFSS and uses PyVista