def generate_error_position_graph( temperature, flow_velocity, md_threshold=0, width=3, figPath='None', show=True, logScale=False, plot_ylim='None'): ''' @description generate the figure showing the maximum of the mass error and the y-position as functions of time ''' T_i = temperature_dict[str(temperature)] v_i = flow_velocity_dict[str(flow_velocity)] md_i = md_threshold_dict[str(0)] errorPath = err_dirs[T_i][v_i][md_i] data = extract_max_error_in_time( errorPath, var_names=['time','max_error_mass','y_max_error_mass']) dataError = [data[0],data[1]] dataPosition = [data[0],data[2]] create_error_graph_with_location( dataError, dataPosition, legendParam='None', graphPties=[['black','-'],[grayscale_to_RGB(0.50),'-']], width=width, figPath=figPath_error, show=show, logScale=logScale, plot_ylim=plot_ylim)
errorIcExplaination = False errorBcExplainationT0 = False errorBcExplainationVy0 = True # options for the line drawing #------------------------------------------------------------ # - color_temperature : grayscale colors for the temperture # - color_flow_velocity : grayscale colors for the velocity # - style_threshold : line style for the md_threshold study # - width : width of the lines # - show : show the graph before saving it # - logScale : use log scale to display the error #------------------------------------------------------------ color_temperature = [ grayscale_to_RGB(0.30), grayscale_to_RGB(0.50), grayscale_to_RGB(0.75), grayscale_to_RGB(0.90)] color_flow_velocity = [ grayscale_to_RGB(0.30), grayscale_to_RGB(0.50), grayscale_to_RGB(0.75), grayscale_to_RGB(0.90)] style_threshold = ['+','.','--','-','^'] style_detector = ['^','-','--','-.',':'] width = 3