names={'H1:OMC-DCPD_SUM_OUT_DQ'
    'H1:OMC-DCPD_A_OUT_DQ'
    'H1:OMC-DCPD_B_OUT_DQ'
    'H1:SUS-SR2_M1_OPTICALIGN_P_OFFSET'
    'H1:SUS-SR2_M1_OPTICALIGN_Y_OFFSET'
    'H1:SUS-SR3_M1_OPTICALIGN_P_OFFSET'
    'H1:SUS-SR3_M1_OPTICALIGN_Y_OFFSET'};

figure(1)
% subplot(2,1,1)
% plot(a(4,:),a(1,:),'r.','LineWidth',1.75)
title('SR2 PITCH')
% subplot(2,1,2)
hold on
plot(a(4,1:25),a(2,1:25),'mx','LineWidth',2,'MarkerSize',10)
plot(a(4,25:40),a(2,25:40),'gx','LineWidth',2,'MarkerSize',10)
plot(a(4,40:60),a(2,40:60),'bx','LineWidth',2,'MarkerSize',10)
plot(a(4,61:89),a(2,61:89),'ro','LineWidth',2,'MarkerSize',10)
plot(a(4,90:end),a(2,90:end),'kv','LineWidth',2,'MarkerSize',10)
xlabel('H1:SUS-SR2\_M1\_OPTICALIGN\_P\_OFFSET')
ylabel('PD output')
%legend('H1:OMC-DCPD\_SUM\_OUT\_DQ','H1:OMC-DCPD\_A\_OUT\_DQ','H1:OMC-DCPD\_B\_OUT\_DQ')

hold off

figure(2)
% subplot(2,1,1)
% plot(a(5,:),a(1,:),'r.','LineWidth',1.75)
title('SR2 YAW')
% subplot(2,1,2)
hold on
plot(a(5,1:25),a(2,1:25),'mx','LineWidth',2,'MarkerSize',10)
plot(a(5,25:40),a(2,25:40),'gx','LineWidth',2,'MarkerSize',10)
plot(a(5,40:60),a(2,40:60),'bx','LineWidth',2,'MarkerSize',10)
plot(a(5,61:89),a(2,61:89),'ro','LineWidth',2,'MarkerSize',10)
plot(a(5,90:end),a(2,90:end),'kv','LineWidth',2,'MarkerSize',10)
xlabel('H1:SUS-SR2\_M1\_OPTICALIGN\_Y\_OFFSET')
ylabel('PD output')
%legend('H1:OMC-DCPD\_SUM\_OUT\_DQ','H1:OMC-DCPD\_A\_OUT\_DQ','H1:OMC-DCPD\_B\_OUT\_DQ')

hold off

figure(3)
% subplot(2,1,1)
% plot(a(6,:),a(1,:),'r.','LineWidth',1.75)
title('SR3 PITCH')
hold on
% subplot(2,1,2)
plot(a(6,1:25),a(2,1:25),'mx','LineWidth',2,'MarkerSize',10)
plot(a(6,25:40),a(2,25:40),'gx','LineWidth',2,'MarkerSize',10)
plot(a(6,40:60),a(2,40:60),'bx','LineWidth',2,'MarkerSize',10)
plot(a(6,61:89),a(2,61:89),'ro','LineWidth',2,'MarkerSize',10)
plot(a(6,90:end),a(2,90:end),'kv','LineWidth',2,'MarkerSize',10)
xlabel('H1:SUS-SR3\_M1\_OPTICALIGN\_P\_OFFSET')
ylabel('PD output')
hold on
%legend('H1:OMC-DCPD\_SUM\_OUT\_DQ','H1:OMC-DCPD\_A\_OUT\_DQ','H1:OMC-DCPD\_B\_OUT\_DQ')

figure(4)
% subplot(2,1,1)
% plot(a(7,:),a(1,:),'r.','LineWidth',1.75)
title('SR3 YAW')
% subplot(2,1,2)
hold on
plot(a(7,1:25),a(2,1:25),'mx','LineWidth',2,'MarkerSize',10)
plot(a(7,25:40),a(2,25:40),'gx','LineWidth',2,'MarkerSize',10)
plot(a(7,40:60),a(2,40:60),'bx','LineWidth',2,'MarkerSize',10)
plot(a(7,61:89),a(2,61:89),'ro','LineWidth',2,'MarkerSize',10)
plot(a(7,90:end),a(2,90:end),'kv','LineWidth',2,'MarkerSize',10)
xlabel('H1:SUS-SR3\_M1\_OPTICALIGN\_Y\_OFFSET')
ylabel('PD output')
%legend('H1:OMC-DCPD\_SUM\_OUT\_DQ','H1:OMC-DCPD\_A\_OUT\_DQ','H1:OMC-DCPD\_B\_OUT\_DQ')

% figure(1)
% % subplot(2,1,2)
% hold on
% ylim([7e-3 8e-3])
% plot(a(4,82:end),a(2,82:end),'gx','LineWidth',2,'MarkerSize',10)
% plot(a(4,82:end),a(3,82:end),'c+','LineWidth',1.75)
% hold off






