Skip to content

Commit

Permalink
correct stupid error
Browse files Browse the repository at this point in the history
  • Loading branch information
dieJaegerIn committed Jul 2, 2024
1 parent a9ca918 commit 830d847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dcTMD/utils/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def plot_Gamma(x, friction, ax, label=None):
def plot_dG(x, dG, ax, label=None):
"""Plot free energy vs position."""
if label is None:
line, _ = ax.plot(x, dG)
line, _ = ax.plot(x, dG, label=label)
line, = ax.plot(x, dG)
line, = ax.plot(x, dG, label=label)
ax.set(xlabel=r'position $x$ [nm]',
ylabel=r'$\Delta G$ [kJ/mol]',
xlim=[min(x), max(x)],
Expand Down

0 comments on commit 830d847

Please sign in to comment.