Skip to content

Commit

Permalink
add titles option to plots_2d
Browse files Browse the repository at this point in the history
  • Loading branch information
xgarrido committed Oct 12, 2023
1 parent 7a3e0a6 commit 8e96c22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cobaya_utilities/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,9 @@ def plots_2d(*args, **kwargs):
g = get_subplot_plotter(settings=get_default_settings(), **plotter_kwargs)
g.plots_2d(*args, **kwargs)

if kwargs.get("despine", True):
despine(g)
if titles := kwargs.get("titles"):
for title, ax in zip(titles, g.fig.axes):
ax.set_title(title)

return g

Expand Down

0 comments on commit 8e96c22

Please sign in to comment.