matplotlib interactive mode only in IPython

have interactive mode only in IPython so that running scripts that plot from python behave like normal.
This commit is contained in:
mellorjc 2015-02-19 11:31:46 +00:00
parent c5c8b8341c
commit 7ad275ce8a

View file

@ -6,7 +6,11 @@ try:
from matplotlib.patches import Polygon
from matplotlib.collections import PatchCollection
#from matplotlib import cm
pb.ion()
try:
__IPYTHON__
pb.ion()
except:
pass
except:
pass
import re