![]() ![]() Let’s see what happens when we use our x array as our colors and use the 'Blues' colormap. You can find the various color maps that Matplotlib offers here. Often you may want to shade the color of points within a matplotlib scatterplot based on some third variable. ![]() This allows us to create a gradient to show how the data moves forward. With sequential data, as we have in our example, we can pass in color maps. This allows us to either pass in a single color, in case we wanted to do keep the same color for all points, or an array of numbers to color based on value. In order to do this, we can use the c= parameter. This allows us to better understand the third dimension. ![]() Three dimensions can be quite difficult to visualize and adding color to this can be quite helpful. It can be quite helpful to add color to a 3-dimensional plot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |