File:US distribution of wealth, 2013.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 575 × 426 pixels, file size: 40 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: U.S. distribution of net wealth, 2013. Based on the Survey of Consumer Finance. The chart is divided into the top 20% (blue), upper middle 20% (orange), middle 20% (red), and bottom 40% (green). (The net wealth of people in the lowest 20% is negative because of debt.)
Date
Source Own work
Author Omegatron
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

Source code
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl

bin_sizes = np.array((1, 4, 5, 10, 20, 20, 40, 0))[::-1]
bin_edges = np.cumsum(bin_sizes)

net_worth_2007 = np.array((34.6,	27.3,	11.2,	12,		10.9,	4,	0.2))[::-1]
net_worth_2013 = np.array((36.7,	28.2,	12.2,	11.8,	9.3,	2.7,	-0.9))[::-1]

fake_data = bin_edges[:-1]+1

plt.grid(True, which='both')

bar_list = plt.hist(fake_data, bins=bin_edges, weights=net_worth_2013,
                    normed=True)

# Colors from pie chart template
bar_list[2][0].set_color('#008000')
bar_list[2][1].set_color('#bc514c')
bar_list[2][2].set_color('#ffa500')
bar_list[2][3].set_color('#96b2da')
bar_list[2][4].set_color('#588cdb')
bar_list[2][5].set_color('#385f96')
bar_list[2][6].set_color('#273f64')


plt.title('US Distribution of Wealth, 2013')
plt.figtext(0.01, 0.01, 'Edward N. Wolff, 2014', horizontalalignment='left',
            size='small')
plt.xlabel('% of population')
plt.ylabel('% of wealth / % of population')
plt.margins(0, 0)


def y_to_percent(y, position):
    s = f'{100 * y:.0f}%'
    return s


def x_to_percent(y, position):
    s = f'{y:.0f}%'
    return s


# Set the formatter
plt.gca().yaxis.set_major_formatter(mpl.ticker.FuncFormatter(y_to_percent))
plt.gca().xaxis.set_major_formatter(mpl.ticker.FuncFormatter(x_to_percent))

Source: Edward N. Wolff, Household Wealth Trends in the United States, 1962-2013: What Happened over the Great Recession?, NBER Working Paper No. 20733, December 2014

http://www.nber.org/papers/w20733

Based on: Survey of Consumer Finance, Federal Reserve.

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 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.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

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

Date/TimeThumbnailDimensionsUserComment
current03:18, 17 September 2017Thumbnail for version as of 03:18, 17 September 2017575 × 426 (40 KB)Omegatron (talk | contribs)User created page with UploadWizard

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata