Commit dadce20a authored by W. Trevor King's avatar W. Trevor King
Browse files

Carry on plotting in scripts if one of the plots fails (e.g. for text waves).

parent 3ae7034c
......@@ -77,7 +77,11 @@ class Script (object):
figure = _matplotlib_pyplot.figure()
axes = figure.add_subplot(1, 1, 1)
axes.plot(wave['wave']['wData'], 'r.')
axes.plot(wave['wave']['wData'], 'r.')
except ValueError as error:
_LOG.error('error plotting {}: {}'.format(title, error))
self._num_plots += 1
def display_plots(self):
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