Dec-03-2023, 06:56 AM
Urgent?? There is lots of info on matplotlib around.
Here is a simple example to get you started.
Here is a simple example to get you started.
import numpy import matplotlib.pyplot as plt # for locating minor ticks from matplotlib.ticker import (MultipleLocator, AutoMinorLocator) def myApp(): x = np.arange(0.01, 10.0, 0.01) y = x z = 2*x fig, ax = plt.subplots(num='My Plot') # name of the output window plt.rcParams["figure.figsize"] = [5, 5] # set the size of the output window plt.ion() # to make plot non-blocking, i.e. if multiple plots are launched ax.plot(x, y, color = 'g', label='y = x') ax.plot(x, z, color = 'r', label='y = 2 * x') ax.set_xlim(0, 10) # increasing time ax.set_xlabel('increasing time (s)') ax.set_ylabel('voltage (mV)') ax.set_title('Crazy stuff ...') ax.grid(True) ax.legend() plt.show()