Skip to content

Commit 7369d0f

Browse files
Jon PalmerJon Palmer
Jon Palmer
authored and
Jon Palmer
committed
fix cog graph size, hopefully
1 parent 445e038 commit 7369d0f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/library.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -3454,7 +3454,10 @@ def donutplot(df, LongName, output, colors=False):
34543454
else:
34553455
color_palette = colors
34563456
#draw figure
3457-
fig = plt.figure(1,figsize=(8,8))
3457+
if len(species) < 3:
3458+
fig = plt.figure(1,figsize=(8,4))
3459+
else:
3460+
fig = plt.figure(1,figsize=(8,8))
34583461
for k in range(total):
34593462
ax = fig.add_subplot(Rows,2,Position[k])
34603463
# Create a circle for the center of the plot

0 commit comments

Comments
 (0)