Skip to content

Commit

Permalink
Fixing bug in label not showing for title summary text
Browse files Browse the repository at this point in the history
  • Loading branch information
Samreay committed Jan 22, 2024
1 parent 6d88eab commit c0897d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- --unsafe
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
rev: v0.1.14
hooks:
- id: ruff
args: ["--fix", "--no-unsafe-fixes"]
Expand Down
3 changes: 2 additions & 1 deletion src/chainconsumer/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,9 +972,10 @@ def _plot_bars(
)
if summary:
t = self.parent.analysis.get_parameter_text(fit_values)
label = self.config.get_label(column)
if isinstance(column, str):
ax.set_title(
r"${} = {}$".format(column.strip("$"), t), fontsize=self.config.summary_font_size
r"${} = {}$".format(label.strip("$"), t), fontsize=self.config.summary_font_size
)
else:
ax.set_title(r"$%s$" % t, fontsize=self.config.summary_font_size)
Expand Down

0 comments on commit c0897d0

Please sign in to comment.