Commit 2bd97d43 authored by Daniel Brown's avatar Daniel Brown
Browse files

fixing inline plot not showing

parent 9d3bff31
...@@ -3,7 +3,7 @@ from __future__ import division ...@@ -3,7 +3,7 @@ from __future__ import division
from __future__ import print_function from __future__ import print_function
from __future__ import unicode_literals from __future__ import unicode_literals
__version__ = "0.8.9" __version__ = "0.8.10"
# This flag is used to switch on the gui features in pkat at import time # This flag is used to switch on the gui features in pkat at import time
USE_GUI = False USE_GUI = False
......
...@@ -301,6 +301,9 @@ class katRun(object): ...@@ -301,6 +301,9 @@ class katRun(object):
import matplotlib.pyplot as pyplot import matplotlib.pyplot as pyplot
import pykat.plotting as plt import pykat.plotting as plt
if not show:
pyplot.ioff()
kat = pykat.finesse.kat() kat = pykat.finesse.kat()
kat.verbose = False kat.verbose = False
kat.parseCommands(self.katScript) kat.parseCommands(self.katScript)
...@@ -434,6 +437,7 @@ class katRun(object): ...@@ -434,6 +437,7 @@ class katRun(object):
if show: if show:
pyplot.show(fig) pyplot.show(fig)
pyplot.ion()
return fig return fig
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment