# pylint: disable=missing-docstring
# pylint: disable=invalid-name

# import numpy as np
import matplotlib.pyplot as plt

from evaluation.plot_design import PlotDesign

data9 = {
    1: 'D:/GitHub/thesis/Models/HighSeismic 4Floor 6M/Conservative/20190614 154022 Cut 2.xlsx',
    2: 'D:/GitHub/thesis/Models/HighSeismic 4Floor 9M/20190614 154041 Cut 2.xlsx',
    3: 'D:/GitHub/thesis/Models/HighSeismic 4Floor 12M/20190614 154055 Cut 2.xlsx',
    4: 'D:/GitHub/thesis/Models/MidSeismic 4Floor 6M/20190614 154236 Cut 2.xlsx',
    5: 'D:/GitHub/thesis/Models/MidSeismic 4Floor 9M/20190614 154307 Cut 2.xlsx',
    6: 'D:/GitHub/thesis/Models/MidSeismic 4Floor 12M/20190614 154334 Cut 2.xlsx',
    7: 'D:/GitHub/thesis/Models/LowSeismic 4Floor 6M/20190614 154117 Cut 2.xlsx',
    8: 'D:/GitHub/thesis/Models/LowSeismic 4Floor 9M/20190614 154143 Cut 2.xlsx',
    9: 'D:/GitHub/thesis/Models/LowSeismic 4Floor 12M/20190615 103351 Cut 2.xlsx'
}

data2 = {
    1: 'D:/GitHub/thesis/Models/MidSeismic 12Floor 9M/20190614 170742 Cut 2.xlsx',
    2: 'D:/GitHub/thesis/Models/MidSeismic 20Floor 9M/20190614 170819 Cut 2.xlsx'
}


def etabs_to_addedld_sol(data):
    plt.figure()

    data.zero_line()
    data.min_line()

    line1 = data.etabs_demand_line('blue')
    line2 = data.rebar_number_line('red')

    line3 = data.add_ld_line('green', label='Consider $l_d$')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Demand-Allowed-Cut', 'Consider $l_d$'),
        loc='best'
    )
    plt.title('Consider Ld Demand')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def v_workflow(data):
    plt.figure()
    data.zero_line()
    data.seismic_line()
    data.v_min_line()

    line1 = data.etabs_v_demand_line('blue')
    line2 = data.v_consider_vc_demand_line('red')

    line3 = data.v_rabar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('$A_v$/s (cm)')
    plt.legend(
        (line1, line2, line3),
        ('$V_u$', 'Consider $V_c$ Demand', 'Multi-Cut'),
        loc='best'
    )
    plt.title('Multi-Cut Workflow')
    plt.grid(True, which='both', linestyle=':')


def v_multicut_compare_convention(data):
    plt.figure()
    data.zero_line()
    data.seismic_line()
    data.v_min_line()
    data.boundary_line(0.25)

    line1 = data.v_consider_vc_demand_line('blue')

    line2 = data.v_rabar_line('red', '傳統斷筋')
    line3 = data.v_rabar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('$A_v$/s (cm)')
    plt.legend(
        (line1, line2, line3),
        ('Consider $V_c$ Demand', 'Convention', 'Multi-Cut'),
        loc='best'
    )
    plt.title('Multi-Cut vs Convention')
    plt.grid(True, which='both', linestyle=':')


