필터 지우기
필터 지우기

How to print full size figure using print command?

조회 수: 4 (최근 30일)
Abhik Saha
Abhik Saha 2021년 1월 14일
댓글: Walter Roberson 2021년 1월 14일
I am trying to plot a figure but when i print the figure the figure does not show on full screen. i am attaching the code
which i am trying. Please help me regarding this.
h = axes('Position',[0.15,0.15,0.49,0.25]);
colormap(bone());
imagesc(h,t,ezgrid,edens-mean(edens,2));
set(gca,'FontSize',12,'YDir','normal','XLim',[0,0.1]);
xlabel('time');
ylabel('position [L]');
h = axes('Position',[0.73,0.15,0.25,0.25]);
%plot(h,z/z(1),Jtot/max(abs(Jtot)),'LineWidth',2,z(1)/z(1),Jtot(1)/max(abs(Jtot)),'bo','MarkerFaceColor','b');
plot(h,z/z(1),Jtot/max(abs(Jtot)),'LineWidth',2);
hold on
plot(z(1)/z(1),Jtot(1)/max(abs(Jtot)),'bo','MarkerFaceColor','b')
set(gca,'dataaspectratio',[1,1,1],'FontSize',12,'XLim',1.02*[-1,1],'YLim',1.02*[-1,1]);
xlabel('z/z_0');
ylabel('J/J_{max}');
disp(['Initial imabalance: ',num2str(z(1))]);
print(1,'-depsc2',['Fig_dens_Jz_',num2str(U1/gN),'U1_',num2str(Uoffset/gN),'Uoff.eps']);

채택된 답변

Walter Roberson
Walter Roberson 2021년 1월 14일
print() uses the figure PaperSize and PaperPosition properties to decide what size to output.
  댓글 수: 4
Abhik Saha
Abhik Saha 2021년 1월 14일
Could you please tell me exact command line for that?
Walter Roberson
Walter Roberson 2021년 1월 14일
See the options listed in the commetns for export_fig at https://www.mathworks.com/matlabcentral/fileexchange/23629-export_fig
Notice, for example, that the default for export_fig is to not use PaperSize

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by