Many people asks what line of code is used to import matplotlib? Here we are going to provide you the code for it.
Code Example –
import matplotlib.pyplot as plt
Using it for drawing a chart –
import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.ylabel('some numbers') plt.show()
Source: Pyplot Tutorial