Skip to content

Commit

Permalink
Update run.py
Browse files Browse the repository at this point in the history
Running matplot lib on MacOS yielded to a crash on my system in matplotlib. This patch fixes that problem. See here: MTG/sms-tools#36
  • Loading branch information
JohSchoeneberg committed Feb 15, 2019
1 parent 8980b45 commit 55c169e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
import os
import numpy as np
import matplotlib.pyplot as plt
import readdy
import myintegrator as mi

from sys import platform as sys_pf
if sys_pf == 'darwin':
import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt


n_particles = 500
out_file = "anisotropic_msd.h5"
origin = np.array([-40., -40., -40.])
Expand Down

0 comments on commit 55c169e

Please sign in to comment.