Border disappear when I use 'print' to save a plot

조회 수: 1 (최근 30일)
Abhinav
Abhinav 2019년 5월 14일
편집: KSSV 2019년 5월 14일
I am using the following code to create 4 subplots:
labels={'reliability','resilience','vulnerability','watershed health'};
xlims=[0.35 0.6;0.30 0.6;0.52 0.60;0.35 0.60];
box('on');
box.linewidth=2;
for i=1:4
subplot(2,2,i)
histf(final_data_wse(:,i),'FaceAlpha',0.6);
w=datasample(final_data_se(:,i),10000,'replace',false);
hold on
histf(w,'FaceAlpha',0.3);
set(gca,'fontsize',18,'fontname','arial',...
'xlim',[xlims(i,1) xlims(i,2)],'Ytick',[],box)
xlabel(labels{i},'fontsize',20,'fontname','arial');
% ylabel('count','fontsize',12,'fontname','arial')
end
When I use 'print' function to save a MATLAB plot, the right borders disapper from each subplot, as shown in the attachment.
Please let me what is the fix to this problem.
Note: I have dowloaded 'histf' function from MATLAB CENTRAL.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

태그

제품


릴리스

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by