title: Plot labels from all sides in confusion matrix
body: <p>I need to plot confusion matrix which is annotated from all sides. I have problem with right side where I want to print same labels like in bottom side ([...classes names..., 'Total samples', 'Accuracy' 'mIoU']). Also it seem's that top side ticks are not aligned with bottom side ticks.</p>
  <p>Here is what I tried:</p>
  <pre><code>    fig, ax1 = get_new_fig('Conf matrix default', figsize)
  
      
      ax = sn.heatmap(df_cm, annot=annot, annot_kws={&quot;size&quot;: fz}, linewidths=lw, ax=ax1,
                      cbar=cbar, cmap=cmap, linecolor='w', fmt=fmt)
  
      ax_new = ax.twinx().twiny()
  
      labels = ['' for _ in range(len(ax.get_xticklabels()))]
  
      labels[-3] = 'Total samples'
      labels[-2] = 'Accuracy'
      labels[-1] = 'mIoU'
  
      ticks = [tick for tick in ax.get_xticks()]
  
      ax_new.set_xticks(ticks)
      ax_new.set_yticks(ticks)
      ax_new.yaxis.set_label_position('right')
  
      ax_new.set_xticklabels([text.get_text() for text in ax.get_xticklabels()], fontsize=10, rotation=-45)  # top
      ax_new.set_yticklabels(labels, fontsize=10, rotation=-25)  # right
  
      # set ticklabels
      ax.set_xticklabels(labels, rotation=45, fontsize=10)  # bottom
      ax.set_yticklabels(ax.get_yticklabels(), rotation=25, fontsize=10)  # left
  </code></pre>
  <p><a href="https://i.stack.imgur.com/jGUxe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jGUxe.png" alt="enter image description here" /></a></p>
  <p>I would really appreciate any help because I have no clue if I am missing something in code or what.</p>
  <p>Thanks in advance.</p>