如何在Python中按索引解析的混淆矩阵中的X轴标题下创建空间

时间:2018-06-28 11:16:16

标签: python seaborn

我有一个使用seaborn热图的混淆矩阵,并且已经将x轴标签放置在矩阵的顶部,但是它与标题重叠,该标题被称为索引,如下所示:

import {Router} from '@angular/router';

private getPatientIdFromCookie() {
  return Cookie.get('AdminPatientId');
}
public patientInfoRoute = "/admin/patient-info/"

isActive(instruction: any[]): boolean {
  // Set the second parameter to true if you want to require an exact match.
  return this.router.isActive(this.router.createUrlTree(instruction), false);
} 

patientinfo(){
  this.router.navigate([patientInfoRoute,getPatientIdFromCookie()])   
}

我想在标题后创建一个行距,以使其不与x轴标签重叠,但是在这些索引列表之前或之后放置一个'\ n'无效。我还能怎么做?谢谢

0 个答案:

没有答案