Added functionality to analysis/plot_resonator