Skip to content

Commit

Permalink
Make axis scaling apply to all subplot when multiple subplots are in …
Browse files Browse the repository at this point in the history
…a sinter pot
  • Loading branch information
Strilanc committed Oct 31, 2023
1 parent 12935b7 commit 41c9281
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions glue/sample/src/sinter/_main_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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,
Expand All @@ -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:
Expand Down

0 comments on commit 41c9281

Please sign in to comment.