File:Gini coefficient in Iran (1386 to 1392 SH).svg

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

Original file(SVG file, nominally 720 × 540 pixels, file size: 33 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Gini coefficient in Iran (1386 to 1392 SH)
Date
Source Own work
Author دالبا
#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt
import re
from pprint import pprint as pp


# The following numbers were copied from http://www.cbi.ir/page/12660.aspx
# which is a PDF file from the official website of Central Bank of Iran.
# Also see: http://www.cbi.ir/showitem/12659.aspx (in Persian)

years = list(range(1386, 1393))
gini_index = [.4045, .3859, .3939, .3813, .3750, .3834, .3944]
inflation_rate = [18.4, 25.4, 10.8, 12.4, 21.5, 30.5, 34.7]

n = len(years)
xs = np.array(years)
ys = np.array(gini_index)
ys2 = np.array(inflation_rate)

plt.style.use('grayscale')
fig = plt.figure()
ax = fig.add_subplot(111)

axistexts = ax.set_xticklabels([str(x) for x in xs])
plt.setp(axistexts, rotation=-45)

plt.xlim(xs[0] - 1, xs[-1] + 1)
plt.xticks(xs)
plt.xlabel('Year')
plt.ylim(.37, .41)
plt.yticks(np.arange(.37, .41, .005))
plt.ylabel('Gini coefficient')


plt.plot(xs, ys, marker='o')

plt.grid(which='both')
plt.subplots_adjust(bottom=0.15)

plt.savefig('Gini_coefficient_Iran.svg')
plt.show()

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
current18:50, 23 January 2015Thumbnail for version as of 18:50, 23 January 2015720 × 540 (33 KB)Dalba (talk | contribs)marker='o'
18:41, 23 January 2015Thumbnail for version as of 18:41, 23 January 2015720 × 540 (32 KB)Dalba (talk | contribs)plt.subplots_adjust(bottom=0.15)
18:37, 23 January 2015Thumbnail for version as of 18:37, 23 January 2015720 × 540 (32 KB)Dalba (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata