Created
September 24, 2018 12:26
-
-
Save nithyadurai87/cb77831526033da63be0790f917efe63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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