File:Executions in the Islamic Republic of Iran 2003 - 2013.svg

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

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Number of executions in the Islamic Republic of Iran from 2003 to 2013 based on Ahmed Shaheed's report.[1]
Date
Source Own work
Author دالبا
SVG development
InfoField
 
The source code of this SVG is invalid due to an error.
 
This W3C-invalid plot was created with Matplotlib.
Source code
InfoField

Python code

#!/usr/bin/env python
import numpy as np
import matplotlib.pyplot as plt

years = range(2004,2014)
executions = (99,91,177,317,346,388,543,661,522,624)

n = 10
X = np.array(years)
Y = np.array(executions)

fig = plt.figure()
ax = fig.add_subplot(111)

plt.title('Executions in the Islamic Republic of Iran: 2003 - 2013')

axistexts = ax.set_xticklabels([str(x) for x in X])

plt.setp(axistexts, rotation=-45, fontsize=10, clip_on=False)
plt.tick_params(\
    axis='x',          # changes apply to the x-axis
    which='both',      # both major and minor ticks are affected
    bottom='off',      # ticks along the bottom edge are off
    top='off',         # ticks along the top edge are off
    labelbottom='on')  # labels along the bottom edge are off

plt.xlim(X[0]-.2, X[-1]+1)
plt.xticks(X+.4, X)
plt.ylim(0, max(Y)+30)
plt.yticks([])
plt.ylabel('Executions')

plt.bar(X, Y, facecolor='#ff9999')

for x,y in zip(X,Y):
    plt.text(x+0.4, y+0.05, '%d' % y, ha='center', va= 'bottom')

plt.savefig('Executions in the Islamic Republic of Iran 2003 - 2013.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 3.0 Unported 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
current12:51, 20 March 2014Thumbnail for version as of 12:51, 20 March 2014720 × 540 (32 KB)Dalba (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

Metadata