Skip to content

Commit 98209e8

Browse files
committed
Make show_cycles and show_cmaps return figure
1 parent f0f0583 commit 98209e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

proplot/styletools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,6 +3299,7 @@ def _draw_bars(
32993299
if imap == 0:
33003300
ax.set_title(cat)
33013301
nbars += len(names)
3302+
return fig
33023303

33033304

33043305
def show_channels(
@@ -3784,7 +3785,7 @@ def show_fonts(*args, family=None, text=None, size=12):
37843785
)
37853786

37863787
# Create figure
3787-
f, axs = subplots(
3788+
fig, axs = subplots(
37883789
ncols=1, nrows=len(args), space=0,
37893790
axwidth=4.5, axheight=1.2 * (text.count('\n') + 2.5) * size / 72,
37903791
fallback_to_cm=False
@@ -3800,7 +3801,7 @@ def show_fonts(*args, family=None, text=None, size=12):
38003801
fontfamily=font, fontsize=size,
38013802
weight='normal', ha='left', va='center'
38023803
)
3803-
return f
3804+
return fig
38043805

38053806

38063807
# Apply custom changes

0 commit comments

Comments
 (0)