Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patnr committed Aug 14, 2024
1 parent 7463464 commit 453cd6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dapper/tools/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions dapper/xp_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 453cd6c

Please sign in to comment.