![]() ![]() Read: Matplotlib save as pdf Matplotlib scatter plot color transparency To set the different color for each scatter marker pass color parameter and set its value to given list of colors.To plot a scatter graph, use scatter() function.Next, define data axes using array() method of numpy.Import library matplotlib.pyplot and numpy for data visualization and creation. ![]() To set a different color for each point we pass a list of colors to the color parameter of the scatter() method.Ĭolor = ['lightcoral', 'darkorange', 'olive', 'teal', 'violet', We’ll see an example, where we set a different color for each scatter point. Read: Horizontal line matplotlib Matplotlib scatter plot color each point
0 Comments
Leave a Reply. |