Skip to content

Commit

Permalink
moved plotting up
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Nov 29, 2022
1 parent 8510e8b commit bb52baf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
30 changes: 0 additions & 30 deletions settings.xml

This file was deleted.

3 changes: 2 additions & 1 deletion src/openmc_plot/geometry_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ def create_geometry_tab():
)
geom_plt.figure.savefig("geometry_image.png")

col2.image("geometry_image.png", use_column_width="always")

with open("geometry_image.png", "rb") as file:
col1.download_button(
label="Download image",
Expand All @@ -215,4 +217,3 @@ def create_geometry_tab():
mime="image/png"
)

col2.image("geometry_image.png", use_column_width="always")

0 comments on commit bb52baf

Please sign in to comment.