wissamantoun commited on
Commit
b238a01
1 Parent(s): 28f58b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -357,21 +357,21 @@ fig = px.imshow(
357
  )
358
 
359
 
360
- width = st.sidebar.text_input("Width", "1920")
361
- height = st.sidebar.text_input("Height", "1080")
362
- scale = st.sidebar.text_input("Scale", "1.0")
363
- margin = st.sidebar.text_input("Margin[l,r,b,t]", "200,100,100,100")
364
  fig.update_traces(textfont_size=9)
365
  fig.update_layout(
366
  xaxis={"side": "top"},
367
  yaxis={"side": "left"},
368
- margin=dict(
369
- l=int(margin.split(",")[0]),
370
- r=int(margin.split(",")[1]),
371
- b=int(margin.split(",")[2]),
372
- t=int(margin.split(",")[3]),
373
- ),
374
- font=dict(size=10),
375
  )
376
  fig.update_xaxes(tickangle=45)
377
 
@@ -381,14 +381,14 @@ fig.update_yaxes(tickmode="linear")
381
  st.plotly_chart(fig, use_container_width=True)
382
 
383
 
384
- if st.sidebar.button("save", key="save"):
385
- fig.write_image(
386
- "fig1.pdf",
387
- width=int(width),
388
- height=int(height),
389
- validate=True,
390
- scale=float(scale),
391
- )
392
 
393
 
394
  # plot the col mean vs model size
 
357
  )
358
 
359
 
360
+ # width = st.sidebar.text_input("Width", "1920")
361
+ # height = st.sidebar.text_input("Height", "1080")
362
+ # scale = st.sidebar.text_input("Scale", "1.0")
363
+ # margin = st.sidebar.text_input("Margin[l,r,b,t]", "200,100,100,100")
364
  fig.update_traces(textfont_size=9)
365
  fig.update_layout(
366
  xaxis={"side": "top"},
367
  yaxis={"side": "left"},
368
+ # margin=dict(
369
+ # l=int(margin.split(",")[0]),
370
+ # r=int(margin.split(",")[1]),
371
+ # b=int(margin.split(",")[2]),
372
+ # t=int(margin.split(",")[3]),
373
+ # ),
374
+ # font=dict(size=10),
375
  )
376
  fig.update_xaxes(tickangle=45)
377
 
 
381
  st.plotly_chart(fig, use_container_width=True)
382
 
383
 
384
+ # if st.sidebar.button("save", key="save"):
385
+ # fig.write_image(
386
+ # "fig1.pdf",
387
+ # width=int(width),
388
+ # height=int(height),
389
+ # validate=True,
390
+ # scale=float(scale),
391
+ # )
392
 
393
 
394
  # plot the col mean vs model size