“sns.heatmap” Respostas de código

Imprima o mapa de calor python

import numpy as np
import seaborn as sns
import matplotlib.pylab as plt

uniform_data = np.random.rand(10, 12)
ax = sns.heatmap(uniform_data, linewidth=0.5)
plt.show()
Expensive Earthworm

Mostrar valores inteiros de mapa de calor Seabron

sns.heatmap(table2,annot=True,cmap='Blues', fmt='g')
Sleepy Shark

sns.heatmap

flights = sns.load_dataset("flights")
>>> flights = flights.pivot("month", "year", "passengers")
>>> ax = sns.heatmap(flights)
jiaying xu

Procure respostas de código populares por idioma

Procurar outros idiomas de código