Skip to content

Commit

Permalink
small change in plotting function: allow shared axis scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
bachi55 committed Sep 2, 2022
1 parent 498a259 commit 4f314fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ssvm_evaluation/plotting_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@ def plot__01__a(
max_k: int = 20,
weighted_average: bool = False,
raise_on_missing_results: bool = True,
verbose: bool = False
verbose: bool = False,
sharey: Union[bool, str] = False
):
"""
Plot comparing the top-k accuracy performance for k in {1, ..., max_k} of the different scoring methods:
Expand Down Expand Up @@ -742,7 +743,7 @@ def _acc_info_printer(baseline, other, k):
_n_cols = n_scorer
_figsize = (4.5 * n_scorer, 5.75)

fig, axrr = plt.subplots(_n_rows, _n_cols, figsize=_figsize, sharex="all", sharey=False, squeeze=False)
fig, axrr = plt.subplots(_n_rows, _n_cols, figsize=_figsize, sharex="all", sharey=sharey, squeeze=False)

# Set some plot properties
k_ticks = np.arange(0, max_k + 1, 5)
Expand Down

0 comments on commit 4f314fd

Please sign in to comment.