![]() ![]() You can also have different colors for different data points in matplotlib’s scatter plot. Plt.scatter(weight, height, marker='*', s=80) For instance, to make the markers start-shaped instead of the round with larger size: import matplotlib.pyplot as plt You can alter the shape of the marker with the marker parameter and size of the marker with the s parameter of the scatter() function. ![]() The scatter plots above have round markers. Let’s add them to the chart created above: import matplotlib.pyplot as plt Matplotlib’s pyplot has handy functions to add axis labels and title to your chart. a) Add axis labels and chart title to the chart Earned commissions help support this website and its team of writers. When you purchase a course through a link on this site, we may earn a small commission at no additional cost to you. □ Find Data Science Programs □□ 111,889 already enrolledĭisclaimer: Data Science Parichay is reader supported. MIT Statistics and Data Science: MicroMasters® Program in Statistics and Data Science. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |