duongthienz commited on
Commit
1bde9fc
·
verified ·
1 Parent(s): 715c67e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -11
app.py CHANGED
@@ -667,7 +667,7 @@ try:
667
  printV("Pie1 Pretrace",4)
668
  fig1.add_trace(go.Pie(values=df3["values"],labels=df3["names"],sort=False))
669
  printV("Pie1 Posttrace",4)
670
-
671
  col1_1, col1_2 = st.columns(2)
672
  try:
673
  fig1.write_image("ascn_pie1.pdf")
@@ -699,7 +699,6 @@ try:
699
  on_click="ignore",
700
  )
701
  printV("Pie1 in col1_2",4)
702
- st.plotly_chart(fig1, use_container_width=True,config=config)
703
  printV("Pie1 post plotly",4)
704
 
705
  with pie2:
@@ -719,7 +718,7 @@ try:
719
  paper_bgcolor='rgba(0, 0, 0, 0)',
720
  )
721
  fig2.add_trace(go.Pie(values=df4["values"],labels=df4["names"],sort=False))
722
-
723
  col2_1, col2_2 = st.columns(2)
724
  try:
725
  fig2.write_image("ascn_pie2.pdf")
@@ -746,7 +745,6 @@ try:
746
  key='download-svg2',
747
  on_click="ignore",
748
  )
749
- st.plotly_chart(fig2, use_container_width=True,config=config)
750
 
751
  with sunburst1:
752
  df5 = st.session_state.summaries[currFileIndex]["df5"].copy()
@@ -776,7 +774,7 @@ try:
776
  plot_bgcolor='rgba(0, 0, 0, 0)',
777
  paper_bgcolor='rgba(0, 0, 0, 0)',
778
  )
779
-
780
  col3_1, col3_2 = st.columns(2)
781
  try:
782
  fig3_1.write_image("ascn_sunburst.pdf")
@@ -803,7 +801,6 @@ try:
803
  key='download-svg3',
804
  on_click="ignore",
805
  )
806
- st.plotly_chart(fig3_1, use_container_width=True,config=config)
807
 
808
  with treemap1:
809
  df5 = st.session_state.summaries[currFileIndex]["df5"].copy()
@@ -833,7 +830,7 @@ try:
833
  plot_bgcolor='rgba(0, 0, 0, 0)',
834
  paper_bgcolor='rgba(0, 0, 0, 0)',
835
  )
836
-
837
  col4_1, col4_2 = st.columns(2)
838
  try:
839
  fig3.write_image("ascn_treemap.pdf")
@@ -894,7 +891,7 @@ try:
894
  legend={'traceorder':'reversed'},
895
  yaxis= {'showticklabels': False},
896
  )
897
-
898
  col5_1, col5_2 = st.columns(2)
899
  try:
900
  fig_la.write_image("ascn_timeline.pdf")
@@ -921,7 +918,6 @@ try:
921
  key='download-svg5',
922
  on_click="ignore",
923
  )
924
- st.plotly_chart(fig_la, use_container_width=True,config=config)
925
 
926
  with bar1:
927
  df2 = st.session_state.summaries[currFileIndex]["df2"].copy()
@@ -946,7 +942,7 @@ try:
946
  'Percentage of Time: %{customdata[1]:.2f}%'
947
  ])
948
  )
949
-
950
  col6_1, col6_2 = st.columns(2)
951
  try:
952
  fig_la.write_image("ascn_bar.pdf")
@@ -973,7 +969,6 @@ try:
973
  key='download-svg6',
974
  on_click="ignore",
975
  )
976
- st.plotly_chart(fig2_la, use_container_width=True,config=config)
977
 
978
  except ValueError:
979
  pass
 
667
  printV("Pie1 Pretrace",4)
668
  fig1.add_trace(go.Pie(values=df3["values"],labels=df3["names"],sort=False))
669
  printV("Pie1 Posttrace",4)
670
+ st.plotly_chart(fig1, use_container_width=True, config=config)
671
  col1_1, col1_2 = st.columns(2)
672
  try:
673
  fig1.write_image("ascn_pie1.pdf")
 
699
  on_click="ignore",
700
  )
701
  printV("Pie1 in col1_2",4)
 
702
  printV("Pie1 post plotly",4)
703
 
704
  with pie2:
 
718
  paper_bgcolor='rgba(0, 0, 0, 0)',
719
  )
720
  fig2.add_trace(go.Pie(values=df4["values"],labels=df4["names"],sort=False))
721
+ st.plotly_chart(fig2, use_container_width=True, config=config)
722
  col2_1, col2_2 = st.columns(2)
723
  try:
724
  fig2.write_image("ascn_pie2.pdf")
 
745
  key='download-svg2',
746
  on_click="ignore",
747
  )
 
748
 
749
  with sunburst1:
750
  df5 = st.session_state.summaries[currFileIndex]["df5"].copy()
 
774
  plot_bgcolor='rgba(0, 0, 0, 0)',
775
  paper_bgcolor='rgba(0, 0, 0, 0)',
776
  )
777
+ st.plotly_chart(fig3_1, use_container_width=True, config=config)
778
  col3_1, col3_2 = st.columns(2)
779
  try:
780
  fig3_1.write_image("ascn_sunburst.pdf")
 
801
  key='download-svg3',
802
  on_click="ignore",
803
  )
 
804
 
805
  with treemap1:
806
  df5 = st.session_state.summaries[currFileIndex]["df5"].copy()
 
830
  plot_bgcolor='rgba(0, 0, 0, 0)',
831
  paper_bgcolor='rgba(0, 0, 0, 0)',
832
  )
833
+ st.plotly_chart(fig3, use_container_width=True, config=config)
834
  col4_1, col4_2 = st.columns(2)
835
  try:
836
  fig3.write_image("ascn_treemap.pdf")
 
891
  legend={'traceorder':'reversed'},
892
  yaxis= {'showticklabels': False},
893
  )
894
+ st.plotly_chart(fig_la, use_container_width=True, config=config)
895
  col5_1, col5_2 = st.columns(2)
896
  try:
897
  fig_la.write_image("ascn_timeline.pdf")
 
918
  key='download-svg5',
919
  on_click="ignore",
920
  )
 
921
 
922
  with bar1:
923
  df2 = st.session_state.summaries[currFileIndex]["df2"].copy()
 
942
  'Percentage of Time: %{customdata[1]:.2f}%'
943
  ])
944
  )
945
+ st.plotly_chart(fig2_la, use_container_width=True, config=config)
946
  col6_1, col6_2 = st.columns(2)
947
  try:
948
  fig_la.write_image("ascn_bar.pdf")
 
969
  key='download-svg6',
970
  on_click="ignore",
971
  )
 
972
 
973
  except ValueError:
974
  pass