Code Snippet: MATLAB Startup Commands
In your startup.m
file, include the following for LaTeX-rendering and more.
% Plot settings
set(groot,'defaulttextinterpreter','latex');
set(groot,'defaultAxesTickLabelInterpreter','latex');
set(groot,'defaultPolarAxesTickLabelInterpreter','latex');
set(groot,'defaultLegendInterpreter','latex');
set(groot,'defaultColorbarTickLabelInterpreter','latex');
set(groot,'defaultAxesFontSize',12);
set(groot,'defaultLineLineWidth',2);
% Plot tools (R2018b)
set(groot,'defaultFigureCreateFcn','addToolbarExplorationButtons(gcf)');
set(groot,'defaultAxesCreateFcn','set(get(gca,''Toolbar''),''Visible'',''off'')');