How to omit white spaces in non standard size matlab figure?

1 view (last 30 days)
I am using matlab R2017a version where I want to plot non standard size two figures in a particular way (see attached code). the problem is when I try to save the image in eps or pdf format then white spaces appear. please suggest a way in which I can generate non standard size plot with no white spaces for research purpose?
x = linspace(-2*pi,2*pi);
y = linspace(0,4*pi);
[X,Y] = meshgrid(x,y);
Z = sin(X)+cos(Y);
h = axes('Position',[0.15,0.15,0.49,0.25]);
h = axes('Position',[0.73,0.15,0.25,0.25]);

Answers (0)


Find more on Images in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!