X-label cropped when printed to a pdf
1 view (last 30 days)
Show older comments
Hi,
I have to use big fontsize for a paper that I am writing but when I print my figure to a pdf, the bottom part of the x label is cropped. Please see the figure attached. I would like to keep the print function and pdf format because they give a superior quality. Thanks!
h(1)=semilogx(t(92:272),Ei(92:272),'r');
hold on
h(2)=semilogx(t(92:272),Evib(92:272),'m');
[ax,h(3),h(4)]=plotyy(t(92:272),Erot(92:272),t(92:272),Temp(92:272),'semilogx')
set(h(3),'Color','g')
set(h(4),'Color','b')
set(h(4),'LineStyle','-.')
set(ax(1),'XColor','k','YColor','k')
set(ax(2),'XColor','k','YColor','b')
set(ax,'FontSize',21)
set(h,'LineWidth',2)
set(get(ax(1),'Ylabel'),'String','Energy [ev]','FontSize',28)
set(get(ax(2),'Ylabel'),'String','Electron Temperature [K]','FontSize',28)
xlabel('t [s]','FontSize',28,'FontName', 'Times New Roman');
xlabel_h=xlabel('test','fontsize',28);
set(xlabel_h,'position',get(xlabel_h,'position')+[0 0 0]);
legend('Internal Energy','Vibrational Energy','Rotational Energy','Electron Temperature','Location','NorthWest')
ylim([0 5.4]);
NumTicks = 10;
set(gca,'YTick',linspace(L(1),L(2),NumTicks));
print(1,'-dpdf',['N2eNEnergyT',num2str(T),'Tei',num2str(Te),'All.pdf']);
0 Comments
Answers (0)
See Also
Categories
Find more on Large Files and Big Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!