to change the color of the pointspass to scatter(with the name of color to useas shown hereplt scatter(x_valuesy_valuesc='red'edgecolor='none' = you can also define custom colors using the rgb color model to define colorpass the argument tuple with three decimal values (one each for redgreenand blue)using values between and for examplethe following line would create plot with light blue dotsplt scatter(x_valuesy_valuesc=( )edgecolor='none' = values closer to produce dark colorsand values closer to produce lighter colors using colormap colormap is series of colors in gradient that moves from starting to ending color colormaps are used in visualizations to emphasize pattern in the data for exampleyou might make low values light color and high values darker color the pyplot module includes set of built-in colormaps to use one of these colormapsyou need to specify how pyplot should assign color to each point in the data set here' how to assign each point color based on its -valuescatter_ squares py import matplotlib pyplot as plt x_values list(range( )y_values [ ** for in x_valuesplt scatter(x_valuesy_valuesc=y_valuescmap=plt cm bluesedgecolor='none' = set chart title and label axes --snip-we pass the list of -values to and then tell pyplot which colormap to use through the cmap argument this code colors the points with lower -values light blue and the points with larger -values dark blue the resulting plot is shown in figure - note you can see all the colormaps available in pyplot at examplesscroll down to color examplesand click colormaps_reference