Effacer les filtres
Effacer les filtres

Why are my plots looking different when builded at an other computer?

2 vues (au cours des 30 derniers jours)
Martin Schregel
Martin Schregel le 21 Oct 2015
Hi everybody,
I am using the following commands to design my MATLAB plots:
name_str = 'name';
fig = figure('Name',name_str,'NumberTitle','off');
plot(mydata,'LineWidth',2)
grid on
title('title');
legend('legend');
xlabel('label');
ylabel('label');
set(findall(gcf,'type','axes'),'fontsize',30);
set(findall(gcf,'type','text'),'fontSize',30);
set(gca,'LineWidth',2);
set(gca,'color','none');
set(fig,'position',[0 0, 1680 1050]);
set(fig,'PaperPositionMode','Auto');
saveas(fig,['G:\Example\Example\','filename'],'epsc');
saveas(fig,['G:\Example\Example\','filename']);
I was hoping, that this code creates always the same style for my figures, but when I use this code at a different computer the figures are getting larger and the fontsize is not the same.
Thank you for your help!

Réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by