File:US Trade Balance 1960 2009.svg
![File:US Trade Balance 1960 2009.svg](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/US_Trade_Balance_1960_2009.svg/765px-US_Trade_Balance_1960_2009.svg.png?20100828072324)
Size of this PNG preview of this SVG file: 765 × 495 pixels. Other resolutions: 320 × 207 pixels | 640 × 414 pixels | 1,024 × 663 pixels | 1,280 × 828 pixels | 2,560 × 1,656 pixels.
Original file (SVG file, nominally 765 × 495 pixels, file size: 58 KB)
File information
Structured data
Captions
Captions
Add a one-line explanation of what this file represents
![]() |
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 consent.
|
![]() |
Summary
editDescriptionUS Trade Balance 1960 2009.svg |
English: United States Balance of Trade, 1960–2009. Data Source: US Census Bureau Foreign Trade Division: https://www.census.gov/foreign-trade/statistics/historical/gands.txt Green dots: Positive trade balance Red dots: Negative trade balance (i.e., trade deficit) |
Date | |
Source |
Own work![]() This W3C-unspecified plot was created with Matplotlib. |
Author | Morn the Gorn |
Other versions |
![]() ![]() |
Code
editMade with Matplotlib:
#!/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)
start, end = 1960, 2009
y = range(start, end+1)
f = figure(figsize=(8.5, 5.5))
ax = f.add_axes((.13, .18, .8, .75))
plot(y, d, 'b-', lw = 1.5)
for a, b in zip(y, d):
if b > 0:
plot([a], [b], 'go', ms = 3.5, mec = 'g')
else:
plot([a], [b], 'ro', ms = 3.5, mec = 'r')
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((1960, 2010, -800, 100))
savefig("US Trade Balance 1960 2009.svg")
show()
Licensing
editPublic domainPublic domainfalsefalse |
![]() |
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. |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 07:23, 28 August 2010 | ![]() | 765 × 495 (58 KB) | Morn (talk | contribs) | different symbol color for positive/negative |
00:25, 28 August 2010 | ![]() | 765 × 495 (54 KB) | Morn (talk | contribs) | {{Information |Description={{en|1=United States Balance of Trade, 1960–2009. Data Source: US Census Bureau Foreign Trade Division: http://www.census.gov/foreign-trade/statistics/historical/gands.txt}} |Source={{own}} |Author=[[User:Morn the Gorn|Morn th |
You cannot overwrite this file.
File usage on Commons
The following 2 pages use this file: