From 453cd6cced84c5f3d284b358456be10fffca43d5 Mon Sep 17 00:00:00 2001 From: patnr Date: Fri, 14 Jun 2024 18:14:24 +0200 Subject: [PATCH] Fixes --- dapper/tools/viz.py | 2 +- dapper/xp_process.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dapper/tools/viz.py b/dapper/tools/viz.py index 10a8ffc9..c14918c2 100644 --- a/dapper/tools/viz.py +++ b/dapper/tools/viz.py @@ -635,7 +635,7 @@ def default_fig_adjustments(tables, xticks_from_data=False): # Tuning panels only for a, panel in zip(tables.created_with["dims"]["optim"] or (), table0.panels[1:]): - yy = tables.created_with["xp_dict"].tickz(a) + yy = sorted(tables.created_with["xp_dict"].tickz(a)) axis_scale_by_array(panel, yy, "y") # set_ymargin doesn't work for wonky scales. Do so manually: alpha = len(yy) / 10 diff --git a/dapper/xp_process.py b/dapper/xp_process.py index a90f6d61..32c9f230 100644 --- a/dapper/xp_process.py +++ b/dapper/xp_process.py @@ -859,12 +859,12 @@ def beautify(panels, title, has_labels): ) if has_labels: panel0.legend() - if panel0.is_first_col(): + if panel0.get_subplotspec().is_first_col(): panel0.set_ylabel(statkey) panels[-1].set_xlabel(dims["inner"][0]) # Tuning panels: for a, panel in zip(dims["optim"] or (), panels[1:]): - if panel.is_first_col(): + if panel.get_subplotspec().is_first_col(): panel.set_ylabel(f"Optim.\n{a}") # Nest dims through table_tree()