代码如下:
clc;
close all;
Fontsize = 10.5;
LineWidth = 1.5;
TickLength = [0.01,0.035];
GridColor = [0.85,0.85,0.85]; %[0.85,0.85,0.85];
FANWEI = [1,5,0,90]; %坐标范围
f1 = figure(1);
f1.Visible = 'on';
f1.Units = 'centimeters';
f1.Position = [15 5 21 10];
f1.Color = 'w';
f1.NumberTitle = 'off';
f1.Name = 'name';
f1.Resize = 'off';
ax1 = axes(f1);
ax1.Box = 'off';
ax1.Units = 'normalized';
ax1.Position = [0.06 0.15 0.86/3 0.8];
ax1.PositionConstraint = 'innerposition';
ax1.Visible = 'on';
ax1.NextPlot = 'add';
ax1.Color= 'w';
ax1.TickDir = 'in';
ax1.FontUnits = 'points';
ax1.FontSize = Fontsize;
ax1.LineWidth = LineWidth;
ax1.FontName = 'Times New Roman';
ax1.FontWeight = 'bold';
ax1.TitleFontSizeMultiplier = 1;
ax1.LabelFontSi