from Make_movie import Gen_movie Movie = Gen_movie() M = 30 fd_name = 'cos_PD_F2_UW1' index = 0 data_type = 'dat' size_sufx = 'size' Movie.set_basic(M, fd_name, data_type, size_sufx, index) x_name = 'R1_x' t_out_name = 'R1_t_out' u_exa_name = 'R2_u_exact' u_num_name = 'R2_u_track' mov_name = 'demo' fps = 10 fine_fac = 4 Movie.set_movie_para(mov_name, fps, fine_fac) Movie.set_var(x_name, t_out_name, u_num_name, u_exa_name) Movie.read_raw_data() Movie.gen_movie()
size_sufx='size' main_fd_name='shock_DN_F1_scan_T_1' Plot.set_basic(M,fd_name,data_type,size_sufx,index) main_fd_ctrl=1 Plot.set_main_fd_ctrl(main_fd_ctrl,main_fd_name) x_name='R1_x' t_out_name='R1_t_out' u_exa_name='R2_u_exact' u_num_name='R1_uf' mov_name='demo' fps=10 fine_fac=4 Plot.set_movie_para(mov_name,fps,fine_fac) Plot.set_var(x_name,t_out_name,u_num_name,u_exa_name) # Plot.read_raw_data() # Plot.gen_movie() scheme_str=['LF','LW','MD','UW1'] fd_name_base_o='shock_DN_F1' var_name='nu' var_str=['1','0p75','0p5','0p25'] var_val=[1,0.75,0.5,0.25] y_min=-0.1 y_max=1.3 for i in range(len(scheme_str)): fd_name_base=fd_name_base_o+'_'+scheme_str[i] Plot.plot_group_data(fd_name_base,var_name,var_str,var_val,y_min,y_max)