Untitled
import matplotlib.pyplot as plt import numpy as np # Example: E-field in TE mode x = np.linspace(-10, 10, 100) y = np.linspace(-10, 10, 100) X, Y = np.meshgrid(x, y) Z = np.sin(X) * np.cos(Y) # Example of a simple E-field pattern plt.figure(figsize=(6, 6)) plt.contourf(X, Y, Z, cmap='coolwarm') plt.colorbar(label="E-field") plt.title("TE Mode - Electric Field") plt.xlabel("X-axis") plt.ylabel("Y-axis") plt.show()
Leave a Comment