✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

How to make colorbar log-scale?

def plot(cps):
    wing_visual = np.hstack((wing['x'],wing['y'],wing['z'],cps))
    df_wing_visual = pd.DataFrame(wing_visual, columns=['x','y','z','cp'])

    fig = go.Figure(data=[go.Scatter3d(
        x=df_wing_visual['x'],
        y=df_wing_visual['y'],
        z=df_wing_visual['z'],
        mode='markers',
        marker=dict(
            size=1,
            color=df_wing_visual['cp'],                # set color to an array/list of desired values
            colorscale='Jet',   # choose a colorscale
            showscale=True,
            opacity=0.8, 
            cmin=-2.5, cmax=1.5
        )
    )],
        layout=go.Layout(
                 scene=dict(
                     aspectmode='data',
             ),

        )
                   )

    # tight layout
    fig.update_layout(margin=dict(l=0, r=0, b=0, t=0))
    fig.show()

How could I make the colorbar log scale?