Skip to content

Commit d89fd5a

Browse files
committed
Changed: Further improved the visualization of the scalar property by scaling the scalar values. The main notebook now reflects new features.
1 parent 244182f commit d89fd5a

File tree

2 files changed

+35114
-5290
lines changed

2 files changed

+35114
-5290
lines changed

Source/main.ipynb

+35,106-5,287
Large diffs are not rendered by default.

Source/polar_diagrams/src/polar_diagrams/polar_diagrams.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -898,11 +898,16 @@ def _chart_create_diagram(list_df_input, string_reference_model,
898898
# scalar values, 2 = two datasets with the second one being the second
899899
# version dataset
900900
if int_number_of_datasets == 2 and list_df_input[1].shape[1] == 2:
901+
np_first_row = list_df_input[1][string_scalar_column].to_numpy()
902+
np_scaled_values = (np_first_row - np.min(np_first_row)) /\
903+
(np.max(np_first_row) - np.min(np_first_row))
904+
901905
dict_model_marker_sizes = dict(zip(
902906
list_df_input[0][string_tooltip_label_0],
903-
list_df_input[1][string_scalar_column]))
904-
float_concentric_sizeref = list_df_input[1][
905-
string_scalar_column].max() / (_INT_MARKER_SIZE*2)**2
907+
np_scaled_values))
908+
909+
float_concentric_sizeref = np_scaled_values.max() / (
910+
_INT_MARKER_SIZE*2)**2
906911

907912
int_dataset_option = 1
908913

0 commit comments

Comments
 (0)