Fix #120 - Save plot

This commit is contained in:
Jens Diemer
2020-03-15 13:20:27 +01:00
committed by GitHub
parent 44193e0d26
commit f8b6181988
+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