##This issue is based on the2023 Sichuan Province issued by the Sichuan Provincial Education Examination Authority The distribution of the number of people in the science subjects of the college entrance examinationtable looks at the distribution of undergraduate batches,I hope it will be helpful to everyone,If you have any questions or need If you want to improve, please contact the editor.
Data source: Sichuan Provincial Education Examination Authority
def get_data_pic(): L1 = ( Line() .add_xaxis(df['分数'].tolist()[::-1]) .add_yaxis( "", df['人数'].tolist()[::-1], symbol_size=0.5, ) .add_yaxis( "", data_t, symbol_size=0.5, ) .add_yaxis( "", data_t2, symbol_size=0.5, ) .set_series_opts( label_opts=opts.LabelOpts(is_show=False) ) .set_global_opts( legend_opts=opts.LegendOpts(is_show=False), title_opts=opts.TitleOpts( title='2023年四川省高考理科一分一段人数分布', pos_top='1%', pos_left="1%", title_textstyle_opts=opts.TextStyleOpts(color='#fff200',font_size=20) ), yaxis_opts=opts.AxisOpts( axislabel_opts=opts.LabelOpts(font_size=12, color=colors[3]), axisline_opts=opts.AxisLineOpts( is_show=False, linestyle_opts=opts.LineStyleOpts(width=2, color=colors[3]) ), ) ) )
Have a college entrance examination A total of295512people
def get_pie_pic(): pie = ( Pie() .add( "", [list(z) for z in zip(lables, datas)], radius=["40%", "70%"], center=["50%", "50%"], label_opts=opts.LabelOpts(formatter="{b}: \n{d}%",font_size=18), ) .set_global_opts( title_opts=opts.TitleOpts( title=f'2023年四川省高考理科各批次人数分布', pos_top='39%', pos_left="center", ), legend_opts=opts.LegendOpts( is_show=False, textstyle_opts=opts.TextStyleOpts(font_size=14), pos_top='6%', ), ) )
本科二批过线人数占比:28.51%+35.74%=64.25%
The above is the detailed content of Python College Entrance Examination | Distribution of the number of people in the science subjects of the Sichuan College Entrance Examination in 2023. For more information, please follow other related articles on the PHP Chinese website!