![]() ![]() Scatter Plot with Marker Parameter The colourmap parameterĬmap – A Colormap instance or registered colourmap name. cmap is only used if c is an array of floats, (default: ‘viridis’). Plt.scatter(x = number_of_ratings, y = ratings_value, s = sizes, c = "green", marker = "^" ) Sizes = np.asarray() Number_of_ratings = np.asarray() # Using a different marker: (default: 'o') Let’s try to make some plots and try to visualize the trend. We want find the rating trend from the viewers. Most commonly, NumPy arrays are used for the code to run more efficiently, shape (n, ), required.įor example – We have a dataset with the features, number_of_ratings for a video post on some social media, and we have a ratings_value which varies from 1 – 9. The x_axis_array_data & y_axis_array_dataĪll the parameters mentioned above are optional except the x_axis_array_data and y_axis_array_data, which, as their name suggests takes in two sets of values as an array. ![]() You can install matplotlib using the command:Īlternatively, you can install it using Anaconda. Modifying Scatter Plot Parameters To Create Visualizations With PyPlot Scatter
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |