Hi!
I have a dataframe with 13530x5 points, and I want to display in a scatter matrix with the SPLOM fonction.
Each point has another property that I want to use for coloring (in a vector sized of 67650).
However when give this vector in “marker”, I realised that the the value in A,B is the same than B,A in my matrix. I would have thought that A,B would contain the value for A, and B,A the value for B… Is there anything that can be done to fix this with the Splom function ?
Thank you
Here’s the code and output
fig = go.Figure(
data=go.Splom(
dimensions=[
dict(label='Monomer', values=df.query("system == 'AP2-I_ACDC_Monomere'")["average"]),
dict(label='Monomer noHS', values=df.query("system == 'AP2-I_ACDC_Monomere_SansHS'")["average"]),
dict(label='Dimer', values=df.query("system == 'AP2-I_ACDC_Dimere'")["average"]),
dict(label='Dimer noHS', values=df.query("system == 'AP2-I_ACDC_Dimere_SansHS'")["average"]),
dict(label='ACDC_test1', values=df.query("system == 'First_struct_bigger'")["average"]),
],
marker=dict(size=df["std"],
color=df["rmsd"],
colorscale="viridis",
colorbar={"title":"RMSD"},
sizeref=0.1,
sizemode="diameter",
opacity=0.8,
line=dict(width=0.5,color="black")),
text=df["ligand"],
customdata=df["ligand"],
diagonal_visible=False,
)
)
fig.update_layout(
title=dict(text="Energy of the best pose of each compound", font=dict(size=20)),
width=1000,
height=1000,
)