Jump to content

File:US Net Gas Imports.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 926 × 689 pixels, file size: 43 KB)

Summary

Description
English: Trend of US imports, exports and net imports (imports minus exports) of natural gas over time (data from US EIA). Chart constructed by subtracting US natural gas exports (at USEIA website http://www.eia.gov/dnav/ng/ng_move_expc_s1_a.htm ) from imports (at USEIA website: http://www.eia.gov/dnav/ng/ng_move_impc_s1_m.htm )
Date
Source Own work
Author Ergzay

Generated with:

import csv
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.ticker as plticker

lines = [None, None, None]
with open('Downloads/Workbook1.csv','r') as csvfile:
    plots = csv.reader(csvfile, delimiter=',')
    year = []; exports=[]; imports=[]; net_imports=[];
    for row in plots:
        year.append(int(row[0]))
        exports.append(int(row[1])/1000)
        imports.append(int(row[2])/1000)
        net_imports.append(int(row[3])/1000)
plt.rcParams.update({'font.size': 12, 'font.style': 'normal'})
fig, ax = plt.subplots()
ax.clear()
lines[0] = ax.plot(year, exports, 'b', label="Exports")[0]
lines[1] = ax.plot(year, imports, 'g', label="Imports")[0]
lines[2] = ax.plot(year, net_imports, 'r', label="Total Net Imports")[0]
ax.set(xlabel='Year', ylabel='Billions of Cubic Feet per Year')
ax.grid()
ax.legend(loc='upper left')
ax.xaxis.set_major_locator(plticker.MultipleLocator(5))
ax.yaxis.set_major_locator(plticker.MultipleLocator(500))
for line in lines:
    line.set_linewidth(3)
    line.set_solid_capstyle('round')
fig.set_size_inches(12,9, forward=True)
fig.savefig('US Net Gas Imports.svg', dpi=200, bbox_inches='tight')


Licensing

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

19 December 2018

File history

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

Date/TimeThumbnailDimensionsUserComment
current06:50, 20 December 2018Thumbnail for version as of 06:50, 20 December 2018926 × 689 (43 KB)ErgzayUser created page with UploadWizard

The following page uses this file:

Metadata