Skip to content

Commit ccefe09

Browse files
committed
fix superscripts in stats
1 parent 5286686 commit ccefe09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Plotting.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,22 @@ function stats(output; kwargs...)
123123
push!(pstats, (Pfac*stats["peakpower"], "Peak power ($unit)"))
124124
end
125125
haskey(stats, "peakintensity") && push!(
126-
pstats, (1e-16*stats["peakintensity"], "Peak Intensity (TW/cm\$^2\$)"))
126+
pstats, (1e-16*stats["peakintensity"], "Peak Intensity (TW/cm²)"))
127127
haskey(stats, "fwhm_t_min") && push!(pstats, (1e15*stats["fwhm_t_min"], "min FWHM (fs)"))
128128
haskey(stats, "fwhm_t_max") && push!(pstats, (1e15*stats["fwhm_t_max"], "max FWHM (fs)"))
129129
haskey(stats, "fwhm_r") && push!(pstats, (1e6*stats["fwhm_r"], "Radial FWHM (μm)"))
130130
haskey(stats, "ω0") && push!(pstats, (1e9*wlfreq.(stats["ω0"]), "Central wavelength (nm)"))
131131

132132
fstats = [] # fibre/waveguide/propagation statistics
133133
if haskey(stats, "electrondensity")
134-
push!(fstats, (1e-6*stats["electrondensity"], "Electron density (cm\$^{-3}\$)"))
134+
push!(fstats, (1e-6*stats["electrondensity"], "Electron density (cm⁻³)"))
135135
if haskey(stats, "density")
136136
push!(fstats,
137137
(100*stats["electrondensity"]./stats["density"], "Ionisation fraction (%)"))
138138
end
139139
end
140140
haskey(stats, "density") && push!(
141-
fstats, (1e-6*stats["density"], "Density (cm\$^{-3}\$)"))
141+
fstats, (1e-6*stats["density"], "Density (cm⁻³)"))
142142
haskey(stats, "pressure") && push!(
143143
fstats, (stats["pressure"], "Pressure (bar)"))
144144
haskey(stats, "dz") && push!(fstats, (1e6*stats["dz"], "Stepsize (μm)"))

0 commit comments

Comments
 (0)