Skip to content

Instantly share code, notes, and snippets.

@nithyadurai87
Created September 24, 2018 12:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nithyadurai87/cb77831526033da63be0790f917efe63 to your computer and use it in GitHub Desktop.
Save nithyadurai87/cb77831526033da63be0790f917efe63 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
x=[[6],[8],[10],[14],[18],[21]]
y=[[7],[9],[13],[17.5],[18],[24]]
plt.figure()
plt.title('Pizza price statistics')
plt.xlabel('Diameter (inches)')
plt.ylabel('Price (dollars)')
plt.plot(x,y,'.')
plt.axis([0,25,0,25])
plt.grid(True)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment