includegraphic filter accept pandas plot

This commit is contained in:
Benjamin Bertrand 2016-11-25 11:48:05 +03:00
parent 0c33f5322c
commit f72419cdd1
1 changed files with 6 additions and 1 deletions

View File

@ -15,7 +15,12 @@ def includegraphic(fig_ax, path="./fig/",
:returns: TODO :returns: TODO
""" """
fig, ax = fig_ax try:
fig, ax = fig_ax
except TypeError:
ax = fig_ax
fig = ax.figure
if prefix: if prefix:
filename = "{}_{}.pdf".format(prefix, str(uuid4())[:8]) filename = "{}_{}.pdf".format(prefix, str(uuid4())[:8])
else: else: