image thumbnail
from Publication Quality Plots by Sourav Chatterjee
Creates Publication quality plots, removing white space, making fonts readable,printing in high res.

sampleplot.m
clear all
clc
x=1:10:720;
x=x*pi/180;
y1=sin(x);
y2=0.5*cos(x);
xl='Time';
yl='Displacement';
file='sinewave.tiff';

h=figure;
plot(x,y1,'ko-')
hold on
plot(x,y2,'k^-')
xlim([0,2*pi])
plotpub(h,xl,yl);


%Using Optional arguments
%plotpub(h,xl,yl,file)
%plotpub(h,xl,yl,file,3.5)
%plotpub(h,xl,yl,file,3.5,600)
%plotpub(h,xl,yl,file,3.5,600)
%plotpub(h,xl,yl,file,3.5,600,2)

Contact us