Skip to content
Snippets Groups Projects
Commit 44986a9f authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

only show day and month when time ranger bigger than 24hours

parent b0241799
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,10 @@ class CalibrateAHRS(kp.Module):
def create_plot(self):
print(self.__class__.__name__ + ": updating plot.")
xfmt = md.DateFormatter('%Y-%m-%d %H:%M')
if self.time_range > 24:
xfmt = md.DateFormatter('%Y-%m-%d %H:%M')
else:
xfmt = md.DateFormatter('%H:%M')
xlim = (datetime.utcfromtimestamp(time.time() -
self.time_range * 60 * 60),
datetime.utcnow())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment