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

6 vues (au cours des 30 derniers jours)
Abhinav
Abhinav le 14 Mai 2019
Modifié(e) : KSSV le 14 Mai 2019
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.

Réponses (0)

Produits


Version

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by