Skip to content

Commit b1f1ce9

Browse files
committed
Small improvements to labels
1 parent f765edd commit b1f1ce9

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

src/auxiliary_functions/plotting.jl

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ function plotParams(quantity::Symbol)::PlotParams
13191319

13201320
plot_params = PlotParams(;
13211321
request = Dict(:gas => ["MASS", "POS ", "FRAC", "RHO ", "PRES", "NH ", "NHP "]),
1322-
var_name = L"M_\mathrm{H_2}",
1322+
var_name = L"M_\mathrm{H2}",
13231323
exp_factor = 10,
13241324
unit = u"Msun",
13251325
)
@@ -1328,7 +1328,7 @@ function plotParams(quantity::Symbol)::PlotParams
13281328

13291329
plot_params = PlotParams(;
13301330
request = Dict(:gas => ["MASS", "POS ", "PRES"]),
1331-
var_name = L"M_\mathrm{H_2^{BR}}",
1331+
var_name = L"M_\mathrm{H2^{BR}}",
13321332
exp_factor = 10,
13331333
unit = u"Msun",
13341334
)
@@ -1357,7 +1357,7 @@ function plotParams(quantity::Symbol)::PlotParams
13571357

13581358
plot_params = PlotParams(;
13591359
request = Dict(:gas => ["MASS", "POS ", "FRAC", "NH ", "NHP ", "RHO ", "GZ "]),
1360-
var_name = L"M_\mathrm{HI + H_2}",
1360+
var_name = L"M_\mathrm{HI + H2}",
13611361
exp_factor = 10,
13621362
unit = u"Msun",
13631363
)
@@ -1389,19 +1389,20 @@ function plotParams(quantity::Symbol)::PlotParams
13891389
elseif quantity == :dust_mass
13901390

13911391
plot_params = PlotParams(;
1392-
request = Dict(:gas => ["MASS", "POS ", "FRAC", "NH ", "NHP ", "RHO ", "GZ "]),
1393-
var_name = L"M_\mathrm{d}",
1394-
unit = u"Msun",
1392+
request = Dict(:gas => ["MASS", "POS ", "FRAC", "NH ", "NHP ", "RHO ", "GZ "]),
1393+
var_name = L"M_\mathrm{d}",
1394+
exp_factor = 7,
1395+
unit = u"Msun",
13951396
)
13961397

13971398
elseif quantity == :generic_mass
13981399

13991400
plot_params = PlotParams(;
14001401
request = Dict(
1401-
:stellar => ["MASS", "POS "],
1402-
:gas => ["MASS", "POS ", "FRAC", "NH ", "NHP ", "PRES", "RHO ", "GZ "],
1403-
:dark_matter => ["MASS", "POS "],
1404-
:black_hole => ["MASS", "POS "],
1402+
:stellar => ["MASS", "POS "],
1403+
:gas => ["MASS", "POS ", "FRAC", "NH ", "NHP ", "PRES", "RHO ", "GZ "],
1404+
:dark_matter => ["MASS", "POS "],
1405+
:black_hole => ["MASS", "POS "],
14051406
),
14061407
var_name = L"M",
14071408
exp_factor = 10,
@@ -1440,14 +1441,14 @@ function plotParams(quantity::Symbol)::PlotParams
14401441

14411442
plot_params = PlotParams(;
14421443
request = Dict(:gas => ["RHO ", "MASS", "POS ", "FRAC", "PRES", "NH ", "NHP "]),
1443-
var_name = L"f_\mathrm{H_2}",
1444+
var_name = L"f_\mathrm{H2}",
14441445
)
14451446

14461447
elseif quantity == :br_molecular_fraction
14471448

14481449
plot_params = PlotParams(;
14491450
request = Dict(:gas => ["MASS", "POS ", "PRES"]),
1450-
var_name = L"f_\mathrm{H_2}^\mathrm{BR}",
1451+
var_name = L"f_\mathrm{H2}^\mathrm{BR}",
14511452
)
14521453

14531454
elseif quantity == :atomic_fraction
@@ -1470,7 +1471,7 @@ function plotParams(quantity::Symbol)::PlotParams
14701471

14711472
plot_params = PlotParams(;
14721473
request = Dict(:gas => ["RHO ", "MASS", "POS ", "FRAC", "NH ", "NHP ", "GZ "]),
1473-
var_name = L"f_\mathrm{H_I + H_2}",
1474+
var_name = L"f_\mathrm{HI + H2}",
14741475
)
14751476

14761477
elseif quantity == :molecular_neutral_fraction
@@ -1479,7 +1480,7 @@ function plotParams(quantity::Symbol)::PlotParams
14791480
request = Dict(
14801481
:gas => ["RHO ", "MASS", "POS ", "FRAC", "NH ", "NHP ", "PRES", "RHO ", "GZ "],
14811482
),
1482-
var_name = L"f_\mathrm{H_2} \, / f_\mathrm{n}",
1483+
var_name = L"f_\mathrm{H2} \, / f_\mathrm{n}",
14831484
)
14841485

14851486
elseif quantity == :ionized_neutral_fraction
@@ -1546,15 +1547,15 @@ function plotParams(quantity::Symbol)::PlotParams
15461547

15471548
plot_params = PlotParams(;
15481549
request = Dict(:gas => ["MASS", "POS ", "FRAC", "RHO ", "PRES", "NH ", "NHP "]),
1549-
var_name = L"n_\mathrm{H_2}",
1550+
var_name = L"n_\mathrm{H2}",
15501551
unit = u"cm^-3",
15511552
)
15521553

