The MathWorks - MATLAB Digest June Exporting Figures for Publication

Similar documents
Matlab Plots in Microsoft Word

Introduction to Simulink

Submission Guideline Checklist

10.4 Areas in Polar Coordinates

Fall 2015 Math 337. Basic MatLab

HOW TO SAVE YOUR DESIGN FILES

ASUKABOOK InDesign Tool ABId

Press-Ready Cookbook Page Guidelines

Both transferring content to a template or re-formatting an existing Word document are similar in terms of time and effort.

MATH36032 Problem Solving by Computer. Publishable Quality Graphics

Style guide.

print and printopt produce hardcopy output. All arguments to the print command are optional. You can use them in any combination or order.

Advertising rates. Full page Type area 225x330 mm. Bleed 258 x mm around, total 268x374 mm. Price. Color :- Free format.

Introduction to Matlab

Controlling the Control Palette

Basic plotting commands Types of plots Customizing plots graphically Specifying color Customizing plots programmatically Exporting figures

Enjoy upgrading to Microsoft Word Author: Christine Kent. Web address Blog address

Managing custom montage files Quick montages How custom montage files are applied Markers Adding markers...

12 whereas if I terminate the expression with a semicolon, the printed output is suppressed.

Chapter 5. Presenting Data

QUICK INTRODUCTION TO MATLAB PART I

APPM 2460 PLOTTING IN MATLAB

File Preparation & Design considerations

EEE161 Applied Electromagnetics Laboratory 1

Using the IMfig program.

The Text group on the Text Box Tools contextual menu contains three options:

Scouting Assistant v1.x Release Notes

Designing the Layout of External Content Using the Widgets Tool

Retirement Income Scenario Matrices. William F. Sharpe. 11. Analysis

AMS 27L LAB #2 Winter 2009

Flexmail Software SET UP with DS1000/DS1200 Inserters

Section 4.4: Parabolas

KaleidaGraph Quick Start Guide

Rack Card Holder. Have a question or want us to do it for you? Give us a call

What you will learn 2. Converting to PDF Format 15 Converting to PS Format 16 Converting to HTML format 17 Saving and Updating documents 19

Format Type Support Thru. vector (with embedded bitmaps)

Special Topics II: Graphical User Interfaces (GUIs)

ELEN E3084: Signals and Systems Lab Lab II: Introduction to Matlab (Part II) and Elementary Signals

Text & Design 2015 Wojciech Piskor

RAD Posters & Preparation Overview. Research Appreciation Day Education Session February 2017

Step-by-Step Guide to. Creating High Resolution Adobe Acrobat PDFs from your Desktop Applications

MAT 343 Laboratory 4 Plotting and computer animation in MATLAB

MATLAB Modul 3. Introduction

Lecture 5 of AMS 200 LaTeX Typesetting, Writing and

Quite Imposing Plus 4 (QI+4)

How To Test Your Code A CS 1371 Homework Guide

File Backup Windows Live Mail And

Creating Interactive PDF Forms

COLLEGE OF EDUCATION FACULTY RESEARCH CENTER. Professional Poster Tutorial

File Preparation for Eagle Print. PLEASE NOTE:If you are an IBM based customer, we can only accept PDF files!

Data Analysis in Geophysics ESCI Class 17. Bob Smalley. More Matlab.

International Clarinet Association Rev. 09/01/2018 The Clarinet Advertising Rates and Specifications

QuarkXPress Server 2015 Known and Resolved Issues. Last updated: 10/13/2015

VHSE - COMPUTERISED OFFICE MANAGEMENT MODULE III - Communication and Publishing Art - PageMaker

COPYRIGHT & TRADEMARKS... I

Ad Creation Guide. Table of Contents

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving MATLAB Tutorial Vb

Check your document s safe margin, bleeds and trim marks before uploading.

RAD Posters & Preparation Overview. Research Appreciation Day Education Session February & March 2018

PDF Specification for IEEE Xplore (Part A-Core Requirements)

How to Create Greeting Cards using LibreOffice Draw

Splash G630 Service Pack 5 Release Notes

Text on a CCR Matrix using the SuperStar Sequence Editor. What we will learn

Modeling and Simulating Social Systems with MATLAB

Designing & Creating your GIS Poster

Brand Style Guide. updated

Mac. Logo Guidelines March 2018

Texas School for the Blind and Visually Impaired. Using The Drawing Tools in Microsoft Word 2007 for Tactile Graphic Production

Budget Exercise for Intermediate Excel

Start by launching Mozilla To start making a web page, go to File -> New -> Composer Page

III-6Exporting Graphics (Windows)

Basic statistical operations

Here is the data collected.

Poster-making 101 for 1 PowerPoint slide

ENED 1090: Engineering Models I Homework Assignment #2 Due: Week of September 16 th at the beginning of your Recitation Section

Phonetics Incorporated

Project #1 Seam Carving

The official magazine of the Association of Anaesthetists

Guidelines for Prepress File Submission

Using MS Publisher. Launch MS Publisher: Start > All Programs > Microsoft Office > Publisher. Setting up Document Size and Orientation


