Merge pull request #121 from jedie/patch-2
[MRG] Save plot when filename is specifiedpull/126/merge
commit
705473198f
|
|
@ -43,7 +43,13 @@ class PlotMethods(object):
|
||||||
)
|
)
|
||||||
|
|
||||||
plot_method = getattr(self, kind)
|
plot_method = getattr(self, kind)
|
||||||
return plot_method(table)
|
fig = plot_method(table)
|
||||||
|
|
||||||
|
if filename is not None:
|
||||||
|
fig.savefig(filename)
|
||||||
|
return None
|
||||||
|
|
||||||
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue