Fix #120 - Save plot
This commit is contained in:
+6
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user