From f756ec95c50a464da9a147682944c5ff17b0680b Mon Sep 17 00:00:00 2001 From: jordanschnell Date: Mon, 18 Nov 2024 22:14:51 +0000 Subject: [PATCH] change yaml option from unique to nonlinear --- docs/appendix/yaml.rst | 2 +- melodies_monet/plots/surfplots.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/appendix/yaml.rst b/docs/appendix/yaml.rst index 5dc2996f..51a16912 100644 --- a/docs/appendix/yaml.rst +++ b/docs/appendix/yaml.rst @@ -351,7 +351,7 @@ for csi plot, list of model names (only) user choose to set as labels. **score_name:** csi plot only. list of scores user can choose to plot. examples are "Critical Success Index' 'False Alarm Rate' 'Hit Rate'. -**threshold_tick_style:** csi plot only. (optional) control for spacing of threshold (x-axis) ticks. example: use ``unique`` when a unique xtick for each threshold value is desired. Any other selection (default = None) will choose xticks that are equally spaced between min(threshold_list):max(threshold_list). +**threshold_tick_style:** csi plot only. (optional) control for spacing of threshold (x-axis) ticks. example: use ``nonlinear`` when nonlinear xticks are desired. Any other selection (default = None) will choose xticks that are equally spaced between min(threshold_list):max(threshold_list). **data:** This a list of model / observation pairs to be plotted where the observation label is first and the model label is second diff --git a/melodies_monet/plots/surfplots.py b/melodies_monet/plots/surfplots.py index 11110697..9cafd4b1 100755 --- a/melodies_monet/plots/surfplots.py +++ b/melodies_monet/plots/surfplots.py @@ -1566,7 +1566,7 @@ def Plot_CSI(score_name_input,threshold_list_input, comb_bx_input,plot_dict,fig_ #Make Plot for i in range(len(CSI_output)): - if threshold_tick_style == 'unique': + if threshold_tick_style == 'nonlinear': plt.plot(range(len(threshold_list)),CSI_output[i],'-*',label=model_name_list[i]) else: plt.plot(threshold_list,CSI_output[i],'-*',label=model_name_list[i]) @@ -1578,7 +1578,7 @@ def Plot_CSI(score_name_input,threshold_list_input, comb_bx_input,plot_dict,fig_ plt.grid() #add '>' to xticks - if threshold_tick_style == 'unique': + if threshold_tick_style == 'nonlinear': threshold_string_array = [str(x) for x in threshold_list] labels = ['>'+item for item in threshold_string_array] ax.set_xticks(range(len(threshold_list)),labels=labels)