Jump to content

File:Chart of the 1983 video game crash.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 1,344 × 960 pixels, file size: 51 KB)

Summary

Description
English: Global revenue of the video game industry from 1978 to 1990, based on data from a Bloomberg article.[1] Data was taken from the Graph:Chart template in a December 2022 revision of Video game crash of 1983, see the wiki text of the archived article at [2]. This file is an SVG replacement for File:Chart of the 1983 video game crash.png, which had been created because the Graph extension has been disabled for a few years on Wikipedia.
Date
Source Own work
Author Morn
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

Source code
from pylab import *

matplotlib.rcParams.update({'font.size': 20})
figure(figsize = (14, 10))

years = range(1978, 1991)

data = {
"Arcade": [10,15,25,26,27,20,15,9,10,11,12,13,15],
"Consoles": [5,7,10,12,14,14,5,1,2,4,8,10,8],
"Handhelds": [0,0,0,0,0,0,0,0,0,0,0,1,2],
"Computers": [0,0,0,0,1,3,6,4,3,2,2,3,5],
}

col = ["#D7F372", "#7FF0A4", "#47E2D9", "#80C9F2", "#C9A7DE", "#ED88A9"]
col = col[:4][::-1]
c = 0
bottom = zeros(len(years))

for t, d in data.items():
    bar(years, d, label = t, color = col[c], bottom = bottom, width = .8)
    bottom += d
    c += 1

xlabel("Year")
ylabel("Billions USD")
title("Global revenues of the video game industry from 1978 to 1990")
# https://stackoverflow.com/questions/1726391/matplotlib-draw-grid-lines-behind-other-graph-elements
gca().set_axisbelow(True)
grid(axis = "y")
xticks(years, rotation = 40)
text(1987, -8, "Data from Bloomberg.com", size = 16)
# https://stackoverflow.com/questions/22263807/how-is-order-of-items-in-matplotlib-legend-determined
legend(*(
    [ x[i] for i in [3, 2, 1, 0] ]
    for x in plt.gca().get_legend_handles_labels()
), handletextpad = 0.75, loc = 'best')
axis([1977.4, 1990.6, 0, 45])
tight_layout()
savefig("Chart of the 1983 video game crash.svg")

show()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

6 February 2025

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:37, 7 February 2025Thumbnail for version as of 12:37, 7 February 20251,344 × 960 (51 KB)Morndraw grid behind the bars instead of on top
19:31, 6 February 2025Thumbnail for version as of 19:31, 6 February 20251,344 × 960 (51 KB)MornUploaded own work with UploadWizard

The following page uses this file:

Metadata