Commit 0841f81b authored by Andreas Schmidt's avatar Andreas Schmidt

~= show + close figure

parent d510cfc0
......@@ -65,7 +65,8 @@ def receiver_dts_cdf(folder, r=None, protocols=None,
legend=None,
xlabel=True,
ylabel=True,
t_max=None):
t_max=None,
show=True):
if legend is None:
legend = {}
if r is None:
......@@ -100,6 +101,9 @@ def receiver_dts_cdf(folder, r=None, protocols=None,
if export and file_name is not None:
fig.savefig(file_name)
if show:
plt.show()
plt.close(fig)
return dfs
def plot_dts(filename, proto, r=None,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment