Skip to content

Commit

Permalink
Changed: Further improved the visualization of the scalar property by…
Browse files Browse the repository at this point in the history
… scaling the scalar values. The main notebook now reflects new features.
  • Loading branch information
AAnzel committed Feb 15, 2024
1 parent 244182f commit d89fd5a
Show file tree
Hide file tree
Showing 2 changed files with 35,114 additions and 5,290 deletions.
40,393 changes: 35,106 additions & 5,287 deletions Source/main.ipynb

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions Source/polar_diagrams/src/polar_diagrams/polar_diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,11 +898,16 @@ def _chart_create_diagram(list_df_input, string_reference_model,
# scalar values, 2 = two datasets with the second one being the second
# version dataset
if int_number_of_datasets == 2 and list_df_input[1].shape[1] == 2:
np_first_row = list_df_input[1][string_scalar_column].to_numpy()
np_scaled_values = (np_first_row - np.min(np_first_row)) /\
(np.max(np_first_row) - np.min(np_first_row))

dict_model_marker_sizes = dict(zip(
list_df_input[0][string_tooltip_label_0],
list_df_input[1][string_scalar_column]))
float_concentric_sizeref = list_df_input[1][
string_scalar_column].max() / (_INT_MARKER_SIZE*2)**2
np_scaled_values))

float_concentric_sizeref = np_scaled_values.max() / (
_INT_MARKER_SIZE*2)**2

int_dataset_option = 1

Expand Down

0 comments on commit d89fd5a

Please sign in to comment.