带通行证的矩阵图标记
matrix plot labeling with passes
这是带有标记单元格的矩阵图:
list = {{1, 1, 0, 1}, {0, 0, 1, 1}, {1, 0, 1, 0}};
collab = Row[{0.1*#}] & /@ Range[4];
rowlab = Row[{0.1*#}] & /@ Range[3];
rowticks = Thread[{Range[3], rowlab}];
colticks = Thread[{Range[4], collab}];
MatrixPlot[list, FrameTicks -> {rowticks, colticks}]
如何在标记时传递一些细胞?例如,有没有办法不在值为 0.2 和 0.4 的水平轴上签名?
提前致谢
一种方法是制作这些标签 Invisible
.
collab = Row[{0.1*#}] & /@ Range[4] // MapAt[Invisible, #, {{2}, {4}}] &
这是带有标记单元格的矩阵图:
list = {{1, 1, 0, 1}, {0, 0, 1, 1}, {1, 0, 1, 0}};
collab = Row[{0.1*#}] & /@ Range[4];
rowlab = Row[{0.1*#}] & /@ Range[3];
rowticks = Thread[{Range[3], rowlab}];
colticks = Thread[{Range[4], collab}];
MatrixPlot[list, FrameTicks -> {rowticks, colticks}]
如何在标记时传递一些细胞?例如,有没有办法不在值为 0.2 和 0.4 的水平轴上签名?
提前致谢
一种方法是制作这些标签 Invisible
.
collab = Row[{0.1*#}] & /@ Range[4] // MapAt[Invisible, #, {{2}, {4}}] &