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

Add Scipy curve_fit and plotting functions #40

Merged
merged 13 commits into from
Mar 6, 2024
Prev Previous commit
Next Next commit
fix typo
marjanalbooyeh committed Mar 1, 2024
commit 11fee820b79faa636f49f911de6bc6c99b0efe5e
2 changes: 1 addition & 1 deletion msibi/forces.py
Original file line number Diff line number Diff line change
@@ -331,7 +331,7 @@ def plot_potential_history(self, file_path=None) -> None:

def plot_distribution_comparison(self, state: msibi.state.State, file_path=None):
final_dist = self.distribution_history(state=state)[-1]
target_dist = self.target_distrdisibution(state=state)
target_dist = self.target_distribution(state=state)

plt.plot(final_dist[:, 0], final_dist[:, 1], "o-", label="MSIBI")
plt.plot(target_dist[:, 0], target_dist[:, 1], "o-", label="Target")