Carry on plotting in scripts if one of the plots fails (e.g. for text waves).
W. Trevor King
11 years ago
76 | 76 | figure = _matplotlib_pyplot.figure() |
77 | 77 | axes = figure.add_subplot(1, 1, 1) |
78 | 78 | axes.set_title(title) |
79 | axes.plot(wave['wave']['wData'], 'r.') | |
79 | try: | |
80 | axes.plot(wave['wave']['wData'], 'r.') | |
81 | except ValueError as error: | |
82 | _LOG.error('error plotting {}: {}'.format(title, error)) | |
83 | pass | |
80 | 84 | self._num_plots += 1 |
81 | 85 | |
82 | 86 | def display_plots(self): |