Skip to content

Commit da980cb

Browse files
committed
Fix data extraction
1 parent 0c8264f commit da980cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tailestim/estimators/plot/plot_methods.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,8 @@ def make_diagnostic_plots(ordered_data, results, output_file_path=None, number_o
703703
axes_d[2].plot(x1_k_arr[min_k1:max_k1], n1_k_amse[min_k1:max_k1],
704704
alpha = 0.5, lw = 1.5,
705705
color = "#d55e00", label = r"$n_1$ samples")
706-
axes_d[2].scatter([h1], [n1_k_amse[np.where(x1_k_arr == h1)]], color = "#d55e00",
707-
marker = 'o', edgecolor = "black", alpha = 0.5,
706+
axes_d[2].scatter([h1], [n1_k_amse[np.where(x1_k_arr == h1)][0]], color = "#d55e00",
707+
marker = 'o', edgecolor = "black", alpha = 0.5,
708708
label = r"Min for $n_1$ sample")
709709
# plot boundary of minimization
710710
axes_d[2].axvline(max_k_index1, color = "#d55e00",
@@ -713,8 +713,8 @@ def make_diagnostic_plots(ordered_data, results, output_file_path=None, number_o
713713
axes_d[2].plot(x2_k_arr[min_k2:max_k2], n2_k_amse[min_k2:max_k2],
714714
alpha = 0.5, lw = 1.5,
715715
color = "#0072b2", label = r"$n_2$ samples")
716-
axes_d[2].scatter([h2], [n2_k_amse[np.where(x2_k_arr == h2)]], color = "#0072b2",
717-
marker = 'o', edgecolor = "black", alpha = 0.5,
716+
axes_d[2].scatter([h2], [n2_k_amse[np.where(x2_k_arr == h2)][0]], color = "#0072b2",
717+
marker = 'o', edgecolor = "black", alpha = 0.5,
718718
label = r"Min for $n_2$ sample")
719719
axes_d[2].axvline(max_k_index2, color = "#0072b2",
720720
ls = '--', alpha = 0.5,

0 commit comments

Comments
 (0)