Relate size letter of Matlab Plot to Latex text
Show older comments
Hello! I was wondering if by any chance do you guys happen to know a more or less straightforward way to let open the size letter of a matlab plot (and why not, font type) in order to be set, later, in the latex document. My current construction of a plot is something like this
plot(tiempo,EE,'m','LineWidth',2)
xlabel('Tiempo $[seg]$','Interpreter','Latex','FontWeight','Bold','FontSize',25);
ylabel('Neutrones $[\frac{1}{cm^2seg}]$','Interpreter','Latex','FontWeight','Bold','FontSize',25);
box off;axis square;
set(gca,'LineWidth',2);
set(gca,'FontSize',16);
set(gca,'FontWeight','Bold');
set(gcf,'color','w');
set(gcf,'papersize',[10,7])
set(gcf,'paperposition',[0,0,10,7])
set(get(gca,'xlabel'),'FontSize', 25,'FontWeight','Bold');
saveas(h,'/path/filename.pdf','pdf')
The idea would be to define some kind of parameter, let0s say in the label, that can then be read in the latex document. If this were possible, in latex one could in time say something like:
\includegraphics[width=.45\columnwidth]{/path/filename.pdf}[parameterSize=10][parameterFont=Arial]
Everything is possible, the question is if it's effort worthy. I'm using pdf because tikz makes the file sooo slow, and for the work I'm doing is no easy to set in advance the amount of data in the plot. I do think however that through a "vectorial" interpretation of the pdf that shouldn't be a real problem.
Any ideas?
Answers (0)
Categories
Find more on Labels and Annotations 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!