Skip to content

Commit 8ef1931

Browse files
authored
Merge pull request #213 from CliMA/he/add-makie-climacoremakie-to-test
add Makie, ClimaCoreMakie to test/Project.toml
2 parents d20d3c7 + 8a2f1ed commit 8ef1931

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[deps]
22
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
33
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
4+
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
45
ClimaCore = "d414da3d-4745-48bb-8d80-42e94e092884"
56
ClimaCorePlots = "cf7c7e5a-b407-4c48-9047-11a94a308626"
67
ClimaParams = "5c42b081-d73a-476f-9059-fd94b934656c"

test/plotting_utils.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import NCDatasets as NC
66
import CloudMicrophysics.PrecipitationSusceptibility as CMPS
77

88
ENV["GKSwstype"] = "nul"
9-
using ClimaCorePlots, Plots
9+
import ClimaCorePlots, Plots
1010
Plots.GRBackend()
11+
using CairoMakie
1112

1213
function plot_initial_profiles_comparison(KM; sdm_case = "dry")
1314
sdm_data = load_sdm_data(sdm_case)
@@ -235,7 +236,7 @@ function plot_animation_p3(z_centers, solver, aux, moisture, precip, K1D, output
235236
p8 = plot_data(N_liq[:, i], "N_liq [1/cm^3]", maximum(N_liq))
236237
p9 = plot_data(N_ice[:, i], "N_ice [1/cm^3]", maximum(N_ice))
237238
p10 = plot_data(N_rai[:, i], "N_rai [1/cm^3]", maximum(N_rai))
238-
plot(
239+
Plots.plot(
239240
p1,
240241
p2,
241242
p3,
@@ -300,7 +301,7 @@ function plot_animation(nc_data_file; output = "output")
300301
p6 = plot_data(q_ice[:, i] .* 1e3, "q_ice [g/kg]", maximum(q_ice))
301302
p7 = plot_data(q_sno[:, i] .* 1e3, "q_sno [g/kg]", maximum(q_sno))
302303

303-
plot(
304+
Plots.plot(
304305
p1,
305306
p2,
306307
p3,

0 commit comments

Comments
 (0)