在条形图中添加条纹或图案形状
Add stripes or patterns shape in a bar graph figure
我正在尝试添加照片中显示的图案或条纹,但我可以在属性中找到它。.有谁知道我应该更改哪个 属性 以添加该图案形状??
非常感谢
这是您要查找的内容:
x = [ 0.1 1 5 10 12 15 ];
y = [1.9278 20.0206 73.7318 80.8813 81.4757 85.4117];
figure;
bar(x,y);
colormap(cool(8));
im_hatch = applyhatch_pluscolor(gcf,'\|-.+/',0,[1 1 0 1 0 0],[],200,3,2);
imwrite(im_hatch,'test.png','png')
我正在尝试添加照片中显示的图案或条纹,但我可以在属性中找到它。.有谁知道我应该更改哪个 属性 以添加该图案形状??
非常感谢
这是您要查找的内容:
x = [ 0.1 1 5 10 12 15 ];
y = [1.9278 20.0206 73.7318 80.8813 81.4757 85.4117];
figure;
bar(x,y);
colormap(cool(8));
im_hatch = applyhatch_pluscolor(gcf,'\|-.+/',0,[1 1 0 1 0 0],[],200,3,2);
imwrite(im_hatch,'test.png','png')