代码已经上传到资源
使用直接调用函数即可,填充物可调密度
bar(rand(3,3));
im_hatch = applyhatch_plusC(gcf,{makehatch_plus('\',6),makehatch_plus('+',4),makehatch_plus('/',5)},'gbk');
颜色可用矩阵表示
bar(rand(3,4));
im_hatchC = applyhatch_plusC(1,'\-x.',[1 0 0;0 1 0;0 0 1;0 1 1]);
matlab 颜色一共有
标记符 颜色
r 红
g 绿
b 蓝
c 蓝绿
m 紫红
y 黄
k 黑
w 白