正文
(gca,
'Box'
,
'off'
,...
'TickDir'
,
'out'
,
'TickLength'
, [
.01.01
], ...
'XMinorTick'
,
'on'
,
'YMinorTick'
,
'on'
,...
'XGrid'
,
'off'
,
'YGrid'
,
'off'
, ...
'XColor'
, [
.3.3.3
],
'YColor'
, [
.3.3.3
],...
'YTick'
,
0
:
500
:
2500
, ...
'LineWidth'
,
1
)
%
添加上、右框线
hold
on
XL
=
get
(gca,
'xlim'
); XR
=
XL(
2
);
YL
=
get
(gca,
'ylim'
); YT
=
YL(
2
);
xc
=
get
(gca,
'XColor'
);
yc
=
get
(gca,
'YColor'
);
plot(XL,YT
*
ones(size(XL)),
'color'
, xc,
'LineWidth'
,
1
)
plot(XR
*
ones(size(YL)),YL,
'color'
, yc,
'LineWidth'
,
1
)
%
legend
hLegend
=
legend([hE, hFit, hData, hModel, hCI(
1
)], ...
'Data ({\it\mu} \pm {\it\sigma})'
,
'Fit (C{\itx}^3)'
, ...
'Validation Data'
,
'Model (C{\itx}^3)'
,
'95% CI'
, ...
'Location'
,
'SouthEast'
);
%
设置字体字号
set
(gca,
'FontName'
,
'Helvetica'
)
set
([hTitle, hXLabel, hYLabel, hText],
'FontName'
,
'AvantGarde'
)
set
([hLegend, gca],
'FontSize'
,
8
)
set
([hXLabel, hYLabel, hText],
'FontSize'
,
10
)
set
(hTitle,
'FontSize'
,
12
,
'FontWeight'
,
'bold'
)
%
背景颜色
set
(gcf,
'Color'
,[
111
])
初始数据图绘制完成后,
调用BaseZoom工具
:
%% 添加局部放大
zp = BaseZoom();
zp.plot;
通过鼠标左键框选作图区域
:
鼠标右键确定
后,通过
鼠标左键框选需要放大的区域
:
鼠标右键确定
后,完成局部放大图的绘制。
以上。
绘图桶是指将几种关键的科研绘图资源统统上传到一个群中,大家加入绘图桶后,可以随时随地地下载群中的所有资源
。