Fix #120 - Save plot

This commit is contained in:
Jens Diemer authored and GitHub committed 2020-03-15 13:20:27 +01:00
1 parent 44193e0d26
commit f8b6181988
1 file changed
+6 -1
+6 -1
View File
@@ -43,7 +43,12 @@ class PlotMethods(object):
)
plot_method = getattr(self, kind)
return plot_method(table)
fig = plot_method(table)
if filename:
fig.savefig(filename)
return fig
def text(self, table):
"""Generates a plot for all text elements present