From 9c76113c6c1e86e75c62b4865bf24c1017c98bff Mon Sep 17 00:00:00 2001 From: Marti Municoy Date: Wed, 23 Sep 2020 18:51:52 +0200 Subject: [PATCH] Incorporation of phase constant to dihedral plot --- offpele/topology/topology.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/offpele/topology/topology.py b/offpele/topology/topology.py index 84d6ae4a..834e9fa8 100644 --- a/offpele/topology/topology.py +++ b/offpele/topology/topology.py @@ -476,7 +476,8 @@ def plot(self): x = unit.Quantity(np.arange(0, np.pi, 0.1), unit=unit.radians) pyplot.plot(x, self.constant * (1 + self.prefactor - * np.cos(self.periodicity * x)), + * np.cos(self.periodicity * x + + self.phase)), 'r--') pyplot.show()