How to add a little white space around the figures by using "print" command?
Show older comments
I wish add a few of white space around my .eps figure to avoid that overleaf (compiler: pdfLaTex) cuts it on one side as you can see in the following image (zooming):

Original image:

The code that I use to produce the image is:
figure(2)
plot(...
vTime, convangvel(p(vTime),'rad/s','deg/s'),'-', ...
vTime, convangvel(q(vTime),'rad/s','deg/s'),'-', ...
vTime, convangvel(r(vTime),'rad/s','deg/s'),'-','LineWidth',0.7...
);
axis([0 t_fin -2.5 2.5]);
grid minor;
xlabel('{\it t} (s)'); ylabel('(deg/s)');
legend({'{\it p(t)}','{\it q(t)}','{\it r(t)}'},'location','northeast');
set(gcf,'position',[400, 200, 560, 315],'PaperOrientation', 'landscape');
print('-depsc2','-r600',strcat('es5_vel_ang','.eps'));
Can you suggest me how to modify thi code correctly in order to avoid that issue when I import the figure in overleaf?
Accepted Answer
More Answers (0)
Categories
Find more on Printing and Saving 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!

