I have written following code as a practice exercise on matplotlib
ax = f.gca()
aa = ax.imshow(boston_corr,cmap = 'PiYG')
x_label = [i for i in boston_df[:]]
pd.Series(x_label)
y_label = x_label.copy()
ax.set_xticklabels(x_label,rotation=90)
ax.set_yticklabels(y_label)
plt.title('PCA component Matrix')
cbar = plt.colorbar(aa,label = 'correlation value'
Code contains 12 values on both axes but in the output only 6 are shown. Please help me, thanks in advance.