LE GOURRIEREC Titouan |
Table of Contents
This project provides an easy way to visualize parliamentary seating in the form of a hemicycle, illustrating the distribution of deputies by party. It simplifies the process of generating accurate and clear representations of legislative assemblies, making it useful for data analysis, presentations, and political studies. The tool is flexible and customizable to fit different parliamentary structures and compositions.
For more information, you can read the article I published in the Python in Plain English journal on Medium: How to Create a Parliamentary Hemicycle Data Visualization in Python.
To select different parameters, you can use the demo application here:
Then, choose the parameters NUM_ROWS
, INITIAL_RADIUS
, RADIUS_INCREMENT
, and POINT_SIZE
in the chart.ipynb
file.
You also need to provide the distribution of the hemicycle in the following format:
parties = [
Party('Party 1', '#A11770', 142),
Party('Party 2', '#D9669E', 13),
Party('Party 3', '#FE9F10', 257),
Party('Party 4', '#0690C5', 73),
Party('Party 5', '#8D6026', 72),
Party('Unassigned', 'unassigned', 20),
]
where the first element of Party() is the party name, the second element is the party's hexadecimal color code (if 'unassigned', it will be a white circle with a grey border), and the third element is the number of deputies in the party.
LE GOURRIEREC Titouan - [email protected]
Repository Link: https://github.com/titouanlegourrierec/Hemicycle-Chart