From e28cc13d02f912bc5f3e4231d2eec4587308cef6 Mon Sep 17 00:00:00 2001 From: Ken Lauer <152229072+ken-lauer@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:02:59 -0800 Subject: [PATCH] MAINT: upright units --- pmd_beamphysics/wavefront.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmd_beamphysics/wavefront.py b/pmd_beamphysics/wavefront.py index 164df40..702dc81 100644 --- a/pmd_beamphysics/wavefront.py +++ b/pmd_beamphysics/wavefront.py @@ -1492,13 +1492,13 @@ def plot(dat, title: str): if rspace: # See tech note 3.2 power_density = 1 / 1e4 * np.abs(mesh_data) ** 2 / (2.0 * Z0) - img = plot(power_density, "Power density of mesh $W/cm^2$") + img = plot(power_density, "Power density of mesh (W/cm$^2$)") else: # See tech note 3.6 (coefficient is in 3.4) power_density = ( np.abs(mesh_data) ** 2 / (2.0 * Z0) * self.fft_unit_coeff ) - img = plot(power_density, "Power density of mesh $J/eV/rad^2$") + img = plot(power_density, "Power density of mesh (J/eV/rad$^2$)") elif key == "phase": phase = np.angle(mesh_data)