code: def plot(self, key, funcname):
          
          data = self.model.get_data()
          import spyder.pyplot as plt
          plt.figure()
          getattr(plt, funcname)(data[key])
          plt.show()
docs: Plot item