From 981b0996737b9104fed15f947d4b52e3965ab1dc Mon Sep 17 00:00:00 2001 From: Brantegger Georg Date: Mon, 20 Jun 2022 11:23:05 +0200 Subject: [PATCH] updated the units section, to display latex style text --- Ausgleichsbecken_class_file.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Ausgleichsbecken_class_file.py b/Ausgleichsbecken_class_file.py index 1aac793..0608f8a 100644 --- a/Ausgleichsbecken_class_file.py +++ b/Ausgleichsbecken_class_file.py @@ -1,12 +1,13 @@ from Ausgleichsbecken import FODE_function, get_h_halfstep, get_p_halfstep class Ausgleichsbecken_class: # units - area_unit = 'm^2' - area_outflux_unit = 'm^2' + area_unit = r'$\mathrm{m}^2$' + area_outflux_unit = r'$\mathrm{m}^2$' level_unit = 'm' - volume_unit = 'm^3' - flux_unit = 'm^3/s' + volume_unit = r'$\mathrm{m}^3$' + flux_unit = r'$\mathrm{m}^3/\mathrm{s}$' time_unit = 's' + pressure_unit = 'Pa' # init def __init__(self,area,outflux_area,level_min,level_max,timestep = 1):