Code covered by the BSD License  

Highlights from
Hatched Fill Patterns

4.86364

4.9 | 23 ratings Rate this file 90 Downloads (last 30 days) File Size: 2.87 KB File ID: #1736
image thumbnail

Hatched Fill Patterns

by Ben Hinkle

 

24 May 2002 (Updated 14 Oct 2009)

Replace solid colors with patterns.

| Watch this File

File Information
Description

Will create a bitmap copy of a figure with distinct colors replaced with hatch patterns. This is useful for b+w bitmap output. Vector output is not supported.

Acknowledgements
This submission has inspired the following:
Hatch fill patterns plus plus, Hatched Fill Patterns Plus, Hatch fill patterns plus Color & Invert
MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (24)
28 May 2002 Denis Gilbert

The two m-files (APPLYHATCH and MAKEHATCH) address a long-standing shortcoming in the basic 2-D plotting capabilities of Matlab. Works well with PIE, BAR and CONTOURF.

Good job Ben !

30 Jul 2003 Brian Katz

This should be included as a default feature in MatLab. A much needed function for producing any publications graphics.

18 Sep 2003 Danny Zhai

That is what I have been looking for! Nice job!

01 Oct 2003 Mike Zierolf

Thanks a lot! This worked exactly as advertised.

09 Jan 2004 Christopher Brown

Excellent. Can be easily modified to use custom fill patterns too.

15 Sep 2004 Mark Lilly

Needed to make black and white images for a paper and this utility saved the day. Highly reccommend!!! Thanks so much.

23 Mar 2005 Guillermo Franco

Fantastic! Thanks!

25 Oct 2005 Trond Kristiansen

Very useful! Graze!

01 Jun 2007 C.Safak SAHIN

Thanks, I started writing a code for it. After that, I found this program. I will be so helpful.

02 Aug 2007 Andreas E.

Works great!

08 Aug 2007 Jihun Jung

thanks alot! very useful one.

02 Aug 2008 vignesh ravi  
23 Oct 2008 Tobias Conradsson

This saved me a lot of work and time, thanks

25 Apr 2009 Elena D  
29 Jun 2009 Lucas

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

29 Jun 2009 Oleg Komarov

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.

02 Feb 2010 K R

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.

22 Feb 2010 Rashed

Thanks a lot.

26 Jun 2011 David

Excellent, this is exactly what am I looking for.

15 Jul 2011 Qing Xie  
15 Jul 2011 Qing Xie  
12 Oct 2011 Hua

This is really a good thing!

22 Dec 2011 Jonathan C. Lansey

Great worked right out of the "box" thanks!

16 May 2012 J G

Can this work with 'area' plots?

Please login to add a comment or rating.
Updates
14 Oct 2009

BSD update

24 Nov 2009

add 2002- to copyright

Tag Activity for this File
Tag Applied By Date/Time
annotation Ben Hinkle 22 Oct 2008 06:44:43
customization Ben Hinkle 22 Oct 2008 06:44:43
fill Ben Hinkle 22 Oct 2008 06:44:43
pattern Ben Hinkle 22 Oct 2008 06:44:43
area Ben Hinkle 22 Oct 2008 06:44:43
graphics Ben Hinkle 22 Oct 2008 06:44:43
hatch Ben Hinkle 22 Oct 2008 06:44:43
hatch Christian 21 Jun 2011 07:47:39
area Ulrich 22 Jul 2011 03:41:38
pattern Amir 19 Apr 2012 10:11:10

Contact us at files@mathworks.com