Fix #120 - Save plot

pull/121/head
Jens Diemer 2020-03-15 13:20:27 +01:00 committed by GitHub
parent 44193e0d26
commit f8b6181988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ class PlotMethods(object):
) )
plot_method = getattr(self, kind) plot_method = getattr(self, kind)
return plot_method(table) fig = plot_method(table)
if filename:
fig.savefig(filename)
return fig
def text(self, table): def text(self, table):
"""Generates a plot for all text elements present """Generates a plot for all text elements present