Michael Florrimell. Art Land. Parallel Universe. Artlink Art Land. Artlink Parallel Universe OF AUSTRALIA & ASIA-PACIFIC OF AUSTRALIA & ASIA-PACIFIC

ADJUST TABLE CELLS-ADJUST COLUMN AND ROW WIDTHS

Tracker Design Guidelines

Logo & Icon. Fit Together Logo (color) Transome Logo (black and white) Quick Reference Print Specifications

BUSINESS BUSINESS BUSINESS MEDIA KIT BUSINESS. The Lincoln. Journal. The Lincoln. Journal COVER STORY. Bison Inc. s. The Lincoln. Journal COVER STORY

Hello, Visual Brand Guidelines. ACR Homes

XYZ Mesh. Product. Gray Technical, LLC Copyright Gray Technical All Rights Reserved

A Mini-Manual for GNUPLOT

The official magazine of the Association of Anaesthetists

What is Matlab? A software environment for interactive numerical computations

Getting Started. Chapter 1. How to Get Matlab. 1.1 Before We Begin Matlab to Accompany Lay s Linear Algebra Text

ABBYY FineReader 14. User s Guide ABBYY Production LLC. All rights reserved.

2017 Media Information

Chartered Professional Accountants of British Columbia. Guidelines for the Licensed Use of the CPA Logo (Mark)

MAPLOGIC CORPORATION. GIS Software Solutions. Getting Started. With MapLogic Layout Manager

Welcome to CreateSpace. Please log in, or if you're a new user, create a new account.

Contemporary art quarterly. Themed editions on topics of currency. Reviews and online archive at artlink.com.au

Start > All Programs > OpenGrADS 2.0 > Grads Prompt

40. Sim Module - Common Tools

Transcription:

Page 1 of 5 Exporting Figures for Publication by Ben Hinkle This article describes how to turn figures into publication-ready Encapsulated Postscript (EPS) files using a new MATLAB script called exportfig.m. In the past, getting your plots and graphs into journal articles and professional publications was time consuming and tedious. Generally, what looked good on the screen would often look bad on paper. Exportfig.m was designed to help users specify four key properties of an exported figure: size, color, line widths and font sizes. The following table summarizes the typical problems you might encounter with these properties when exporting. Property Size Color Line widths Font sizes Typical problem when exporting Exported plots are typically too large and need to be scaled down in the document Exported plots typically should be in black and white, grayscale or the CMYK color space Lines in exported plots typically are too thin Text in exported plots is typically the wrong size By using exportfig.m you can avoid these problems with ease. 2003 Issues January 2002 Issues November July May January 2001 Issues November June 2000 Issues December June Archived Articles 1999-1998 Subscribe Now Before we illustrate the use of exportfig.m, let's first plot a sin-wave. Launch MATLAB and execute x=0:.1:20; y=sin(x); plot(x,y); On the screen the plot looks like

Page 2 of 5 Adjust the axis bounds and add a grid with the commands axis([0 20-2 2]); grid on; and adjust the x-y ratio by resizing the window so that the plot looks like Let's use this plot for our publication-ready document. Without using exportfig.m, you would

Page 3 of 5 attempt to export the plot with the command print -deps pic1.eps and include the file "pic1.eps" into our document: Note that we are exporting to an EPS format. We could choose other formats, but EPS is the most common format to include in publication-quality documents. One of the first problems you notice with the above picture is that the aspect ratio is not as it looks on the screen. The plot's aspect ratio is the ratio of the width to the height. When exporting or printing, it is very common to want the exported plot to have the same aspect ratio as the plot on the screen. To fix the aspect ratio of the exported plot we first try to resize the plot in the document:

Page 4 of 5 But now the fonts are unreadable and the linewidths are very thin, though it might not be visible on the screen. Normally to fix this problem we would try setting the PaperPosition property of the figure before exporting as follows set(gcf, 'PaperPosition', [0 0 6 3]); print -deps pic2.eps and export the figure again into the document: As you can see, the fonts look much better, but the aspect ratio is still not quite correct. We can either guess again or compute it exactly from the screen position of the figure. But we would still not have control over the font sizes unless we explicitly set the font sizes of all text objects. Suppose we wanted all our font sizes to be 8 points when we export. We would have to remember the old font sizes, set the new sizes to 8 points, export and set the old values back. These sorts of tedious transformations and computations are exactly what exportfig.m does for you. To export the figure with a width of 6 inches, an aspect ratio the same as on-screen, and text objects with a fixed fontsize of 8 points, we execute the following command exportfig(gcf,'pic3.eps', 'width',6, 'fontmode','fixed', 'fontsize',8);

Page 5 of 5 Exportfig.m requires two parameters followed by a list of optional parameters. The first parameter is the handle to the figure to export. In the example above we are exporting the current figure, so we pass it the result of the get-current -figure command gcf. The second parameter is the name of the file to create. Exportfig can only produce output to a file. After the file parameter there are any number of optional parameter-value pairs. In the example above we passed three optional parameters, width, fontmode and fontsize with corresponding values. For more details about the capabilities of exportfig.m, type help exportfig to read the script?s documentation. News & Notes I Using MathWorks Products For... I MATLAB Based Books I Third-Party Products The MathWorks, Inc. Trademarks Privacy Policy