From ad970653606137f3b3c805c57a4e9a7647c948fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Sierra=20=C3=81lvarez?= <160289138+Pixelguy14@users.noreply.github.com> Date: Thu, 19 Sep 2024 20:59:32 -0600 Subject: [PATCH] Corrected an issue related to the colorbar plot --- app.jl | 6 ++++-- app.jl.html | 9 ++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app.jl b/app.jl index e434f95..c4035d4 100644 --- a/app.jl +++ b/app.jl @@ -134,7 +134,8 @@ rgb_ViridisPalette =reinterpret(ColorTypes.RGB24, ViridisPalette) SaveBitmap(joinpath("public", "TrIQ_$(floor(Int, Nmass)).bmp"),TrIQ(slice, Int(triqColor), triqProb),ViridisPalette) testT = "/TrIQ_$(floor(Int, Nmass)).bmp" # we define the starting value of the images msgtriq = "TrIQ image with the Nmass of $(floor(Int, Nmass))" - Colorbar(fig[1, 1], colormap = rgb_ViridisPalette, limits = (0, maximum(TrIQ(slice, Int(triqColor), triqProb)))) + ticks = round.(range(0, stop = maximum(TrIQ(slice, Int(triqColor), triqProb)), length = 10), digits = 2) + Colorbar(fig[1, 1], colormap = rgb_ViridisPalette, limits = (0, maximum(TrIQ(slice, Int(triqColor), triqProb))),ticks = ticks, label = "Intensity") save("public/colorbar_TrIQ_$(floor(Int, Nmass)).png", fig) msg = "The file has been created successfully inside the 'public' folder of the app." colorbarT = "/colorbar_TrIQ_$(floor(Int, Nmass)).png" @@ -143,7 +144,8 @@ rgb_ViridisPalette =reinterpret(ColorTypes.RGB24, ViridisPalette) SaveBitmap(joinpath("public", "$(floor(Int, Nmass)).bmp"),IntQuant(slice),ViridisPalette) test = "/$(floor(Int, Nmass)).bmp" # we define the starting value of the images msgimg = "image with the Nmass of $(floor(Int, Nmass))" - Colorbar(fig[1, 1], colormap = rgb_ViridisPalette, limits = (0, maximum(slice))) + ticks = round.(range(0, stop = maximum(slice), length = 10), digits = 2) + Colorbar(fig[1, 1], colormap = rgb_ViridisPalette, limits = (0, maximum(slice)),ticks = ticks, label = "Intensity") save("public/colorbar_$(floor(Int, Nmass)).png", fig) msg = "The file has been created successfully inside the 'public' folder of the app." colorbar = "/colorbar_$(floor(Int, Nmass)).png" diff --git a/app.jl.html b/app.jl.html index bd51271..b01a3c1 100644 --- a/app.jl.html +++ b/app.jl.html @@ -17,15 +17,10 @@

full route: {{full_route}} {{warning_fr}}

- +
- +