Stay With us
3 new comments

beginner
new

Help & Settings
About
Help
Tips

How to increase the size of scatter plot in matplotlib

I am creating a scatter plot using matplotlib in python. I have different graph values such as one for salary other for expenditures and some other value for the fuel and eating expenditures.

I want to show them different. So that the size of the graph could be changed.

import matplotlib.pyplot as plt

x = [1,3,5,6,7]
y = [3,5,7,2,8]

x1 = [2,4,6,8,10]
y2 = [4,7,2,9,3]

plt.scatter(x, y)
plt.scatter(x1, y1)

plt.show()

(1) Replies

Please login or register to Comment or Answer