Ludvig
commited on
Commit
•
3de6a56
1
Parent(s):
af0c2ba
Adds 3D effect setting to design section. Bumps r-cvms version.
Browse files- design.py +16 -1
- environment.yml +1 -1
- plot.R +1 -0
design.py
CHANGED
@@ -484,7 +484,7 @@ def design_section(
|
|
484 |
)
|
485 |
|
486 |
with st.expander("Tiles"):
|
487 |
-
col1, col2 = st.columns(
|
488 |
with col1:
|
489 |
st.session_state["selected_design_settings"][
|
490 |
"intensity_by"
|
@@ -516,6 +516,21 @@ def design_section(
|
|
516 |
step=0.01,
|
517 |
help="How dark the darkest colors should be, between 0 and 1, where 1 is darkest.",
|
518 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
519 |
|
520 |
col1, col2, col3, col4 = st.columns([4, 5, 5, 6])
|
521 |
with col1:
|
|
|
484 |
)
|
485 |
|
486 |
with st.expander("Tiles"):
|
487 |
+
col1, col2, col3 = st.columns(3)
|
488 |
with col1:
|
489 |
st.session_state["selected_design_settings"][
|
490 |
"intensity_by"
|
|
|
516 |
step=0.01,
|
517 |
help="How dark the darkest colors should be, between 0 and 1, where 1 is darkest.",
|
518 |
)
|
519 |
+
with col3:
|
520 |
+
st.session_state["selected_design_settings"][
|
521 |
+
"amount_3d_effect"
|
522 |
+
] = st.slider(
|
523 |
+
"3D effect",
|
524 |
+
min_value=0,
|
525 |
+
max_value=6,
|
526 |
+
value=get_uploaded_setting(
|
527 |
+
key="amount_3d_effect", default=1, type_=int
|
528 |
+
),
|
529 |
+
step=1,
|
530 |
+
help="Amount of 3D effect on the tiles. 0 turns off the 3D effect. "
|
531 |
+
"1 or 2 are good defaults. The 3D effect helps separate tiles with "
|
532 |
+
"the same color intensity.",
|
533 |
+
)
|
534 |
|
535 |
col1, col2, col3, col4 = st.columns([4, 5, 5, 6])
|
536 |
with col1:
|
environment.yml
CHANGED
@@ -3,7 +3,7 @@ channels:
|
|
3 |
- conda-forge
|
4 |
dependencies:
|
5 |
- python=3.11
|
6 |
-
- r-cvms>=1.
|
7 |
- r-dplyr
|
8 |
- r-ggplot2
|
9 |
- r-ggimage>=0.3.3
|
|
|
3 |
- conda-forge
|
4 |
dependencies:
|
5 |
- python=3.11
|
6 |
+
- r-cvms>=1.6.0
|
7 |
- r-dplyr
|
8 |
- r-ggplot2
|
9 |
- r-ggimage>=0.3.3
|
plot.R
CHANGED
@@ -331,6 +331,7 @@ confusion_matrix_plot <- tryCatch(
|
|
331 |
rm_zero_percentages = !design_settings$show_zero_percentages,
|
332 |
rm_zero_text = !design_settings$show_zero_text,
|
333 |
add_zero_shading = design_settings$show_zero_shading,
|
|
|
334 |
add_arrows = design_settings$show_arrows,
|
335 |
arrow_size = design_settings$arrow_size,
|
336 |
arrow_nudge_from_text = design_settings$arrow_nudge_from_text,
|
|
|
331 |
rm_zero_percentages = !design_settings$show_zero_percentages,
|
332 |
rm_zero_text = !design_settings$show_zero_text,
|
333 |
add_zero_shading = design_settings$show_zero_shading,
|
334 |
+
amount_3d_effect = as.integer(design_settings$amount_3d_effect),
|
335 |
add_arrows = design_settings$show_arrows,
|
336 |
arrow_size = design_settings$arrow_size,
|
337 |
arrow_nudge_from_text = design_settings$arrow_nudge_from_text,
|