[Code Example] “import matplotlib.pyplot as plt” will import matplotlib

Total
0
Shares

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

Sign Up for Our Newsletters

Get only the best articles delivered to your mail

You May Also Like