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

When the rawdata were set in MyFig::set_rawdata I forgot to add self.formatted...

When the rawdata were set in MyFig::set_rawdata I forgot to add self.formatted = False before self.formatRawData and therefore if self.reformat was set to false the data were not reformatted... also add some debug info.
parent c8792c08
......@@ -281,6 +281,7 @@ class MyFig(MyFig_base):
if(len(self.get_axes()) == len(rawdata)):
self.rawdata = rawdata
self.formatted = False
self.formatRawData()
else:
self.rawdata = ()
......@@ -310,10 +311,15 @@ class MyFig(MyFig_base):
status = True
if(self.debug):
print(DBUG + "currently formatting the data...")
if((self.reformat) or (not self.formatted)):
status = self.formatRawData()
if(self.debug):
print(DBUG + "currently plotting the axes...")
# For all axes in the figure reformat if needed and plot
for ax in self.get_axes():
......
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