(self, model=None, plot=None, save=False)
function to get plots and then save them if appropriate
    :param modeL; the key in the models dictionary.
    :param plot: specific plot to get if applicable
    :param save: whether to save the file as a .png
function to get plots and then save them if appropriate
    :param modeL; the key in the models dictionary.
    :param plot: specific plot to get if applicable
    :param save: whether to save the file as a .png
function to get plots and then save them if appropriate : param modeL ; the key in the models dictionary . : param plot : specific plot to get if applicable : param save : whether to save the file as a . png
def get_plots(self, model=None, plot=None, save=False):
    '''
    function to get plots and then save them if appropriate
    :param modeL; the key in the models dictionary.
    :param plot: specific plot to get if applicable
    :param save: whether to save the file as a .png
    '''
    if model is None:
        model = self.latest_model

    modeldict = self.models[model]

    try:
        if plot is None:
            for each_plot in modeldict['plots']:
                save_and_plot(self, model, each_plot, save)
            return self.models[model]['plots']
        else:
            try:
                save_and_plot(self, model, plot, save)
                return self.models[model]['plots'][plot]
            except:
                raise Exception("{} is not available for {}".format(plot, model))
    except:
        raise Exception("{} does not have plots".format(model))
def get_plots ( self , model = None , plot = None , save = False ) : if model is None : model = self . latest_model modeldict = self . models [ model ] try : if plot is None : for each_plot in modeldict [ 'plots' ] : save_and_plot ( self , model , each_plot , save ) return self . models [ model ] [ 'plots' ] else : try : save_and_plot ( self , model , plot , save ) return self . models [ model ] [ 'plots' ] [ plot ] except : raise Exception ( "{} is not available for {}" . format ( plot , model ) ) except : raise Exception ( "{} does not have plots" . format ( model ) )