File:Women members of the knesset.svg

Summary

Description
English: Number of Women Elected for the Knesset, by Election
עברית: מספר הנשים בכל כנסת בעת בחירתה, 1949-2015
Date
Source Own work, Data taken from the Knesset homepage
Author Oriaaaass~commonswiki
SVG development
InfoField
Source code
InfoField

Python code

# Number of Women Elected for the Knesset, by Election
import numpy as np
import matplotlib.pyplot as plt

# from: http://www.knesset.gov.il/mmm/data/pdf/m02184.pdf 
# format: ['# knesset (year)', number of women elected]
data = np.array([
	['1 (\'49)', 11],
	['2 (\'51)', 12], #11?
	['3 (\'55)', 12],
	['4 (\'59)', 9],
	['5 (\'61)', 10],
	['6 (\'65)', 9],
	['7 (\'69)', 8],
	['8 (\'73)', 10],
	['9 (\'77)', 8],
	['10 (\'81)', 8],
	['11 (\'84)', 10],
	['12 (\'88)', 7],
	['13 (\'92)', 11],
	['14 (\'96)', 9],
	['15 (\'99)', 14],
	['16 (\'03)', 17], #18?
	['17 (\'06)', 17],
	['18 (\'09)', 21],
	['19 (\'13)', 27],
	['20 (\'15)', 29],
	]).transpose()

num_elections = len(data[0])

# stylize plot
plt.style.use('./presentation.mplstyle')
fig, ax = plt.subplots()

ax.grid(which='minor', alpha=0.3)                                                
ax.grid(which='major', alpha=0.6)      

y_pos = np.arange(num_elections)
plt.barh(y_pos, data[1], align='center', color='#ffaf95')
plt.yticks(y_pos, data[0])
ax.yaxis.grid(False)
ax.set_xticks(range(0, 120, 5))
ax.set_xticks(range(0, 120), minor = True)

plt.xlim(0, 30)
plt.ylim(num_elections, y_pos[0] - 1)
   

# add labels
for i in y_pos:
	val = int(data[1][i])
	plt.annotate(str(val), (val - 1.2, i), va='center', ha = 'right')

plt.savefig('women_members_of_the_knesset.svg')

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.
Category:CC-BY-SA-4.0#Women%20members%20of%20the%20knesset.svg
Category:Self-published work Category:Members of the Knesset Category:Elections in Israel
Category:CC-BY-SA-4.0 Category:Elections in Israel Category:Members of the Knesset Category:Self-published work Category:Valid SVG created with Matplotlib code