Answers for "show plot in python"

3

python plot

import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4], [1, 4, 9, 16])
plt.show()
Posted by: Guest on December-09-2020
5

plot using matplotlib

import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()
Posted by: Guest on February-21-2020
-1

matplotlib show plot

import matplotlib.pyplot as plt

plt.plot(x, y)
plt.plot(z, t)
plt.show()
Posted by: Guest on October-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language