name 'plt' is not defined 1

name ‘plt’ is not defined

%matplotlib ipympl

import matplotlib.pyplot as plt


plt.plot(a_x, a_y)

Here is what the above code is Doing:
1. Importing the matplotlib library
2. Importing the pyplot module from the matplotlib library
3. Creating two lists, a_x and a_y, that will be used to plot the data
4. Plotting the data
5. Showing the plot

Similar Posts