def imshow(self, key): """Show item's image""" data = self.model.get_data() import spyderlib.pyplot as plt plt.figure() plt.imshow(data[key]) plt.show()
def plot(self, key): """Plot item""" data = self.model.get_data() import spyderlib.pyplot as plt plt.figure() plt.plot(data[key]) plt.show()