Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2590: Created new axes for plot of persistence_length. #2591

Merged
merged 9 commits into from
Mar 21, 2020
3 changes: 2 additions & 1 deletion package/MDAnalysis/analysis/polymer.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ def plot(self, ax=None):
"""
import matplotlib.pyplot as plt
if ax is None:
ax = plt.gca()
plt.figure()
lilyminium marked this conversation as resolved.
Show resolved Hide resolved
ax = plt.axes()
lilyminium marked this conversation as resolved.
Show resolved Hide resolved
ax.plot(self.x, self.results, 'ro', label='Result')
ax.plot(self.x, self.fit, label='Fit')
ax.set_xlabel(r'x')
Expand Down