Rank: 47 based on 2814 downloads (last 30 days) and 11 files submitted
photo

Oliver Woodford

E-mail
Lat/Long
51.7568321228027, -1.25250995159149

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Oliver View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Nov 2009 Screenshot export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford anti alias, jpeg, workspace, print, tiff, save 803 25
  • 5.0
5.0 | 12 ratings
16 Oct 2009 fullpath Generates a full path from a partial or relative path Author: Oliver Woodford full path, pathname, file, path, directory, relative 160 2
02 Oct 2009 maximize Platform independent function to maximize a figure window. Author: Oliver Woodford maximize figure, maximise, figure, maximize, window, fullscreen 167 0
01 May 2009 Screenshot imdisp Display multiple images as a montage of subplots Author: Oliver Woodford subplot, image, montage, gui, imshow, imagesc 244 6
  • 4.66667
4.7 | 4 ratings
14 Apr 2009 Screenshot print2im Save or output figures to anti-aliased images with cropped borders and optional transparency. Author: Oliver Woodford image, data export, anti alias, save, ppt, powerpoint 213 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Oliver View all
Updated File Comments Rating
20 Nov 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

Bob:
set(gcf, 'color', 'none'); % Set the figure background to transparent
set(gca, 'color', 'none'); % Set the axes background to transparent

18 Nov 2009 real2rgb & colormaps Converts intensity matrices into truecolor images. Author: Oliver Woodford

Richard: This issue is do do with the way MATLAB deals with the colormap, rather than the colormap itself, which is as it should be. MATLAB can only handle 256 level colormaps for indexed images (on Windows). Pcolor avoids the problem. So does using truecolor (rather than indexed) images. You can use real2rgb to generate a truecolor image from your 1024 level colormap and your indexed image.

12 Nov 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford

A reminder for everyone: As I say in the description, please do email me (use the "Contact Author link on my author page) when you have a problem, rather than place it here. I'll respond quicker, and also people finding the function won't think it never works!

10 Nov 2009 print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. Author: Oliver Woodford

Stefan: For some reason the eps file generated by MATLAB's print function doesn't name the fonts correctly. I suggest you contact TMW's technical support. If and when print generates an eps file correctly but print_pdf/export_fig doesn't then generate the correct pdf, then I will investigate further.

08 Nov 2009 print_pdf Save figures to high quality pdfs with cropped borders and embedded fonts. Author: Oliver Woodford

Stefan: Two things might help. Firstly, you need to make Ghostscript knows about the fonts you want to include. You can tell it where to look by using the -sFONTPATH="C:\blah\blah" option (obviously using the right path). Secondly, you need to make sure the fonts are in a format that Ghostscript understands. For example, I don't think it understands the OpenType format.

Comments and Ratings on Oliver's Files View all
Updated File Comment by Comments Rating
20 Nov 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Bob

Oliver, thanks very much but something is funny. If I have the property editor open for the original figure the color is white. I run the set commands and the color is none. I then use export_fig and the color goes back to white (as seen in the Property Manager), and the figure has a white background (export_fig foo.png -pdf; OS X 10.6.2, 2009b). Same white background on the pdf and the png.

20 Nov 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Woodford, Oliver

Bob:
set(gcf, 'color', 'none'); % Set the figure background to transparent
set(gca, 'color', 'none'); % Set the axes background to transparent

20 Nov 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Bob

Wish I had found this great script sooner!

Can someone tell me how to set the color property to 'none'. If you set edit figure and then use the property editor you only get an option for color (e.g. a palette), you can't type in 'none'. I'm missing something obvious here, can someone please help me with this.

20 Nov 2009 export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford Bob

18 Nov 2009 real2rgb & colormaps Converts intensity matrices into truecolor images. Author: Oliver Woodford Woodford, Oliver

Richard: This issue is do do with the way MATLAB deals with the colormap, rather than the colormap itself, which is as it should be. MATLAB can only handle 256 level colormaps for indexed images (on Windows). Pcolor avoids the problem. So does using truecolor (rather than indexed) images. You can use real2rgb to generate a truecolor image from your 1024 level colormap and your indexed image.

Top Tags Applied by Oliver
figure, data export, print, save, export figure
Files Tagged by Oliver View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Nov 2009 Screenshot export_fig Exports figures nicely to a number of vector & bitmap formats. Author: Oliver Woodford anti alias, jpeg, workspace, print, tiff, save 803 25
  • 5.0
5.0 | 12 ratings
16 Oct 2009 fullpath Generates a full path from a partial or relative path Author: Oliver Woodford full path, pathname, file, path, directory, relative 160 2
02 Oct 2009 maximize Platform independent function to maximize a figure window. Author: Oliver Woodford maximize figure, maximise, figure, maximize, window, fullscreen 167 0
01 May 2009 Screenshot imdisp Display multiple images as a montage of subplots Author: Oliver Woodford subplot, image, montage, gui, imshow, imagesc 244 6
  • 4.66667
4.7 | 4 ratings
14 Apr 2009 Screenshot print2im Save or output figures to anti-aliased images with cropped borders and optional transparency. Author: Oliver Woodford image, data export, anti alias, save, ppt, powerpoint 213 1
  • 5.0
5.0 | 1 rating
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com