Corrected an issue related to the colorbar plot
This commit is contained in:
parent
f251b8cebc
commit
ad97065360
6
app.jl
6
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)
|
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
|
testT = "/TrIQ_$(floor(Int, Nmass)).bmp" # we define the starting value of the images
|
||||||
msgtriq = "TrIQ image with the Nmass of $(floor(Int, Nmass))"
|
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)
|
save("public/colorbar_TrIQ_$(floor(Int, Nmass)).png", fig)
|
||||||
msg = "The file has been created successfully inside the 'public' folder of the app."
|
msg = "The file has been created successfully inside the 'public' folder of the app."
|
||||||
colorbarT = "/colorbar_TrIQ_$(floor(Int, Nmass)).png"
|
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)
|
SaveBitmap(joinpath("public", "$(floor(Int, Nmass)).bmp"),IntQuant(slice),ViridisPalette)
|
||||||
test = "/$(floor(Int, Nmass)).bmp" # we define the starting value of the images
|
test = "/$(floor(Int, Nmass)).bmp" # we define the starting value of the images
|
||||||
msgimg = "image with the Nmass of $(floor(Int, Nmass))"
|
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)
|
save("public/colorbar_$(floor(Int, Nmass)).png", fig)
|
||||||
msg = "The file has been created successfully inside the 'public' folder of the app."
|
msg = "The file has been created successfully inside the 'public' folder of the app."
|
||||||
colorbar = "/colorbar_$(floor(Int, Nmass)).png"
|
colorbar = "/colorbar_$(floor(Int, Nmass)).png"
|
||||||
|
|||||||
@ -17,15 +17,10 @@
|
|||||||
<p id="i7brk">full route: {{full_route}} {{warning_fr}}</p>
|
<p id="i7brk">full route: {{full_route}} {{warning_fr}}</p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="st-col col-12 col-sm">
|
<div class="st-col col-12 col-sm">
|
||||||
<q-input id="icc9d" v-model="Nmass" :dense="true" label="Mass-to-charge ratio of interest" type="number" :rules="[
|
<q-input id="icc9d" v-model="Nmass" :dense="true" label="Mass-to-charge ratio of interest" type="number" :rules="[ val => !!val || '* Required', val => val >= 0 && val <= 2000 || 'Need positive mass values',]"></q-input>
|
||||||
val => val >= 0 || 'Need positive mass values',
|
|
||||||
]"></q-input>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="st-col col-12 col-sm">
|
<div class="st-col col-12 col-sm">
|
||||||
<q-input id="iqt3l" step="0.01" v-model="Tol" :dense="true" label="Mass-to-charge ratio Tolerance" type="number" :rules="[
|
<q-input id="iqt3l" step="0.01" v-model="Tol" :dense="true" label="Mass-to-charge ratio Tolerance" type="number" :rules="[val => !!val || '* Required', val => val >= 0 && val <= 1 || 'Needs to be in range between 0 and 1',]"></q-input>
|
||||||
val => !!val || '* Required',
|
|
||||||
val => val >= 0 && val <= 1 || 'Needs to be in range between 0 and 1',
|
|
||||||
]"></q-input>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user