Skip to content
Snippets Groups Projects
Commit 1b8adadd authored by AlQuemist's avatar AlQuemist
Browse files

ba_plot: add a function to export the plot

parent 8492428f
No related branches found
No related tags found
1 merge request!2663Clean up the Examples provided to the user (Major change)
......@@ -466,6 +466,12 @@ def show_or_export(**plotargs):
plt.show()
def export(**plotargs):
_figfile = plotargs.pop('figfile', None)
if _figfile:
plt.savefig(_figfile, format=plotargs['saveformat'], bbox_inches='tight')
def plot_simulation_result(result, **plotargs):
"""
Draws simulation result and (optionally) shows the plot.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment