Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/.../lib64/python3.7/site-packages/matplotsoccer/fns.py", line 52, in field
show=show,
File "/home/.../lib64/python3.7/site-packages/matplotsoccer/fns.py", line 203, in _field
h, w = fig.get_size_inches()
UnboundLocalError: local variable 'fig' referenced before assignment
Possible fix: fig = ax.get_figure() when ax is not Nonehere
causes:
Possible fix:
fig = ax.get_figure()
whenax
is notNone
here