From 2df89c83e82672ea15b8492a7304291503812f46 Mon Sep 17 00:00:00 2001 From: Alejandro Moreo Date: Wed, 5 Apr 2023 12:16:29 +0200 Subject: [PATCH] bugfix, method order set to method names if None is passed --- quapy/plot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quapy/plot.py b/quapy/plot.py index 6552765..cdc3bd5 100644 --- a/quapy/plot.py +++ b/quapy/plot.py @@ -383,6 +383,9 @@ def brokenbar_supremacy_by_drift(method_names, true_prevs, estim_prevs, tr_prevs # x_error function) and 'y' is the estim-test shift (computed as according to y_error) data = _join_data_by_drift(method_names, true_prevs, estim_prevs, tr_prevs, x_error, y_error, method_order) + if method_order is None: + method_order = method_names + if binning == 'isomerous': # take bins containing the same amount of examples tr_test_drifts = np.concatenate([data[m]['x'] for m in method_order])