Commit f5824412 authored by Yori 'AGy' Fournier's avatar Yori 'AGy' Fournier
Browse files

correction:

add a check status after MyFig::plot such that is the
ax can not format the data it return false and the false status
is given to plot.
parent 4921bfe6
......@@ -295,15 +295,20 @@ class MyFig(MyFig_base):
for ax, rawdata in zip(self.get_axes(), self.rawdata):
status = False
if(self.debug):
ax.formatRawData(rawdata)
status = ax.formatRawData(rawdata)
else:
try:
ax.formatRawData(rawdata)
status = ax.formatRawData(rawdata)
except:
print(SEVR + "The " + str(ax.__class__.__name__) + " with index " + str(self.get_axes().index(ax)) + " could not format the rawdata.")
return(False)
if not status:
return(False)
if self.formatted is False:
self.formatted = True
......
Markdown is supported
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