Beispiel #1
0
def save_DET(dc, path, file_name, plot_options={}):
    if isinstance(dc, DataContainer):
        dc = [dc]
    rd = Render(plot_type="det")
    fig = rd.plot(dc, display=False, plot_options=plot_options)
    fig.savefig("{}/{}".format(path, file_name))
    rd.close_fig(fig)
Beispiel #2
0
def save_DET(dc, path, file_name, no_ppf, plot_options={}):
    if type(dc) is {}.values().__class__:
        dc = list(dc)
    if isinstance(dc, DataContainer):
        dc = [dc]
    rd = Render(plot_type="det")
    fig = rd.plot(dc, display=False, plot_options=plot_options, no_ppf=no_ppf)
    fig.savefig("{}/{}".format(path, file_name))
    rd.close_fig(fig)