def __addCPTraces(cpTrajData: pd.DataFrame, config: dict):
    traces = []
    name = config['carbon_price_config']['name']
    colour = config['carbon_price_config']['colour']
    traces.append(go.Scatter(name=name, legendgroup=1, mode='lines', x=cpTrajData['year'], y=cpTrajData['CP'], line_color=colour, line_width=config['global']['lw_thin'], showlegend=True, hovertemplate=f'<b>{name}</b><br>Time: %{{x:.2f}}<br>Carbon price: %{{y:.2f}}<extra></extra>'))
    data_x = cpTrajData['year']
    data_yu = (cpTrajData['CP'] + cpTrajData['CP_u'])
    data_yl = (cpTrajData['CP'] - cpTrajData['CP_l'])
    errorBand = go.Scatter(name='Uncertainty Range', legendgroup=1, x=pd.concat([data_x, data_x[::(- 1)]], ignore_index=True), y=pd.concat([data_yl, data_yu[::(- 1)]], ignore_index=True), mode='lines', marker=dict(color=colour), fillcolor='rgba({}, {}, {}, 0.1)'.format(*hex_to_rgb(colour)), fill='toself', line=dict(width=config['global']['lw_ultrathin']), showlegend=False, hoverinfo='skip')
    traces.append(errorBand)
    return traces
def __addCPTraces(cpTrajData: pd.DataFrame, config: dict):
    traces = []
    name = config['carbon_price_config']['name']
    colour = config['carbon_price_config']['colour']
    traces.append(go.Scatter(name=name, legendgroup=1, mode='lines', x=cpTrajData['year'], y=cpTrajData['CP'], line_color=colour, line_width=config['global']['lw_thin'], showlegend=True, hovertemplate=f'<b>{name}</b><br>Time: %{{x:.2f}}<br>Carbon price: %{{y:.2f}}<extra></extra>'))
    data_x = cpTrajData['year']
    data_yu = (cpTrajData['CP'] + cpTrajData['CP_u'])
    data_yl = (cpTrajData['CP'] - cpTrajData['CP_l'])
    errorBand = go.Scatter(name='Uncertainty Range', legendgroup=1, x=pd.concat([data_x, data_x[::(- 1)]], ignore_index=True), y=pd.concat([data_yl, data_yu[::(- 1)]], ignore_index=True), mode='lines', marker=dict(color=colour), fillcolor='rgba({}, {}, {}, 0.1)'.format(*hex_to_rgb(colour)), fill='toself', line=dict(width=config['global']['lw_ultrathin']), showlegend=False, hoverinfo='skip')
    traces.append(errorBand)
    return traces