Fixplot


Use this function to make plots suitable for publication

function fixplot(xname,yname,ax)
gx=gcf;
gx.Color=[1 1 1];
if nargin<3
ax=gca;
end
ax.FontName='Helvetica';
ax.LineWidth=2;
ax.XColor=[0,0,0];
ax.YColor=[0,0,0];
ax.ZColor=[0,0,0];
try
ax.FontSize=16;
for i=1:size(ax.Children,1)
ax.Children(i).LineWidth=2;
% ax.Children(i).Color=[0 0 0];
end
catch
end
try
xlabel(xname);
ylabel(yname);
catch
end
ax.Position=[0.3607 0.3679 0.2440 0.3300];
box on;

Leave a comment