15531554
elseif quantity == :br_molecular_number_density
15541555

15551556
plot_params = PlotParams(;
15561557
request = Dict(:gas => ["MASS", "POS ", "PRES", "RHO "]),
1557-
var_name = L"n_\mathrm{H_2}^{BR}",
1558+
var_name = L"n_\mathrm{H2}^{BR}",
15581559
unit = u"cm^-3",
15591560
)
15601561

@@ -1580,7 +1581,7 @@ function plotParams(quantity::Symbol)::PlotParams
15801581

15811582
plot_params = PlotParams(;
15821583
request = Dict(:gas => ["MASS", "POS ", "FRAC", "NH ", "NHP ", "RHO ", "GZ "]),
1583-
var_name = L"n_\mathrm{HI + H_2}",
1584+
var_name = L"n_\mathrm{HI + H2}",
15841585
unit = u"cm^-3",
15851586
)
15861587

@@ -1604,15 +1605,15 @@ function plotParams(quantity::Symbol)::PlotParams
16041605

16051606
plot_params = PlotParams(;
16061607
request = Dict(:gas => ["MASS", "POS ", "FRAC", "RHO ", "PRES", "NH ", "NHP "]),
1607-
var_name = L"\Sigma_\mathrm{H_2}",
1608+
var_name = L"\Sigma_\mathrm{H2}",
16081609
unit = u"Msun * pc^-2",
16091610
)
16101611

16111612
elseif quantity == :br_molecular_area_density
16121613

16131614
plot_params = PlotParams(;
16141615
request = Dict(:gas => ["MASS", "POS ", "PRES", "RHO "]),
1615-
var_name = L"\Sigma_\mathrm{H_2}^\mathrm{BR}",
1616+
var_name = L"\Sigma_\mathrm{H2}^\mathrm{BR}",
16161617
unit = u"Msun * pc^-2",
16171618
)
16181619

@@ -1638,7 +1639,7 @@ function plotParams(quantity::Symbol)::PlotParams
16381639

16391640
plot_params = PlotParams(;
16401641
request = Dict(:gas => ["MASS", "POS ", "FRAC", "NH ", "NHP ", "RHO ", "GZ "]),
1641-
var_name = L"\Sigma_\mathrm{HI + H_2}",
1642+
var_name = L"\Sigma_\mathrm{HI + H2}",
16421643
unit = u"Msun * pc^-2",
16431644
)
16441645

@@ -1675,15 +1676,15 @@ function plotParams(quantity::Symbol)::PlotParams
16751676
request = Dict(
16761677
:gas => ["MASS", "POS ", "FRAC", "RHO ", "PRES", "NH ", "NHP ", "SFR "],
16771678
),
1678-
var_name = L"t_d^\mathrm{H_2}",
1679+
var_name = L"t_d^\mathrm{H2}",
16791680
unit = u"Gyr",
16801681
)
16811682

16821683
elseif quantity == :br_molecular_td
16831684

16841685
plot_params = PlotParams(;
16851686
request = Dict(:gas => ["MASS", "PRES", "RHO ", "SFR "]),
1686-
var_name = L"t_d^\mathrm{H_2^\mathrm{BR}}",
1687+
var_name = L"t_d^\mathrm{H2^\mathrm{BR}}",
16871688
unit = u"Gyr",
16881689
)
16891690

@@ -1713,7 +1714,7 @@ function plotParams(quantity::Symbol)::PlotParams
17131714
request = Dict(
17141715
:gas => ["MASS", "POS ", "FRAC", "NH ", "NHP ", "RHO ", "GZ ", "SFR "],
17151716
),
1716-
var_name = L"t_d^\mathrm{HI + H_2}",
1717+
var_name = L"t_d^\mathrm{HI + H2}",
17171718
unit = u"Gyr",
17181719
)
17191720

@@ -1954,14 +1955,14 @@ function plotParams(quantity::Symbol)::PlotParams
19541955
request = Dict(
19551956
:gas => ["MASS", "POS ", "FRAC", "RHO ", "PRES", "NH ", "NHP ", "SFR "],
19561957
),
1957-
var_name = L"\epsilon_\mathrm{ff}^\mathrm{H_2}",
1958+
var_name = L"\epsilon_\mathrm{ff}^\mathrm{H2}",
19581959
)
19591960

19601961
elseif quantity == :br_molecular_eff
19611962

19621963
plot_params = PlotParams(;
19631964
request = Dict(:gas => ["MASS", "PRES", "RHO ", "SFR "]),
1964-
var_name = L"\epsilon_\mathrm{ff}^\mathrm{H_2^\mathrm{BR}}",
1965+
var_name = L"\epsilon_\mathrm{ff}^\mathrm{H2^\mathrm{BR}}",
19651966
)
19661967

19671968
elseif quantity == :atomic_eff
@@ -1988,7 +1989,7 @@ function plotParams(quantity::Symbol)::PlotParams
19881989
request = Dict(
19891990
:gas => ["MASS", "POS ", "FRAC", "NH ", "NHP ", "RHO ", "GZ ", "SFR "],
19901991
),
1991-
var_name = L"\epsilon_\mathrm{ff}^\mathrm{HI + H_2}",
1992+
var_name = L"\epsilon_\mathrm{ff}^\mathrm{HI + H2}",
19921993
)
19931994

19941995
elseif quantity == :temperature

0 commit comments

Comments
 (0)