File:International Mathematical Olympiad highest team score bar chart.svg

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书

原始文件(SVG文件,尺寸为540 × 360像素,文件大小:43 KB)


摘要

描述
English: Bar chart of IMO team score winner frequencies.
日期
来源 自己的作品
作者 Árni Dagur
SVG开发
InfoField
 
SVG的源代码为无效代码,因为发现了1个问题。
 
本W3C无效的矢量图使用Matplotlib创作。
源代码
InfoField

Python code

# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator, FormatStrFormatter

plt.rcdefaults()
plt.rcParams['figure.figsize'] = 6, 4
grid_alpha = 0.25
width = 0.4

labels = ['China', 'Russia', 'Hungary', 'U.S.', 'Romania', 'Germany', 'Bulgaria', 'Iran', 'S. Korea']
labels_ISO = ['CHN', 'RUS', 'HUN', 'USA', 'ROU', 'DEU', 'BGR', 'IRN', 'KOR']
values = [19, 14+2, 6, 6, 5, 2+1, 1, 1, 1]
#           USSR/Russia W.Germ/E.Germ
xticks = [x for x in range(0,len(labels),1)]

fig, ax = plt.subplots()

ax.yaxis.grid(linestyle='-', linewidth=1, alpha=grid_alpha, color='k')
ax.set_ylabel('Frequency')
ax.set_title('Mathematical Olympiad:\n'+'Highest team score winner frequency',fontsize=11.5)
ax.set_xticks(xticks)
ax.set_xticklabels(labels,rotation=45)
ax.yaxis.set_major_locator(MultipleLocator(5))
ax.yaxis.set_major_formatter(FormatStrFormatter('%d'))
ax.yaxis.set_minor_locator(MultipleLocator(1))

ax.bar(xticks, values, width)

fig.tight_layout()
fig.savefig('International_Mathematical_Olympiad_highest_team_score_bar_chart.svg')

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
Creative Commons CC-Zero 本作品采用知识共享CC0 1.0 通用公有领域贡献许可协议授权。
采用本宣告发表本作品的人,已在法律允许的范围内,通过在全世界放弃其对本作品拥有的著作权法规定的所有权利(包括所有相关权利),将本作品贡献至公有领域。您可以复制、修改、传播和表演本作品,将其用于商业目的,无需要求授权。

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2017年7月5日 (三) 19:092017年7月5日 (三) 19:09版本的缩略图540 × 360(43 KB)ArniDagurUser created page with UploadWizard

没有页面链接到本图像。

全域文件用途

以下其他wiki使用此文件:

元数据