dpraz commited on
Commit
bd1b28b
1 Parent(s): 09b9f64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def plot(df, one, two, element, indice, mix_norm):
35
  "value":f"ε<sup>i</sup>{element}",
36
  f"{df.columns[0]}": " "
37
  })
38
- plot.update_layout(modebar={orientation: 'h'})
39
  if mix_norm==True:
40
  plot=px.line(df2, x=df2.index,y=df2.columns, markers=True, title=f"Internal Normalization to <sup>{int(one)}</sup>{element}/<sup>{int(two)}</sup>{element} <br><sup>Index Isotope: <sup>{indice}</sup>{element}</sup>",
41
  labels={
@@ -43,7 +43,7 @@ def plot(df, one, two, element, indice, mix_norm):
43
  "value":f"ε<sup>i</sup>{element}",
44
  f"{df.columns[0]}": " "
45
  })
46
- plot.update_layout(modebar={orientation: 'h'})
47
  plot.update_xaxes(tickvals=df2.index)
48
  return gr.update(value=plot, visible=True)
49
 
 
35
  "value":f"ε<sup>i</sup>{element}",
36
  f"{df.columns[0]}": " "
37
  })
38
+ plot.update_layout(modebar={'orientation': 'h'})
39
  if mix_norm==True:
40
  plot=px.line(df2, x=df2.index,y=df2.columns, markers=True, title=f"Internal Normalization to <sup>{int(one)}</sup>{element}/<sup>{int(two)}</sup>{element} <br><sup>Index Isotope: <sup>{indice}</sup>{element}</sup>",
41
  labels={
 
43
  "value":f"ε<sup>i</sup>{element}",
44
  f"{df.columns[0]}": " "
45
  })
46
+ plot.update_layout(modebar={'orientation': 'h'})
47
  plot.update_xaxes(tickvals=df2.index)
48
  return gr.update(value=plot, visible=True)
49