Skip to content

Commit

Permalink
Merge pull request #32 from fusion-energy/fixing_math_domain_bug
Browse files Browse the repository at this point in the history
fixed math domain bug
  • Loading branch information
shimwell authored Apr 21, 2024
2 parents 7bf7600 + 1549bd8 commit 80c394e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/openmc_geometry_plot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ def main():
# x axis values
if np.isinf(bb[0][x_index]) or np.isinf(bb[1][x_index]):
plot_left = st.sidebar.number_input(
value = -2000., label="minimum vertical axis value", key="x_min"
value = -2000., label="minimum horizontal axis value", key="x_min"
)
plot_right = st.sidebar.number_input(
value=2000., label="maximum vertical axis value", key="x_max"
value=2000., label="maximum horizontal axis value", key="x_max"
)
else:
x_min = float(bb[0][x_index])
Expand Down Expand Up @@ -358,12 +358,11 @@ def main():
(plot_top+plot_bottom)/2,
)

width_x=plot_left-plot_right
width_y=plot_top-plot_bottom
width_x=abs(plot_left-plot_right)
width_y=abs(plot_top-plot_bottom)
if backend == "matplotlib":
print('plotting with matplotlib')


plot = my_geometry.plot(
origin=origin,
width=[width_x,width_y],
Expand Down

0 comments on commit 80c394e

Please sign in to comment.