Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X_cord=int(raw_input("Enter the x-coordinate"))
- Y_cord=int(raw_input("Enter the y-coordinate"))
- import matplotlib.pyplot as plt # I include a module which contains the plotting functionality I need: https://docs.python.org/2/tutorial/modules.html
- plt.plot(X_cord, # here go the X coordinates
- Y_cord, # here go the Y coordinates
- marker='x', # as I'm plotting only one point here, I'd like to make it extra visible
- markersize=10 # by choosing a nice marker shape ('x') and large size
- )
- plt.show() # this shows the current plot in a pop-up window
- plt.savefig("my_first_plot.pdf", bbox_inches='tight')
- plt.close()
- X_cord = float( X_cord )
- Y_cord = float( Y_cord )
- plt.scatter( X_cord, Y_cord )
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement