Skip to content

Commit

Permalink
labels: shorten dlnT/dlnP, T_bot; fix fsed
Browse files Browse the repository at this point in the history
  • Loading branch information
wbalmer committed May 9, 2024
1 parent c756457 commit b146d30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions species/util/plot_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,13 +588,13 @@ def update_labels(param: List[str], object_type: str = "planet") -> List[str]:

if "T_bottom" in param:
index = param.index("T_bottom")
param[index] = r"$T_\mathrm{bottom}$ (K)"
param[index] = r"$T_\mathrm{bot}$ (K)"

num_layer = 6 # could make a variable in the future
for i in range(num_layer):
if f"PTslope_{num_layer - i}" in param:
index = param.index(f"PTslope_{num_layer - i}")
param[index] = rf"$(dlnT/dlnP)_\mathrm{{P={i}bar}}$ (K)"
param[index] = rf"dlnT/dlnP$_{i}$ "

if "log_p_quench" in param:
index = param.index("log_p_quench")
Expand Down Expand Up @@ -630,7 +630,7 @@ def update_labels(param: List[str], object_type: str = "planet") -> List[str]:

if f"fsed_{item}(c)" in param:
index = param.index(f"fsed_{item}(c)")
param[index] = rf"$\log\,P_\mathrm{{{cloud_labels[i]}}}$"
param[index] = rf"fsed$_\mathrm{{{cloud_labels[i]}}}$"

for i, item_i in enumerate(cloud_species):
for j, item_j in enumerate(cloud_species):
Expand Down

0 comments on commit b146d30

Please sign in to comment.