File:Uses of videos from public broadcasting on Wikipedias (chart).png
| Uploaded by | Prototyperspective |
|---|---|
| Upload date | 2025-11-26T22:20:06Z |
| MIME type | image/png |
| Dimensions | 900 × 500 px |
| File size | 20.8 KB |
Summary
| Description |
English: Chart made using AI and matplotlib (it generated the code after my prompts) from the data at https://glamtools.toolforge.org/glamorous.php?doit=1&category=Videos_from_public_broadcasting_by_country&use_globalusage=1&ns0=1&depth=40&show_details=1&projects%5Bwikipedia%5D=1
That is all videos in Category:Videos from public broadcasting by country |
| Date | |
| Source |
Own work |
| Author | GPT-5 mini |
PNG development
Source code
Python code
import matplotlib.pyplot as plt
import numpy as np
# Raw data (project, count)
data = [
("de.wikipedia", 858), ("en.wikipedia", 528), ("nl.wikipedia", 384),
("fr.wikipedia", 104), ("fa.wikipedia", 97), ("zh.wikipedia", 84),
("pt.wikipedia", 83), ("es.wikipedia", 78), ("it.wikipedia", 69),
("eo.wikipedia", 58), ("ca.wikipedia", 55), ("meta.wikipedia", 52),
("vi.wikipedia", 52), ("ar.wikipedia", 51), ("ru.wikipedia", 49),
("eu.wikipedia", 49), ("ja.wikipedia", 46), ("tt.wikipedia", 41),
("ast.wikipedia", 41), ("ga.wikipedia", 40), ("ha.wikipedia", 40),
("ko.wikipedia", 34), ("uk.wikipedia", 31), ("he.wikipedia", 31),
("be.wikipedia", 29), ("hy.wikipedia", 27), ("tr.wikipedia", 26),
("ro.wikipedia", 25), ("sr.wikipedia", 25), ("id.wikipedia", 25),
("simple.wikipedia", 23), ("bn.wikipedia", 23), ("et.wikipedia", 23),
("ba.wikipedia", 21), ("ur.wikipedia", 18), ("arz.wikipedia", 18),
("da.wikipedia", 17), ("el.wikipedia", 16), ("la.wikipedia", 15),
("mk.wikipedia", 14), ("fi.wikipedia", 14), ("no.wikipedia", 13),
("incubator.wikipedia", 12), ("hu.wikipedia", 11), ("sl.wikipedia", 11),
("sv.wikipedia", 11), ("azb.wikipedia", 11), ("ms.wikipedia", 10),
("cy.wikipedia", 10), ("cs.wikipedia", 10), ("th.wikipedia", 10),
("zh_yue.wikipedia", 10), ("pl.wikipedia", 9), ("sh.wikipedia", 9),
("az.wikipedia", 8), ("ta.wikipedia", 8), ("lv.wikipedia", 8),
("mt.wikipedia", 8), ("myv.wikipedia", 8), ("pnb.wikipedia", 8),
("af.wikipedia", 8), ("fy.wikipedia", 8), ("sq.wikipedia", 7),
("kab.wikipedia", 7), ("uz.wikipedia", 7), ("gl.wikipedia", 7),
("bg.wikipedia", 6), ("hi.wikipedia", 6), ("ml.wikipedia", 6),
("syl.wikipedia", 6), ("hr.wikipedia", 6), ("ku.wikipedia", 6),
("ban.wikipedia", 6), ("sk.wikipedia", 6), ("br.wikipedia", 5),
("ka.wikipedia", 5), ("ig.wikipedia", 5), ("lb.wikipedia", 5),
("is.wikipedia", 4), ("te.wikipedia", 4), ("bs.wikipedia", 4),
("yi.wikipedia", 4), ("pa.wikipedia", 4), ("oc.wikipedia", 4),
# remaining very-low projects omitted here but aggregated into "Other"
]
# Additional very-low projects (counts listed in the prompt)
low_counts = [
3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
]
other_sum = sum(low_counts)
# Prepare combined list and sort
combined = list(data)
combined.sort(key=lambda x: x[1], reverse=True)
# Top 6 projects (by count) + Other
top6 = combined[:6]
rest = combined[6:]
rest_sum = sum(c for _, c in rest) + other_sum
labels_full = [p for p, _ in top6] + ["Other"]
values = [c for _, c in top6] + [rest_sum]
# Short bar labels like "de", "en", ...
def short_label(project):
return project.split(".")[0] # "de", "en", etc.
bar_labels = [short_label(p) for p in labels_full]
# Plot
fig, ax = plt.subplots(figsize=(9, 5))
x = np.arange(len(values))
bars = ax.bar(x, values, color=plt.get_cmap("tab10").colors[:len(values)])
# X and Y axis labels
ax.set_xlabel("Wikipedia project")
ax.set_ylabel("Usage count")
# Set x-ticks to show short labels under each bar
ax.set_xticks(x)
ax.set_xticklabels(bar_labels)
# Add value labels above bars
for rect, val, lab in zip(bars, values, bar_labels):
height = rect.get_height()
ax.text(rect.get_x() + rect.get_width() / 2, height + max(values)*0.01,
str(val), ha='center', va='bottom', fontsize=9)
# Optional: remove top/right spines for cleaner look
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
plt.tight_layout()
plt.show()
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
This file is in the public domain because it is the work of a computer algorithm or artificial intelligence and does not contain sufficient human authorship to support a copyright claim.
The United Kingdom (legislation) and Hong Kong (legislation) provide a limited term of copyright protection for computer-generated works of 50 years from creation.
|
| Legal disclaimer Most image-generating AI models were trained using works that are protected by copyright. In some cases, such models can output content with major copyrightable image elements which are identical to or derivative of the original training data, making these outputs derivative works. Accordingly, there is a risk that AI-generated media uploaded on Commons may violate the rights of the authors of the original works. See Commons:AI-generated media for additional details.
|
Category:AI-generated charts with matplotlib code
Category:CC-BY-4.0
Category:Commons statistics
Category:English-language bar charts
Category:English-language statistical charts
Category:GLAMorous
Category:Images which should use wikicharts
Category:Media statistics
Category:PD-algorithm
Category:PNG created with Matplotlib code
Category:Self-published work
Category:Videos
Category:Videos from public broadcasting by country
Category:Videos on Wikipedia
Category:Wiki Loves Broadcast
Category:Wikipedia statistics with language comparisons
