includegraphic filter accept pandas plot
This commit is contained in:
parent
0c33f5322c
commit
f72419cdd1
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue