Personally, I use MATLAB to code for my simulations, save results as .txt or .csv files, and print figures in .eps format for LaTeX. It is quite tricky to generate a nice scientific figure. There are many things you need to think about, such as the type of the font, the font size, the line width, the figure size, the format of the figure, etc. To save some time and keep all your figures in the same format, I suggest creating a MATLAB setting file for all your figures. And, this post is about how to make it properly. Here we go.
My customary MATLAB file for figures is as the following:
% Set the default font type
As you can see from the code, the font type is set as New Time Romance, which is the routine font for scientific journals. The font size is 16 pt, which is normally scaled properly for the two-column format. The marker is sized to 8 pt and the line width is 1.5 pt. I turn on the grid as default, because my plots are line charts. I use LaTeX as the default text interpreter. In MATLAB, the default interpreter is TeX. The LaTeX interpreter makers the labels, legends, and captions look better. I also added the default MATLAB colours in the code. Instead of pure blue or red, these colours look nicer in figures, I feel.
I put this file, which is named as
JL_figure_set.m in my default MATLAB path. When I need to plot something, then I run it using
That is it.