def convention_flow(data):
    plt.figure()

    data.zero_line()
    data.min_line()
    data.Convention_boundary_line()

    line1 = data.etabs_demand_line('blue')

    line2 = data.rebar_line('green', '傳統斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2),
        ('Demand', 'Convention'),
        loc='best'
    )
    plt.title('Convention Workflow')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def multicut_flow(data):
    plt.figure()
    data.zero_line()

    data.min_line()
    data.boundary_line(0.1)
    data.boundary_line(0.45)

    line1 = data.etabs_demand_line('blue')
    # line2 = data.rebar_number_line('red')

    line2 = data.add_ld_line('red')

    line3 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Consider $l_d$', 'Multi-Cut'),
        loc='best',
    )
    plt.title('Multi-Cut Workflow')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def multicut_compare_convention(data):
    plt.figure()
    data.zero_line()
    # data.min_line()

    line1 = data.etabs_demand_line('blue')
    line4 = data.add_ld_line('orange')

    line2 = data.rebar_line('red', '傳統斷筋')
    line3 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line4, line2, line3),
        ('Demand', 'Consider Ld', 'Convention', 'Multi-Cut'),
        loc='best'
    )
    plt.title('Multi-Cut vs Convention')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p03():
    data = PlotDesign(data9[9])
    data.put_index(0)

    plt.figure()
    data.zero_line()
    # data.boundary_line(1/5)
    # data.boundary_line(1/3)

    line1 = data.rebar_line('red', '傳統斷筋')
    line2 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2),
        ('Convention', 'Optimization'),
        loc='upper center'
    )
    plt.title('Optimization vs Convention')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p04():
    data = PlotDesign(data9[9])
    data.put_index(0)

    plt.figure()
    data.zero_line()
    # data.min_line()
    data.boundary_line(1/3)
    data.boundary_line(1/5)

    line1 = data.etabs_demand_line('blue')

    line2 = data.rebar_line('green', '傳統斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2),
        ('Demand', 'Design'),
        loc='upper center'
    )
    plt.title('Convention Workflow')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p05():
    data = PlotDesign(
        'D:/GitHub/thesis/LinearCut/data/20190616 072555 Cut 2 欣詮.xlsx')
    data.put_index(1140)

    plt.figure()
    data.zero_line()
    data.boundary_line(1/3)

    line1 = data.etabs_demand_line('blue')

    line2 = data.rebar_line('green', '傳統斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2),
        ('Demand', 'Design'),
        loc='upper right'
    )
    plt.title('Convention Workflow')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p08():
    data = PlotDesign(data9[9])
    data.put_index(0)

    plt.figure(figsize=(6.4, 2.4))
    data.zero_line()
    data.min_line(2, bot=False)

    data.etabs_demand_line('blue', bot=False)

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.title('Demand')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p09():
    data = PlotDesign(data9[9])
    data.put_index(0)

    plt.figure()
    data.zero_line()
    data.min_line(2)

    line1 = data.etabs_demand_line('blue')
    line2 = data.rebar_number_line('red')
    # line3 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.title('Optimization Workflow')
    plt.legend(
        (line1, line2),
        ('Demand', 'Demand-Allowed-Cut-Point'),
        loc='upper center'
    )
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

    plt.figure()
    data.zero_line()
    data.min_line(2)

    line1 = data.etabs_demand_line('blue')
    line2 = data.rebar_number_line('red')
    line3 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.title('Optimization Workflow')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Demand-Allowed-Cut-Point', 'Design'),
        loc='upper center'
    )
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p10():
    data = PlotDesign(
        'D:/GitHub/thesis/Models/LowSeismic 4Floor 12M/20190615 104919 Cut 2 Procedure B.xlsx')
    data.put_index(0)

    plt.figure()
    data.zero_line()
    data.min_line(2)

    line1 = data.etabs_demand_line('blue')
    line2 = data.rebar_number_line('red')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.title('Optimization Workflow')
    plt.legend(
        (line1, line2),
        ('Demand', 'Demand-Allowed-Cut-Point'),
        loc='upper center'
    )
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

    plt.figure()
    data.zero_line()
    data.min_line(2)

    line1 = data.etabs_demand_line('blue')

    line2 = data.add_ld_line('red')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2),
        ('Demand', 'Consider $l_d$, max(d, 12$d_b$)'),
        loc='best',
    )
    plt.title('Optimization Workflow')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

    plt.figure()
    data.zero_line()
    data.min_line(2)

    line1 = data.etabs_demand_line('blue')

    line2 = data.add_ld_line('red')

    line3 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Consider $l_d$, max(d, 12$d_b$)', 'Design'),
        loc='best',
    )
    plt.title('Optimization Workflow')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p11():
    data = PlotDesign(
        'D:/GitHub/thesis/Models/HighSeismic 4Floor 6M/Conservative/20190614 221325 Cut 29 無退縮.xlsx')
    data.put_index(4)
    plt.figure()
    data.zero_line()

    data.min_line(10)

    line1 = data.etabs_demand_line('blue')

    line2 = data.add_ld_line('red')

    line3 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Consider $l_d$, max(d, 12$d_b$)', 'Multi-Cut'),
        loc='center left',
    )
    plt.title('Multi-Cut Workflow')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

    data = PlotDesign(
        'D:/GitHub/thesis/Models/HighSeismic 4Floor 6M/Conservative/20190614 203005 Cut 29.xlsx')
    data.put_index(4)
    plt.figure()
    data.zero_line()

    data.min_line(10)

    line1 = data.etabs_demand_line('blue')

    line2 = data.add_ld_line('red')

    line3 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Consider $l_d$, max(d, 12$d_b$)', 'Multi-Cut'),
        loc='center left',
    )
    plt.title('Multi-Cut Workflow')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p14():
    data = PlotDesign(
        'D:/GitHub/thesis/Models/HighSeismic 4Floor 6M/Conservative/20190621 152205 Cut 2.xlsx')
    data.put_index(0)

    plt.figure()
    # data.zero_line()

    # df = data.etabs_design_on_index()
    # fyt = df['Fy'].iloc[0]
    # height = df['H'].iloc[0]
    # plt.plot(
    #     df['StnLoc'], df['VRebar'] * fyt * height,
    #     color=data.c['blue'], linewidth=data.linewidth
    # )
    plt.plot(
        [0.3, 3, 5.7], [38, 28, 38],
        color=data.c['blue'], linewidth=data.linewidth
    )


    plt.xlim(0, 6)
    plt.ylim(0, 50)
    plt.xlabel('Length (m)')
    plt.ylabel('Shear (ton)')
    plt.title('Design Shear')
    plt.grid(True, which='both', linestyle=':')


