I am getting error while trying to use this function.
D=[26.834 16.74 12.37
20.238 18.84 14.201
21.523 15.14 12.25
22.839 14.64 13.57
22.8585 16.34 13.09775];
Please help me know how I can use applyhatch or makehatch to get a barplot in grayscale having hatched patterns.
Thanks so much! This is so useful for black and white printing. One tip to users is to change the gcf color (color background) to white before applying the hatch. it seems once the hatch is applied the figure isn't able to be modified further.
I agree with Brian: this should be a built in feature in matlab. I always have to export data and do my graphs in excel.
Also, i think the "pointed" texture should be improved to match the logic it has in excel, that is it shouldn't simply make bigger points.
textures don't line up - but colour mapping is a good idea - Aha, i've found the problem, when the image is put into the figure, it is made _slightly_ bigger, giving the appearence (and output to file) of a bitmap with an extra line in its textures in the middle: lines 100 and 101 should read
set(newfig,'position',[fpos(1:2) figsize(3) figsize(4)]);
set(imaxes,'position',[0 0 figsize(3) figsize(4)],'visible','off');
i.e. remove the plus one