From Wikipedia, the free encyclopedia
Original file (SVG file, nominally 926 × 689 pixels, file size: 43 KB)
Summary
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:
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. https://creativecommons.org/licenses/by-sa/4.0 CC BY-SA 4.0 Creative Commons Attribution-Share Alike 4.0 true true English Add a one-line explanation of what this file represents
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time Thumbnail Dimensions User Comment
current 06:50, 20 December 2018 926 × 689 (43 KB) Ergzay User created page with UploadWizard
File usage
The following page uses this file:
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.