No BSD License  

Highlights from
savefigure

5.0

5.0 | 6 ratings Rate this file 23 Downloads (last 30 days) File Size: 6.76 KB File ID: #6854
image thumbnail

savefigure

by Aslak Grinsted

 

03 Feb 2005 (Updated 09 Feb 2005)

Easy way of saving figures to publication friendly format.

| Watch this File

File Information
Description

Usage: [Args=]savefigure(name[,property,value,...])
 
  properties and default value
  'Dpi',300,
  'Size',[3.3 2.5] %inches
  'FontSize',0 %fontsize multiplier
  'MinFontSize',8 %minimum fontsize in pt
  'LineWidth',.5 %linewidth multiplier
  'MinLineWidth',.5 %minimum linewidth in pt
  'MarkerSize',.5 %markersize multiplier
  'MinMarkerSize',3 %minimum MarkerSize in pt
  'Margins','auto' %Left,Right,Top,Bottom - can be used to set margins (relative units)
                    %or a multiplier to the tight-inset used for auto margins.
  'PrintOptions','-dpng'
 
  AGU journals: Figures can be 20 picas wide or 41 picas wide and 58 picas deep. That's
  3.3 inches, 6.83, and 9.66.
 
  (C) Aslak Grinsted 2002-2004

-------------------

EXAMPLE:

close all;
semilogy(chemyear(:,1),chemyear(:,4));
xlabel('x');
ylabel('y');
savefigure('test','s',[3.3 2.5],'po','-deps')

Note: the zip package includes an version that works in older versions of matlab.

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
01 Jun 2005 john moore

extreemly useful, AGU should make it known to everyone who uses Matlab for their articles

09 Jan 2007 Thomas Thurnheer

Thanks a lot, you saved my day!

13 Apr 2007 Nickitas Georgas

Very useful to someone that wants to save a clean image quickly. I would suggest making the above usage part of the README file.

13 Oct 2008 Hom Gharti

Very very important.

09 May 2011 Xianmin

Saved lots of my time. Thanks!

28 Sep 2011 Khalil  
Please login to add a comment or rating.
Updates
09 Feb 2005

Included a version of the routine that works in older versions of matlab.

+fixed a minor bug related to outputs.

09 Feb 2005

I submitted an update earlier today, but a major bug sneaked into parseArgs.m ... This has been fixed in this version.

09 Feb 2005

I submitted an update earlier today, but a major bug sneaked into parseArgs.m ... This has been fixed in this version.

Tag Activity for this File
Tag Applied By Date/Time
graphics import Aslak Grinsted 22 Oct 2008 07:40:38
graphics export Aslak Grinsted 22 Oct 2008 07:40:38
save Aslak Grinsted 22 Oct 2008 07:40:38
figure Aslak Grinsted 22 Oct 2008 07:40:38
print Aslak Grinsted 22 Oct 2008 07:40:38
crop Aslak Grinsted 22 Oct 2008 07:40:38
label Aslak Grinsted 22 Oct 2008 07:40:38
title Aslak Grinsted 22 Oct 2008 07:40:38
png Aslak Grinsted 22 Oct 2008 07:40:38
eps Aslak Grinsted 22 Oct 2008 07:40:38
tiff Aslak Grinsted 22 Oct 2008 07:40:38
publication Aslak Grinsted 22 Oct 2008 07:40:38
figure Jose Ercolino 12 Apr 2011 21:47:51
publication Jose Ercolino 12 Apr 2011 21:48:03
export Jose Ercolino 12 Apr 2011 21:48:35
plot Jose Ercolino 12 Apr 2011 21:48:35
graphics Jose Ercolino 12 Apr 2011 21:48:35
tiff Magnus 28 Apr 2011 09:08:34
plot Aslak Grinsted 01 Jul 2011 06:43:00
graph Aslak Grinsted 01 Jul 2011 06:43:03
image Aslak Grinsted 01 Jul 2011 06:43:04
dotted Aslak Grinsted 01 Jul 2011 06:43:24
margin Aslak Grinsted 01 Jul 2011 06:43:49
journal Aslak Grinsted 03 Aug 2011 07:27:19
export_fig Aslak Grinsted 08 Aug 2011 07:22:41
exportfig Aslak Grinsted 08 Aug 2011 07:22:45
margins Aslak Grinsted 19 Aug 2011 04:07:53
graphics export Khalil 28 Sep 2011 05:11:24

Contact us at files@mathworks.com