clc
clear

%

load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\ZHUAN.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\ZX.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\AIR.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\t11.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\t22.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\t33.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\t44.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\t55.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\t66.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\t77.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\t88.mat')
load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\t99.mat')

%

yyaxis left
a=area(ZX,ZHUAN,'linestyle','none')
a.FaceColor = [0.3 0.3 0.3];
hold on;
b=area(ZX,AIR,'linestyle','none')
b.FaceColor = [0.58 0.8 1]
alpha(0.3);
ylim([0 9000]);
xlim([0 2800]);
ylabel('Spindle speed[rpm]','FontSize',12)
xlabel('Time[min]','FontSize',12)
hold off

yyaxis right
plot(ZX,t11,ZX,t22,':','Color',[1,0.58,0.8],LineWidth=1.5);
hold on;
plot(ZX,t33,':.','Color',[0.58,0.8,1],LineWidth=1.5);
hold on;
plot(ZX,t44,'--','Color',[0.53,0.15,0.34],LineWidth=1.5);
hold on;
plot(ZX,t55,'r-+',LineWidth=1.5);
hold on;
plot(ZX,t66,'-*','Color',[1,0.8,0.58],LineWidth=1.5);
hold on;
plot(ZX,t77,':.','Color',[0.8,0.58,1],LineWidth=1.5);
hold on;
plot(ZX,t88,'--','Color',[0.58,1,0.8],LineWidth=1.5);
hold on;
plot(ZX,t99,'b-+',LineWidth=1.5);
ylim([25 39])
ylabel('Temperature[℃]','FontSize',12)
xlabel('Time[min]','FontSize',12)
legend('Spindle speed','Air-conditioning was open','T1','T2','T3','T4','T5','T6','T7','T8','T9')
hold off

%

load('C:\tongbu\BaiduSyncdisk\02PHD\03study\03实验\第一篇论文实验\1.第一次48h\matlab\qitatu\Error.mat')
figure(2)
yyaxis left
a=area(ZX,ZHUAN,'linestyle','none')
a.FaceColor = [0.3 0.3 0.3];
hold on;
b=area(ZX,AIR,'linestyle','none')
b.FaceColor = [0.58 0.8 1]
alpha(0.3);
ylim([0 9000]);
xlim([0 2800]);
ylabel('Spindle speed[rpm]','FontSize',12)
xlabel('Time[min]','FontSize',12)
hold off

yyaxis right
plot(ZX,Error,LineWidth=1.5);
ylim([0 36])
ylabel('Error[μm]','FontSize',12)
xlabel('Time[min]','FontSize',12)
legend('Spindle speed','Air-conditioning was open','X Direction Error')
hold off

%

