Rank: 932 based on 123 downloads (last 30 days) and 1 file submitted
photo

Neil Tandon

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Neil
Updated   File Tags Downloads
(last 30 days)
Comments Rating
19 Dec 2012 Screenshot Hatchfill Fills an area with hatching or speckling. Author: Neil Tandon plot, patch, hatch, speckle, hatching, fill 123 17
  • 5.0
5.0 | 7 ratings
Comments and Ratings by Neil View all
Updated File Comments Rating
18 Dec 2012 Hatchfill Fills an area with hatching or speckling. Author: Neil Tandon

Thank you Dan, I added an additional check for axes that are only one level up.

17 Jul 2012 Hatchfill Fills an area with hatching or speckling. Author: Neil Tandon

Matt - you could try something like...
h = legend('patch1','patch2');
hp = findobj(h,'type','patch');
hatchfill(hp(1));
hatchfill(hp(2));

25 Jul 2011 Hatchfill Fills an area with hatching or speckling. Author: Neil Tandon

Thanks Dmytro. I fixed this bug.

Comments and Ratings on Neil's Files View all
Updated File Comment by Comments Rating
13 Mar 2014 Hatchfill Fills an area with hatching or speckling. Author: Neil Tandon Byers, Edward

Modifications that twimmeh describes are highly recommended - thanks!

12 Sep 2013 Hatchfill Fills an area with hatching or speckling. Author: Neil Tandon David

Very useful file, but I'm having some trouble with the speckling. I'd like to be able to fill a contour with dots, not just outline it. It would be nice if the function were able to do this by itself instead of the user having to, through trial and error.

12 Sep 2013 Hatchfill Fills an area with hatching or speckling. Author: Neil Tandon David

26 Jul 2013 Hatchfill Fills an area with hatching or speckling. Author: Neil Tandon Sansom, Taylor

After a little more editing to hatch_xy as twimmeh described, the legend looks great and the angles work fine.

Cheers!

26 Jul 2013 Hatchfill Fills an area with hatching or speckling. Author: Neil Tandon Sansom, Taylor

Thank you very much for this, seems to work like a charm in most applications except for the legend.

I can get the hatching in the legend by doing what twimmeh said (May 2), however the angle doesn't work when hatching in the legend. I can only get horizontal or vertical lines instead of the 45 degree angle that is on my bars.

leg=legend('1-Month','1-Year','5-Year');
legpatch=findobj(leg,'type','patch');
hatchfill(legpatch(3),'single',45,1,'blue')
hatchfill(legpatch(2),'single',45,1,'green')
hatchfill(legpatch(1),'single',45,1,'red')

Any idea how to get the 45 degree angle in the legend?

Contact us