9951 explained code solutions for 126 technologies


python-matplotlibHow to change dot size


import matplotlib.pyplot as plt

plt.plot([1, 3, 5, 7], [6, 6, 7, 8], 'o', ms=15)

plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

[1, 3, 5, 7]

x coordinates

[6, 6, 7, 8]

y coordinates

'o'

don't draw a line, only circle dots

ms=

sets the size of the dot

.show()

render chart in a separate window