def p15():
    data = PlotDesign(data9[9])
    data.put_index(0)

    plt.figure()
    data.zero_line()
    data.seismic_line()
    data.v_min_line()

    line2 = data.v_consider_vc_demand_line('red')
    line1 = data.etabs_v_demand_line('blue')

    plt.xlabel('Length (m)')
    plt.ylabel('$A_v$/s (cm)')
    plt.legend(
        (line1, line2),
        ('$V_u$ Demand', 'Consider $V_c$ Demand'),
        loc='upper center'
    )
    plt.title('Shear Reinforcement')
    plt.grid(True, which='both', linestyle=':')


def p16():
    data = PlotDesign(data9[9])
    data.put_index(0)

    plt.figure()
    data.zero_line()
    data.seismic_line()
    data.v_min_line()
    data.boundary_line(0.25)

    line1 = data.etabs_v_demand_line('blue')
    line2 = data.v_rabar_line('red', '傳統斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('$A_v$/s (cm)')
    plt.legend(
        (line1, line2),
        ('$V_u$ Demand', 'Convention'),
        loc='upper center'
    )
    plt.title('Optimization vs Convention')
    plt.grid(True, which='both', linestyle=':')

    plt.figure()
    data.zero_line()
    data.seismic_line()
    data.v_min_line()
    data.boundary_line(0.25)

    line1 = data.etabs_v_demand_line('blue')
    line2 = data.v_rabar_line('red', '傳統斷筋')
    line3 = data.v_rabar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('$A_v$/s (cm)')
    plt.legend(
        (line1, line2, line3),
        ('$V_u$ Demand', 'Convention', 'Optimization'),
        loc='upper center'
    )
    plt.title('Optimization vs Convention')
    plt.grid(True, which='both', linestyle=':')


def p18():
    data = PlotDesign(data2[2])
    data.put_index(160)

    plt.figure()
    data.zero_line()
    # data.min_line(10)

    # line1 = data.etabs_demand_line('blue')
    # line2 = data.add_ld_line('red')
    line2 = data.rebar_line('red', '傳統斷筋')
    line3 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line2, line3),
        ('Convention', 'Optimization'),
        loc='upper center',
    )
    plt.title('Optimization vs Convention')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p19():
    data = PlotDesign(
        'D:/GitHub/thesis/Models/LowSeismic 4Floor 12M/20190615 104919 Cut 2 Procedure B.xlsx')
    data.put_index(0)

    plt.figure()
    data.zero_line()
    data.min_line(2)

    line1 = data.etabs_demand_line('blue')

    line2 = data.add_ld_line('orange')

    line3 = data.rebar_line('red', '傳統斷筋')
    line4 = data.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2, line3, line4),
        ('Demand', 'Consider $l_d$, max(d, 12$d_b$)', 'Convention', 'Optimization'),
        loc='lower left',
    )
    plt.title('Optimization Workflow')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p20():
    data = PlotDesign(data9[9])
    data.put_index(0)

    plt.figure()
    data.zero_line()
    data.min_line(2)

    data.etabs_demand_line('blue')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.title('Moment Demand')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

    data = PlotDesign(data9[1])
    data.put_index(44)

    plt.figure()
    data.zero_line()
    data.min_line(6)

    data.etabs_demand_line('blue')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.title('Moment Demand')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()


