Skip to content

Commit

Permalink
changed size of plot in interact
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikLizakJohansen committed Sep 17, 2023
1 parent e0c5c5b commit 8c95fd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DebyeCalculator/debye_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,14 +1437,14 @@ def update_figure(debye_outputs, _unity_sq=True):

num_plots = int(show_iq_button.value) + int(show_sq_button.value) + int(show_fq_button.value) + int(show_gr_button.value)
if num_plots == 4:
fig, axs = plt.subplots(2,2,figsize=(12, 8), dpi=75)
fig, axs = plt.subplots(2,2,figsize=(12*1.2, 8*1.2), dpi=75)
axs = axs.ravel()
elif num_plots == 3:
fig, axs = plt.subplots(3,1,figsize=(12,8), dpi=75)
fig, axs = plt.subplots(3,1,figsize=(12*1.2,8*1.2), dpi=75)
elif num_plots == 2:
fig, axs = plt.subplots(2,1,figsize=(12,8), dpi=75)
fig, axs = plt.subplots(2,1,figsize=(12*1.2,8*1.2), dpi=75)
elif num_plots == 1:
fig, axs = plt.subplots(figsize=(12,8), dpi=75)
fig, axs = plt.subplots(figsize=(12*1.2,8*1.2), dpi=75)
axs = [axs]
else:
return
Expand Down

0 comments on commit 8c95fd3

Please sign in to comment.