simonduerr commited on
Commit
042fbee
1 Parent(s): 38bbfa2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -141,12 +141,12 @@ def update(inp):
141
  #ax.set_ylabel("predicted LDDT")
142
  #ax.set_xlabel("positions")
143
  #ax.set_title("pLDDT")
144
- fig = go.Figure(data=go.Scatter(x=np.arange(len(plddts)), y=plddts), hovertext = plddts, hoverinfo="text", showlegend=False)
145
  fig.update_layout(title="pLDDT",
146
- xaxis_title="Residue index",
147
- yaxis_title="pLDDT",
148
- height=500,
149
- template="simple_white")
150
  return (
151
  molecule(
152
  f"test_unrelaxed_model_1.pdb",
 
141
  #ax.set_ylabel("predicted LDDT")
142
  #ax.set_xlabel("positions")
143
  #ax.set_title("pLDDT")
144
+ fig = go.Figure(data=go.Scatter(x=np.arange(len(plddts)), y=plddts, hovertemplate='<i>pLDDT</i>: %{y:.2f} <br><i>Residue index:</i> %{x}'))
145
  fig.update_layout(title="pLDDT",
146
+ xaxis_title="Residue index",
147
+ yaxis_title="pLDDT",
148
+ height=500,
149
+ template="simple_white")
150
  return (
151
  molecule(
152
  f"test_unrelaxed_model_1.pdb",