Skip to content

Commit

Permalink
Minor fixes in Robots.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatteo committed Aug 11, 2023
1 parent aff3e18 commit 0dabaa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abipy/tools/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def hspan_ax_line(ax, line, abs_conv, hatch, alpha=0.2, with_label=True) -> None
for i, ix in enumerate(x_inds):
y_xmax = ys[ix]
ax.axhspan(y_xmax - abs_conv, y_xmax + abs_conv,
label=r"$|y-y(Max)| \leq %s$" % abs_conv if (with_label and i == 0) else None,
label=r"$|y-y(x_{Max})| \leq %s$" % abs_conv if (with_label and i == 0) else None,
**span_style)


Expand Down Expand Up @@ -638,7 +638,7 @@ def plot(self, ax_mat=None, fontsize=8, **kwargs) -> Figure:
title += pre_str + s

ax2.set_title(title, fontsize=fontsize)
ax2.set_ylabel(r"$|y-y(Max)|$", fontsize=fontsize)
ax2.set_ylabel(r"$|y-y(x_{Max})|$", fontsize=fontsize)

set_grid_legend(ax_row, fontsize,
xlabel=self.xlabel if irow == (nrows - 1) else None,
Expand Down

0 comments on commit 0dabaa8

Please sign in to comment.