- 积分
- 214
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-4-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
最近用2020b版本中stackedplot函数画了一个堆叠图,采用了时间表输入数据,出图以后x轴时间后自动生成了汉字“年”。我尝试了各种办法都无法把这个“年”字去掉,论坛上是否有高手能想想办法。
PS:官方示例里是没有“年”的,但我用官方例子的代码出图也有“年”。
代码如下
clc
clear
load LLH_am_ciq
f1 = figure('Position',[20 20 820 670],'Units','centimeters');
stime = datetime(1958,1,01);
tstep = calmonths(1);
TT_LLh=table2timetable(table(LLH_am_ciq(1,:)',LLH_am_ciq(2,:)',LLH_am_ciq(3,:)',...
LLH_am_ciq(4,:)',LLH_am_ciq(5,:)'),'TimeStep',tstep,'StartTime',stime);
h=stackedplot(TT_LLh,'DisplayLabels',{'SWH','LWH','SH','LH','Total'},...
'FontSize',12);
h.LineProperties(1).Color = 'y';
h.LineProperties(1).LineWidth = 1.2;
h.LineProperties(2).Color = 'g';
h.LineProperties(2).LineWidth = 1.2;
h.LineProperties(3).Color = 'r';
h.LineProperties(3).LineWidth = 1.2;
h.LineProperties(4).Color = 'b';
h.LineProperties(4).LineWidth = 1.2;
h.LineProperties(5).Color = 'k';
h.LineProperties(5).LineWidth = 1.2;
|
|