Skip to content

Commit 3807833

Browse files
authored
Merge pull request #1512 from CliMA/kp/plots
Do not add title again for debug plots
2 parents 9759259 + ba50c28 commit 3807833

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

experiments/ClimaEarth/user_io/debug_plots.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,11 @@ function debug(sim::Interfacer.ComponentModelSimulation, dir)
145145
if field_index <= length(field_names)
146146
field_name = field_names[field_index]
147147
field = Interfacer.get_field(sim, Val(field_name))
148-
ax = Makie.Axis(
149-
fig[i, j * 2 - 1],
150-
title = string(field_name) * print_extrema(field),
151-
)
148+
# If field is a ClimaCore field, then _heatmap_cc_field! will add a
149+
# title to the axis
150+
title =
151+
field isa CC.Fields.Field ? "" : string(field_name) * print_extrema(field)
152+
ax = Makie.Axis(fig[i, j * 2 - 1]; title)
152153
if field isa OC.Field || field isa OC.AbstractOperations.AbstractOperation
153154
if field isa OC.AbstractOperations.AbstractOperation
154155
field = OC.Field(field)

0 commit comments

Comments
 (0)