File:US Trade Balance 1980 2010.svg

This file has been superseded by US Trade Balance from 1960.svg. It is recommended to use the other file. Please note that deleting superseded images requires consensus.
new file
Category:Superseded
Category:Commons:Maint:Igen:T
Description
English: United States Balance of Trade, 1980–2010. Data Source: US Census Bureau Foreign Trade Division: https://www.census.gov/foreign-trade/statistics/historical/gands.txt
Date (UTC)
Source US Trade Balance 1980 2009.svg
Author
Permission
(Reusing this file)
I, the copyright holder of this work, hereby publish it under the following license:
Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Category:Self-published work#US%20Trade%20Balance%201980%202010.svgCategory:PD-self#US%20Trade%20Balance%201980%202010.svg
Category:Self-published work
Other versions Image:US Trade Balance 1980 2009.svg
Image:US Trade Balance 1960 2009.svg
SVG development
InfoField
 The SVG code is valid.
 This plot was created with Matplotlib.
Category:Valid SVG created with Matplotlib code#US%20Trade%20Balance%201980%202010.svg
This is a retouched picture, which means that it has been digitally altered from its original version. Modifications: updated for 2010. The original can be viewed here: US Trade Balance 1980 2009.svg: .

Category:SVG retouched pictures#US%20Trade%20Balance%201980%202010.svg
Source code
InfoField

Python code

#!/usr/bin/env python
 
from pylab import *
rc('xtick.major', pad=8)
 
#from https://www.census.gov/foreign-trade/statistics/historical/gands.txt:
d = (3.508,  4.195,  3.370,  4.210,  6.022,  4.664,  2.939,  2.604,  0.250,  0.091,  2.254,  -1.302,  -5.443,  1.900,  -4.293,  12.404,  -6.082,  -27.246,  -29.763,  -24.565,  -19.407,  -16.172,  -24.156,  -57.767,  -109.072,  -121.880,  -138.538,  -151.684,  -114.566,  -93.141,  -80.864,  -31.135,  -39.212,  -70.311,  -98.493,  -96.384,  -104.065,  -108.273,  -166.140,  -264.239,  -378.780,  -364.393,  -420.524,  -494.183,  -609.345,  -714.176,  -759.240,  -702.099,  -698.802,  -374.908, -497.824)
 
start, end = 1960, 2010
y = range(start, end+1)
 
f = figure(figsize=(7.5, 4.5))
ax = f.add_axes((.13, .18, .8, .75))
plot(y, d, 'r-', lw = 1.5)
plot(y, d, 'bo', ms = 5, mec = 'b')
grid(ls='-', alpha=.4)
 
xlabel('Year')
ylabel('Billions USD')
title('U.S. Trade Balance')
 
text(2010, -950, 'Data Source: US Census Bureau Foreign Trade Division', va = 'bottom', ha = 'right' , size = 10)
 
axis((1980, 2010, -800, 0))
savefig("US Trade Balance 1980 2010.svg")
 
show()

Original upload log

This image is a derivative work of the following images:

  • US Trade Balance 1980 2009.svg licensed with PD-self
    • 2010-08-27T23:55:19Z Morn 675x405 (55599 Bytes) {{Information |Description={{en|1=United States Balance of Trade, 1980–2009. Data Source: US Census Bureau Foreign Trade Divisionm http://www.census.gov/foreign-trade/statistics/historical/gands.txt }} |Source={{own}} |Auth

Uploaded with derivativeFX Category:Uploaded with derivativeFX

Category:Balance of trade#USA,%20Trade%20Balance Category:Economic statistics#USA,%20Trade%20Balance Category:Economic statistics for the United States#Trade%20Balance,%201980–2010 Category:Time series line charts#USA,%20Trade%20Balance Category:Images with Python source code Category:SVG created with Matplotlib
Category:Balance of trade Category:Commons:Maint:Igen:T Category:Economic statistics Category:Economic statistics for the United States Category:Images with Python source code Category:PD-self Category:SVG created with Matplotlib Category:SVG retouched pictures Category:Self-published work Category:Superseded Category:Time series line charts Category:Uploaded with derivativeFX Category:Valid SVG created with Matplotlib code