Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
Abhinav
Abhinav am 14 Mai 2019
Bearbeitet: KSSV am 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.

Antworten (0)

Produkte


Version

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by