We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93540b5 commit fe10ed6Copy full SHA for fe10ed6
1 file changed
pages/7_🗺️ Dashboard.py
@@ -395,8 +395,9 @@ def show_visualize_page():
395
396
if st.session_state.mining_sim['running']:
397
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)
+ # Renamed 'plt' to 'heatmap_fig' to avoid conflict with imported matplotlib.pyplot
+ heatmap_fig = go.Figure(go.Heatmap(z=[resources], colorscale='viridis'))
400
+ st.plotly_chart(heatmap_fig, use_container_width=True)
401
st.session_state.mining_sim['resources'] *= 0.97 # Resource depletion
402
403
# Exoplanetary Navigation System (Simplified without astropy)
0 commit comments