2808 explained code solutions for 75 technologies


python-matplotlibHow to change dot type


import matplotlib.pyplot as plt

plt.plot([1, 3, 5, 7], [6, 6, 7, 8], 'p', 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

'p'

set dot type to pentagon from the list of available types

ms=

sets the size of the dot

.show()

render chart in a separate window