def p23():
    data = PlotDesign(data9[9])
    data.put_index(0)

    plt.figure()
    data.zero_line()
    data.min_line(2)

    line1 = data.etabs_demand_line('blue')
    line2 = data.add_ld_line('red')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.title('Moment Demand')
    plt.grid(True, which='both', linestyle=':')
    plt.legend(
        (line1, line2),
        ('Demand', 'Consider $l_d$, max(d, 12$d_b$)'),
        loc='upper center',
    )
    plt.tight_layout()

    data = PlotDesign(data9[1])
    data.put_index(44)

    plt.figure()
    data.zero_line()
    data.min_line(6)

    line1 = data.etabs_demand_line('blue')
    line2 = data.add_ld_line('red')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.title('Moment Demand')
    plt.grid(True, which='both', linestyle=':')
    plt.legend(
        (line1, line2),
        ('Demand', 'Consider $l_d$, max(d, 12$d_b$)'),
        loc='upper center',
    )
    plt.tight_layout()


def p27():
    data1 = PlotDesign(data9[2])
    data3 = PlotDesign(data9[5])

    data1.put_index(24)
    data3.put_index(24)

    plt.figure()
    data1.zero_line()

    line1 = data1.etabs_demand_line('blue', top=False)
    line2 = data1.rebar_line('red', '傳統斷筋', top=False)
    line3 = data1.rebar_line('green', '多點斷筋', top=False)

    plt.ylabel('As ($cm^2$)')
    plt.xlabel('Length (m)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Convention', 'Optimization'),
        loc='upper left'
    )
    plt.title('Small Gravity')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

    plt.figure()
    data3.zero_line()

    line1 = data3.etabs_demand_line('blue', top=False)
    line2 = data3.rebar_line('red', '傳統斷筋', top=False)
    line3 = data3.rebar_line('green', '多點斷筋', top=False)

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Convention', 'Optimization'),
        loc='upper left'
    )
    plt.title('Large Gravity')
    plt.grid(True, which='both', linestyle=':')

    plt.tight_layout()

def p28():
    data1 = PlotDesign(data9[3])
    data3 = PlotDesign(data9[9])

    data1.put_index(0)
    data3.put_index(0)

    plt.figure()
    data1.zero_line()

    line1 = data1.etabs_demand_line('blue', top=False)
    line2 = data1.rebar_line('red', '傳統斷筋', top=False)
    line3 = data1.rebar_line('green', '多點斷筋', top=False)

    plt.ylabel('As ($cm^2$)')
    plt.xlabel('Length (m)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Convention', 'Optimization'),
        loc='upper left'
    )
    plt.title('Small Gravity')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

    plt.figure()
    data3.zero_line()

    line1 = data3.etabs_demand_line('blue', top=False)
    line2 = data3.rebar_line('red', '傳統斷筋', top=False)
    line3 = data3.rebar_line('green', '多點斷筋', top=False)

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Convention', 'Optimization'),
        loc='upper left'
    )
    plt.title('Large Gravity')
    plt.grid(True, which='both', linestyle=':')

    plt.tight_layout()


