Rank: 1489 based on 92 downloads (last 30 days) and 1 file submitted
photo

Iram Weinstein

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Iram Weinstein
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Aug 2002 Screenshot hatch.m Create cross-hatched filled regions. Author: Iram Weinstein specialized, plotting, hatrched, fill, pankratov, graphics 92 9
  • 3.88889
3.9 | 9 ratings
Comments and Ratings on Iram Weinstein's Files View all
Updated File Comment by Comments Rating
30 Oct 2014 hatch.m Create cross-hatched filled regions. Author: Iram Weinstein Yu-Heng

This is to my knowledge the best function to use if you hatch patches need to have 'holes' in them (e.g. a torus-shaped hatch patch). Works on R2014a.

When I plotted complex hatch plots, there would be dotted lines running across different hatch patches. This is fixed by inserting the following code immediately after the "Organize to pairs and separate by NaN's" block:

% Remove point line segments (i.e. segment of the form (a,b) to (a,b)
i_same = find(diff(xi)<eps('single')); % find the first index of each point
i_remove = repmat(i_same,[3 1]) + repmat((0:2)',[1 length(i_same)]);
xi(i_remove) = [];
yi(i_remove) = [];

This amendment removes hatch lines shorter than 1E-7 unit long (essentially what those dotted lines are).

04 May 2011 hatch.m Create cross-hatched filled regions. Author: Iram Weinstein Neil Dalchau

Generally works, but could not get the angle to work. I'm using Matlab on Windows 7, 32-bit.

23 Jun 2009 hatch.m Create cross-hatched filled regions. Author: Iram Weinstein Scott Beaver

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 hatch.m Create cross-hatched filled regions. Author: Iram Weinstein

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 hatch.m Create cross-hatched filled regions. Author: Iram Weinstein

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.

Contact us