File:Administrative detainees israel en.svg

Summary

Description
English: Administrative Detainees in Israel (2000-2023)
Date
Source Own work, Data from B'Tselem
Author Woodybz
SVG development
InfoField
Source code
InfoField

Python code

# graph of Israel's administrative detainees
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as mtick


# from: B'tselem ,https://docs.google.com/spreadsheets/d/1OrT2d2JpIjPQlmkwuS0TdH2L0gj_YNPEy1j5bNNFEWI/edit#gid=8
# format: [Year, Administrative detainees, of which are minors]
data = np.array([
	
	 	[2023,1117,18],
		[2022,791,7],
		[2021,497,5],
		[2020,355,2],
		[2019,464,4],
		[2018,494,2],
		[2017,437,2],
		[2016,535,1],
		[2015,584,6],
		[2014,463,0],
		[2013,150,0],
		[2012,178,0],
		[2011,307,0],
		[2010,204,0],
		[2009,278,0],
		[2008,546,0],
		[2007,847,0],
		[2006,783,0],
		[2005,835,0],
		[2004,863,0],
		[2003,649,0],
		[2002,960,0],
		[2001,34,0]
	]).transpose()

val = np.row_stack((data[1],data[2]))
adult = (data[1]-data[2])
fig, ax = plt.subplots()
#colorblind not safe
# Stacked bar chart
ax.bar(data[0], adult)
ax.bar(data[0], data[2], bottom = adult)
ax.set_yticks(range(0, 101), minor = True)
ax.set_xticks(range(1900, 3000), minor = True)
plt.xlim(2000, 2024)
ax.grid(linestyle='dotted', c="black", alpha = 0.5)
ax.tick_params(top=True, right=True)
plt.title('Administrative Detainees in Israel')
plt.xlabel('Year')
plt.ylabel('# of detainees')
ax.legend(['Adult', 'Minors'])

plt.savefig('administrative_detainees_israel_en.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#Administrative%20detainees%20israel%20en.svgCategory:Self-published work
Category:Israel Category:Civil rights and liberties
Category:CC-BY-SA-4.0 Category:Civil rights and liberties Category:Israel Category:Self-published work Category:Valid SVG created with Matplotlib code