Scatter Plot Shading - Python

Publicado el: 01 enero 1970
en el canal de: Ralph Turchiano
216
like

Instead of assigning a color you use c and assign a variable in order to give that nice shading effect for your bivariate analysis: My Example Code Below:
import numpy as np
import numpy.random as npr
import matplotlib.pyplot as plt
%matplotlib inline
sizex = 10000
fig, ax =plt.subplots(1,3)
fig.set_size_inches([30,5])
x,y = npr.randint(100000, size=sizex),npr.randint(100000, size=sizex)
ax[0].scatter(x,y,c=x)
ax[0].set_title("x - axis")
ax[1].scatter(x,y,c=y)
ax[1].set_title("y - axis")
ax[2].scatter(x/1000,y/10000,c=(y*x))
ax[2].set_title("mish mosh - axis")
#scatterplot #shading #color


En esta página del sitio puede ver el video en línea Scatter Plot Shading - Python de Duración hora minuto segunda en buena calidad , que subió el usuario Ralph Turchiano 01 enero 1970, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 216 veces y le gustó like a los espectadores. Disfruta viendo!