Be the first to rate this file! 5 Downloads (last 30 days) File Size: 23.3 KB File ID: #31668
image thumbnail

Publication Quality Plots

by Sourav Chatterjee

 

03 Jun 2011

Creates Publication quality plots, removing white space, making fonts readable,printing in high res.

| Watch this File

File Information
Description

Saving an image from a MATLAB plot causes a number of problems. Fonts are too small, lots of whitespace,low image quality etc.
This addresses all these issues.
after using plot (X,Y), simply call plotpub(h,xl,yl) from the main function.
Required Inputs:
h-figure handle,
 xl,yl-x and y axis labels,
Additionally, you can specify the following optional input arguments:
file: output file name
w_inch: Width of the image in inches.
dpi: desired image resolution (determines the size of the file. There is always a tradeoff between file size and resolution)
life_size: if you need to adjust the magnification at which you display the figure in the document/presentation.
Simple implementation:
x=1:10;
y=2*x;
h=figure;
plot(x,y);
xl='my x-axis';
yl='my y-axis';
plotpub(h,xl,yl);

if you don't specify a filename, it will save a file called 'plotpic.tiff' in the current working directory.

For a fuller implementation, see the mfile sampleplot.m in the zipped folder.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
annotation, article, border, customization, data, figure, font, graph, graphics, physics, plot tools, png, ppi, publication quality, resolution, tiff, whitespace
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us