Skip to content

Commit

Permalink
fix: don't show warning on plot_static=False
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumJHays committed Oct 10, 2022
1 parent b4108e3 commit 2711a13
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions mathpad/simulate_dynamic_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,12 @@ def simulate_dynamic_system(

verbose = verbose or display_explanation

if plot_static_figsize and not plot_static:
print(
"Warning: plot_static_figsize was set but plot_static was not enabled. Enabling for you automatically. Set plot_static=True to "
)

# make static renderings a certain size, the default one is too square for my liking
svg_renderer = pio.renderers["svg"]
width, height = plot_static_figsize
svg_renderer.width = width
svg_renderer.height = height
if plot_static:
# make static renderings a certain size, the default one is too square for my liking
svg_renderer = pio.renderers["svg"]
width, height = plot_static_figsize
svg_renderer.width = width
svg_renderer.height = height

# TODO: support plotting on separate axes, and subplots
# TODO: ensure we aren't subbing out something that is required for a 'record' output
Expand Down

0 comments on commit 2711a13

Please sign in to comment.