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

1 回表示 (過去 30 日間)
Abhik Saha
Abhik Saha 2021 年 1 月 22 日
編集済み: Abhik Saha 2021 年 1 月 22 日
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');

回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by