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

~= show + close figure

parent d510cfc0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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,