Skip to content

Commit fe10ed6

Browse files
authored
Update 7_🗺️ Dashboard.py
1 parent 93540b5 commit fe10ed6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pages/7_🗺️ Dashboard.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,9 @@ def show_visualize_page():
395395

396396
if st.session_state.mining_sim['running']:
397397
resources = st.session_state.mining_sim['resources']
398-
plt = go.Figure(go.Heatmap(z=[resources], colorscale='viridis'))
399-
st.plotly_chart(plt, use_container_width=True)
398+
# Renamed 'plt' to 'heatmap_fig' to avoid conflict with imported matplotlib.pyplot
399+
heatmap_fig = go.Figure(go.Heatmap(z=[resources], colorscale='viridis'))
400+
st.plotly_chart(heatmap_fig, use_container_width=True)
400401
st.session_state.mining_sim['resources'] *= 0.97 # Resource depletion
401402

402403
# Exoplanetary Navigation System (Simplified without astropy)

0 commit comments

Comments
 (0)