Skip to content

Commit

Permalink
Remove matplotlib
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaem committed Sep 27, 2018
1 parent 18f01f2 commit 976fbae
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions oasis/problems/NSfracStep/TaylorGreen2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
__license__ = "GNU Lesser GPL version 3 or any later version"

from ..NSfracStep import *
from matplotlib import pyplot as plt
try:
from matplotlib import pyplot as plt
except:
pass

# Override some problem specific parameters
def problem_parameters(NS_parameters, NS_expressions, **NS_namespace):
Expand Down Expand Up @@ -101,7 +104,10 @@ def temporal_hook(q_, t, nu, VV, dt, plot_interval, initial_fields, tstep, sys_c
plot(q_['u0'], title='u')
plot(q_['u1'], title='v')
plot(q_['p'], title='p')
plt.show()
try:
plt.show()
except:
pass

if tstep % compute_error == 0:
err = {}
Expand Down

0 comments on commit 976fbae

Please sign in to comment.