What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-31 13:30:34
seaborn heatmap xlabel rotation
plt.figure(figsize=(10,10)) g = sns.heatmap( by_sport, square=True, cbar_kws={'fraction' : 0.01}, cmap='OrRd', linewidth=1 ) g.set_xticklabels(g.get_xticklabels(), rotation=45, horizontalalignment='right') g.set_yticklabels(g.get_yti... Add solution -
Python 2021-10-25 06:45:15
seaborn heatmap x labels horizontal
plt.figure(figsize=(10,10)) g = sns.heatmap( by_sport, square=True, cbar_kws={'fraction' : 0.01}, cmap='OrRd', linewidth=1 ) g.set_xticklabels(g.get_xticklabels(), rotation=45, horizontalalignment='right') g.set_yticklabels(g.get_yti... Add solution -
Python 2021-10-16 04:58:04
how to display the first 25 images from training dataset
plt.figure(figsize=(10,10))for i in range(25): plt.subplot(5,5,i+1) plt.xticks([]) plt.yticks([]) plt.grid(False) plt.imshow(train_images[i], cmap=plt.cm.binary) plt.xlabel(class_names[train_labels[i]])plt.show() Add solution