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

1 visualización (últimos 30 días)
Abhik Saha
Abhik Saha el 22 de En. de 2021
Editada: Abhik Saha el 22 de En. de 2021
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);
Z1=sin(X)+cos(Y);
h = axes('Position',[0.15,0.15,0.49,0.25]);
contour(h,X,Y,Z)
h = axes('Position',[0.73,0.15,0.25,0.25]);
contour(h,X,Y,Z1)
print(1,'-dpdf','filename.pdf');

Respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by