You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, thanks for providing a great and easy to use tool!
This issue is reproducible with the first example in the documentation:
df_esol['delY'] = df_esol["y_pred"] - df_esol["y_true"]
fig_scatter = px.scatter(df_esol,
x="y_true",
y="y_pred",
color='delY',
marker='Minimum Degree', # <- addition
title='ESOL Regression (default plotly)',
labels={'y_pred': 'Predicted Solubility',
'y_true': 'Measured Solubility',
'delY': 'ΔY'},
width=1200,
height=800)
# This adds a dashed line for what a perfect model _should_ predict
y = df_esol["y_true"].values
fig_scatter.add_shape(
type="line", line=dict(dash='dash'),
x0=y.min(), y0=y.min(),
x1=y.max(), y1=y.max()
)
fig_scatter.update_layout(title='ESOL Regression (with add_molecules!)')
app_scatter = molplotly.add_molecules(fig=fig_scatter,
df=df_esol,
smiles_col='smiles',
title_col='Compound ID',
color_col='delY' # <- addition
)
# change the arguments here to run the dash app on an external server and/or change the size of the app!
app_scatter.run_server(mode='inline', port=8001, height=1000)
Using either only marker or color alone causes no issues with the hoverbox. Also, using Minimum Degree as color_col for add_molecules when both color and symbol are defined gives no issues.
The text was updated successfully, but these errors were encountered:
I seem to have found the issue - when marker or symbol is passed in to the scatterplot plotly splits the data into three separate scatterplots each with a different symbol shape which is why it breaks the indexing - I'll implement a fix alongside some new features hopefully this weekend! :)
Hi there, thanks for providing a great and easy to use tool!
This issue is reproducible with the first example in the documentation:
This returns
Using either only
marker
orcolor
alone causes no issues with the hoverbox. Also, usingMinimum Degree
ascolor_col
foradd_molecules
when bothcolor
andsymbol
are defined gives no issues.The text was updated successfully, but these errors were encountered: