Skip to content

Commit

Permalink
fix: revert formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejnovak committed Jul 11, 2022
1 parent dc642b7 commit 06e9434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cabinetry/visualize/plot_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def pulls(
numeric = np.zeros(num_pars, dtype=bool) if numeric is None else np.asarray(numeric)
y_positions = np.arange(num_pars)[::-1]

fig, ax = plt.subplots()
fig, ax = plt.subplots(figsize=(6, 1 + num_pars / 4))
if num_pars > np.sum(numeric): # Actual pulls
ax.errorbar(
np.ma.masked_array(bestfit, mask=numeric),
Expand Down Expand Up @@ -129,6 +129,10 @@ def pulls(
ax.set_ylim([-0.5, num_pars - 0.5])
ax.set_yticks(y_positions)
ax.set_yticklabels(labels)
ax.xaxis.set_minor_locator(mpl.ticker.AutoMinorLocator()) # minor ticks
ax.tick_params(axis="both", which="major", pad=8)
ax.tick_params(direction="in", top=True, right=True, which="both")
fig.set_tight_layout(True)

utils._save_and_close(fig, figure_path, close_figure)
return fig
Expand Down
Binary file modified tests/visualize/reference/pulls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06e9434

Please sign in to comment.