9951 explained code solutions for 126 technologies


python-matplotlibHow to change marker color


import matplotlib.pyplot as plt

plt.scatter(2,3,color='red')

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

loads Matplotlib module to use plotting capabilities

.scatter(

plots a single point

2,3

x and y coordinates

color=

set point color

.show()

render chart in a separate window