Skip to content

Commit

Permalink
fixed figure() call
Browse files Browse the repository at this point in the history
  • Loading branch information
florisvb committed Aug 10, 2018
1 parent ef72990 commit dd92f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion figurefirst/mpl_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def set_fontsize(fig,fontsize):
fig can also be an axis object
"""
if type(fig) != matplotlib.figure.Figure:
fig = fig.figure() # it's probably an axis, so grab the figure
fig = fig.figure # it's probably an axis, so grab the figure

def match(artist):
return artist.__module__ == "matplotlib.text"
Expand Down

0 comments on commit dd92f0f

Please sign in to comment.