This didn't work for me-- the hatch lines would not rotate in my figures, and no hatch lines were drawn using "hatch demo." Perhaps an issue with my Linux_64 machine?
30 Sep 2008
Nice program, but i have one question:
If I hatch it hatches to one side of my graph. How do i manage to hatch also the other side of this graph?
17 Apr 2006
Now need to include 'v6' as first arg to bar function in order for demo to work. Even though this was exactly what I was looking for (and amazed that this isn't built in), I ended up not using it partly because I didn't understand why exactly horizontal or exactly vertical lines jump one pixel -- wasn't asthetic to my eye for manuscript quality.
06 Jul 2005
Very useful, thanks a lot!
One tiny change worth making: the function definition on the first line is missing its output variables. Change to:
function lh = hatch(obj,angle,color,style,step,width)
if you want access to the handle (lh).
10 Feb 2005
09 Feb 2005
I have used this to create complex bar graphs. It took a while to figure out how to use it. My usage was
hdl = patch(x,y,'w','EdgeColor'.'k'); % using MATLAB "patch" to establish the border
I did notice at cetain angles some of my small bars had the hash lines at strange angles.
16 Oct 2003
I've done some limited testing of this
m-file with Matlab 18.104.22.168271 (R13.0.1)
and it's been working very well!
Thanks so much Iram!
29 Aug 2002
Usefull m file. I often need hatched shading for b&w figures in journals. Hopefull this will do the job.
Took me a while to figure out how to run it