import wx import numpy as np import matplotlib.pyplot as plt def plot2(): #t = np.arange(0, 1, 2, 3, 4, 5, 6, 7, 8) #s = np.arrange([1, 2, 4, 8, 16, 32, 64, 128, 256]) t = [0, 10, 20, 30, 40, 50, 60, 70, 80] s = [1, 2, 4, 8, 16, 32, 64, 128, 256] plt.plot(t, s) plt.ylabel('Intensity') plt.show() plot2()