Skip to content

Commit

Permalink
bug with plot exp vals with x_units
Browse files Browse the repository at this point in the history
  • Loading branch information
darianyang committed Jul 12, 2024
1 parent 6e3d664 commit 7a70aae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wekap/kinetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def plot_exp_vals(self, ax=None, f_range=False, d2d1=False, f_range_all=False):
"""
if ax is None:
ax = self.ax
if self.units == "rates":
if self.x_units == "rates":
if f_range_all:
# ax.axhline(60, alpha=1, color="tab:orange", label="4F k$_{D1D2}$", ls="--")
# ax.axhline(25, alpha=1, color="tab:green", label="7F k$_{D1D2}$", ls="--")
Expand All @@ -384,7 +384,7 @@ def plot_exp_vals(self, ax=None, f_range=False, d2d1=False, f_range_all=False):
ax.axhline(60, color="k", ls="--", label="k$_{D2D1}$")
if d2d1:
ax.axhline(134, color="red", ls="--", label="k$_{D1D2}$")
elif self.units == "mfpts":
elif self.x_units == "mfpts":
# converted to mfpt = 1 / rate
ax.axhline(1/150, color="k", ls="--", label="MFPT$_{D2D1}$")
if d2d1:
Expand Down

0 comments on commit 7a70aae

Please sign in to comment.