Skip to content

Commit b2078bd

Browse files
authored
Merge pull request #439 from CovertLab/selected-fluxes
Fix axs dims when show_enzyme_counts is false
2 parents c050a98 + 4cf1694 commit b2078bd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎ecoli/analysis/multigeneration/selected_fluxes.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ def plot(
230230
axs = np.array([axs])
231231
if n_rows == 1:
232232
axs = np.array([axs])
233+
if axs.ndim != 2:
234+
axs = axs[:, np.newaxis]
233235

234236
# Group axes by what type of data we'll plot into them
235237
flux_axes = axs[:, 0]

0 commit comments

Comments
 (0)