From 41c928164ced7a2bf5446727ff9db05702c0aedd Mon Sep 17 00:00:00 2001 From: Craig Gidney Date: Wed, 1 Nov 2023 09:29:27 +1100 Subject: [PATCH] Make axis scaling apply to all subplot when multiple subplots are in a sinter pot --- glue/sample/src/sinter/_main_plot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glue/sample/src/sinter/_main_plot.py b/glue/sample/src/sinter/_main_plot.py index 4221283d9..86f91713c 100644 --- a/glue/sample/src/sinter/_main_plot.py +++ b/glue/sample/src/sinter/_main_plot.py @@ -151,7 +151,7 @@ def parse_args(args: List[str]) -> Any: ) parser.add_argument('--plot_args_func', type=str, - default='''{'marker': 'ov*sp^<>8PhH+xXDd|'[index % 18]}''', + default='''{'marker': 'ov*sp^<>8P+xXhHDd|'[index % 18]}''', help='A python expression used to customize the look of curves.\n' 'Values available to the python expression:\n' ' index: A unique integer identifying the curve.\n' @@ -536,7 +536,7 @@ def stat_to_err_rate(stat: 'sinter.TaskStats') -> Optional[float]: x_scale_name: Optional[str] = None for ax in [ax_err, ax_dis, ax_cus]: - x_scale_name = x_scale_name or _set_axis_scale_label_ticks( + v = _set_axis_scale_label_ticks( ax=ax, y_not_x=False, axis_label=xaxis, @@ -548,6 +548,7 @@ def stat_to_err_rate(stat: 'sinter.TaskStats') -> Optional[float]: plotted_stats=plotted_stats, v_func=x_func, ) + x_scale_name = x_scale_name or v y_scale_name: Optional[str] = None if ax_err is not None: