Skip to content

Commit 773e034

Browse files
committed
Use \mathdefault{} command
1 parent 00e07c2 commit 773e034

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sonify/sonify.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,17 +351,17 @@ def _spectrogram(
351351

352352
if is_infrasound:
353353
ylab = 'Pressure (Pa)'
354-
clab = f'Power (dB rel. [{REFERENCE_PRESSURE * 1e6:g} µPa]$^2$ Hz$^{{-1}}$)'
354+
clab = rf'Power (dB rel. [{REFERENCE_PRESSURE * 1e6:g} µPa]$\mathdefault{{^2}}$ Hz$\mathdefault{{^{{-1}}}}$)'
355355
ref_val = REFERENCE_PRESSURE
356356
else:
357-
ylab = 'Velocity (µm s$^{-1}$)'
357+
ylab = r'Velocity (µm s$\mathdefault{^{-1}}$)'
358358
if REFERENCE_VELOCITY == 1:
359359
clab = (
360-
f'Power (dB rel. {REFERENCE_VELOCITY:g} [m s$^{{-1}}$]$^2$ Hz$^{{-1}}$)'
360+
rf'Power (dB rel. {REFERENCE_VELOCITY:g} [m s$\mathdefault{{^{{-1}}}}$]$\mathdefault{{^2}}$ Hz$\mathdefault{{^{{-1}}}}$)'
361361
)
362362
else:
363363
clab = (
364-
f'Power (dB rel. [{REFERENCE_VELOCITY:g} m s$^{{-1}}$]$^2$ Hz$^{{-1}}$)'
364+
rf'Power (dB rel. [{REFERENCE_VELOCITY:g} m s$\mathdefault{{^{{-1}}}}$]$\mathdefault{{^2}}$ Hz$\mathdefault{{^{{-1}}}}$)'
365365
)
366366
ref_val = REFERENCE_VELOCITY
367367

0 commit comments

Comments
 (0)