使用applyhatch_pluscolor包,下载地址:applyhatch_pluscolor代码包。
h = bar(rand(3,4));
fH = gcf;
colormap(cool(6));
legend('Apple', 'Orange', 'Banana','Melon');
tH = title('Brandon''s applyhatch');
applyhatch_pluscolor(fH, '.+\/', 1, [0 0 0 1], cool(6));
applyhatch_pluscolor(图像对象,
样式,
黑白or彩色,
[前景色,背景色]
[颜色列表],
分辨率,
线宽);