Here is an explanation of the preceding code:
- fig = plt.figure(1, (16., 6.)) defines figure 1 with a size of 16 x 6 inches.
- plt.subplot(131) defines the first axes on a 1 x 3 grid.
- plt.imshow(corr_wine, cmap='plasma') plots a correlation map using the 'plasma' colormap.
- plt.colorbar() plots the colorbar for the image on its right side.
- plt.xticks(range(len(corr_wine)),corr_wine.columns, rotation=75) plots x axis ticks and ticklabels with attribute names on an inclination of 75 degrees.
- plt.yticks(range(len(corr_wine)),corr_wine.columns) plots y axis ticks and ticklabels without any rotation.
- ax2 = plt.subplot(132) defines second axes on a grid of 1 x 3.
- im1 = ax2.imshow(corr_wine, cmap='Blues') plots a correlation map using ...