def p31():
    data1 = PlotDesign(data9[4])
    data3 = PlotDesign('D:/GitHub/thesis/Models/MidSeismic 4Floor 6M/20190616 071644 Cut 2 #10.xlsx')

    data1.put_index(12)
    data3.put_index(12)

    plt.figure()
    data1.zero_line()
    data1.min_line()

    line1 = data1.etabs_demand_line('blue')
    line2 = data1.rebar_line('red', '傳統斷筋')
    line3 = data1.rebar_line('green', '多點斷筋')

    plt.ylabel('As ($cm^2$)')
    plt.xlabel('Length (m)')
    plt.ylim(-25, 45)
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Convention', 'Optimization'),
        loc='center right'
    )
    plt.title('#8 Reinforcement')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

    plt.figure()
    data3.zero_line()
    data3.min_line()

    line1 = data3.etabs_demand_line('blue')
    line2 = data3.rebar_line('red', '傳統斷筋')
    line3 = data3.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.ylim(-25, 45)
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Convention', 'Optimization'),
        loc='center right'
    )
    plt.title('#10 Reinforcement')
    plt.grid(True, which='both', linestyle=':')

    plt.tight_layout()

def p33():
    data3 = PlotDesign(data2[2])

    data3.put_index(160)

    plt.figure()
    data3.zero_line()
    data3.min_line(9)
    data3.boundary_line(1/3)

    line1 = data3.etabs_demand_line('blue')
    line2 = data3.rebar_line('red', '傳統斷筋')
    line3 = data3.rebar_line('green', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2, line3),
        ('Demand', 'Convention', 'Optimization'),
        loc='upper left'
    )
    plt.title('20 Stories 8FB2 B80X100')
    plt.grid(True, which='both', linestyle=':')

    plt.tight_layout()

def p43():
    data = PlotDesign(data9[9])
    data.put_index(0)

    plt.figure()
    data.zero_line()

    line1 = data.rebar_line('red', '傳統斷筋')
    line2 = data.rebar_line('gray', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.legend(
        (line1, line2),
        ('Convention', 'Optimization'),
        loc='best'
    )
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

    plt.figure()
    data.zero_line()

    data.rebar_line('red', '傳統斷筋')
    data.rebar_line('gray', '多點斷筋')

    plt.xlabel('Length (m)')
    plt.ylabel('As ($cm^2$)')
    plt.grid(True, which='both', linestyle=':')
    plt.tight_layout()

def main():
    """
    test
    """
    p33()

    # data = PlotDesign(data9[1])

    # for index in range(0, data.design.get_len(), 4):
        # data.put_index(index)
        # df = data.etabs_design_on_index()
        # df['StnLoc'].min() + df['StnLoc'].iloc[0]

        # plt.figure()
        # data.zero_line()
        # # data.min_line()

        # line1 = data.etabs_demand_line('blue')
        # line4 = data.add_ld_line('orange')

        # line2 = data.rebar_line('red', '傳統斷筋')
        # line3 = data.rebar_line('green', '多點斷筋')

        # plt.xlabel('Length (m)')
        # plt.ylabel('As ($cm^2$)')
        # plt.legend(
        #     (line1, line4, line2, line3),
        #     ('Demand', 'Consider Ld', 'Convention', 'Multi-Cut'),
        #     loc='best'
        # )
        # plt.title('Multi-Cut vs Convention')
        # plt.grid(True, which='both', linestyle=':')
        # plt.tight_layout()

    # etabs_to_addedld_sol(data)
    # convention_flow(data)
    # multicut_flow(data)
        # multicut_compare_convention(data)

    # v_workflow(data)
    # v_multicut_compare_convention(data)

    # data.put_index(0)

    # etabs_to_addedld_sol(data)
    # convention_flow(data)
    # multicut_flow(data)
    # multicut_compare_convention(data)

    # v_workflow(data)
    # v_multicut_compare_convention(data)

    # to_excel_orderby_effect(
    #     data,
    #     'D:/GitHub/thesis/LinearCut/data/20190616 072555 Cut 2 欣詮'
    # )

    plt.show()


if __name__ == "__main__":
    main()
