Border disappear when I use 'print' to save a plot
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!