![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/490830/image.png)
Unable to save full size image in eps format in matlab?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am using the R2017a version of the matlab. I generate a plot and then when I try to save using print command then in the output file there are some white spaces appear. How I will get the full size image as in the matlab figure window as well as the output file? I am writing below the code which I am trying
set(gcf, 'Position', get(0, 'Screensize'));
h = axes('Position',[0.15,0.15,0.5,0.6]);
contour(h,z0,U1,merit_psd,[0.95,0.95],'k-','LineWidth',3);
print(1,'-depsc2','filename.eps');
2 Kommentare
Matt Gaidica
am 17 Jan. 2021
Bearbeitet: Matt Gaidica
am 17 Jan. 2021
It would help to include an image of the issue and data so we can replicate it. I don't have any 'white spaces' for the following code:
x = linspace(-2*pi,2*pi);
y = linspace(0,4*pi);
[X,Y] = meshgrid(x,y);
Z = sin(X)+cos(Y);
contour(X,Y,Z)
print(1,'-depsc2','filename.eps');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/490830/image.png)
Antworten (0)
Siehe auch
Kategorien
Mehr zu Printing and Saving finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!