How to merge two sets of lat long data in one map?

def plot_path(lat, long, r_lat, r_long):
    fig = go.Figure(go.Scattermapbox(
        name="Path",
        mode="lines",
        lon=long,
        lat=lat,
        marker={'size': 10},
        line=dict(width=4.5, color='blue')))
    
    fig.add_trace(go.Figure(go.Scattermapbox(
        name="Path",
        mode="lines",
        lon=r_long,
        lat=r_lat,
        marker={'size': 10},
        line=dict(width=4.5, color='red'))).data[0])

    lat_center = np.mean(lat)
    long_center = np.mean(long)
    
    
    

    fig.update_layout(mapbox_style="stamen-terrain",
                      mapbox_center_lat=30, mapbox_center_lon=-80)
    fig.update_layout(margin={"r": 0, "t": 0, "l": 0, "b": 0},
                      mapbox={
                          'center': {'lat': lat_center,
                                     'lon': long_center},
                          'zoom': 13})
    fig.show()

I WANT TO MERGE TWO DATA SETS OF LAT LONG IT CODE RUNS BUT DOESN’T SHOW RED ON MAP

Hey @abhinavvv welcome!

Could you add some information? It’ll be very difficutl to help you with the information provided.