Matplotlib Tutorial | Create Scatter Plot ,Colorbar (Tutorial 4)

Publicado el: 13 abril 2020
en el canal de: Manav Rao
229
9

Hey Everyone In last We have seen Pie Chart in Today's Video We are going To learn Scatter Plot. Scatter Plot is Mainly use to understand the Correlation Between Two or More variables .
In this Video We will Learn How to set Color Bar to Our Scatter Plot and Also We Will Learn How to Customize Our Scatter Plot .
If You Have Any Question About Scatter Plot Ask Me In Comment Section.

Code: -
===========================================================
from matplotlib import pyplot as plt

x=[1,5,2,6,8,5,3,5,9,3,5,3,7]
y=[9,3,4,6,7,8,9,7,5,4,6,7,4]

color=[1,2,5,7,5,2,4,6,7,8,6,4,6]

plt.scatter(x,y,s=100,marker="o",c=color,edgecolors="Black",linewidths=0.5,alpha=1,label="Happy")
cbar=plt.colorbar()
cbar.set_label("Happiness")
plt.legend()
plt.show()
============================================================



Data That I used in This Video : -
x=[1,5,2,6,8,5,3,5,9,3,5,3,7]
y=[9,3,4,6,7,8,9,7,5,4,6,7,4]
color=[1,2,5,7,5,2,4,6,7,8,6,4,6]


En esta página del sitio puede ver el video en línea Matplotlib Tutorial | Create Scatter Plot ,Colorbar (Tutorial 4) de Duración hora minuto segunda en buena calidad , que subió el usuario Manav Rao 13 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 229 veces y le gustó 9 a los espectadores. Disfruta viendo!