Microsheep

MicroSheep's page

Rummaging IT fields since the 8-bits personal computers era.

6-Minute Read

The results of the French legislative elections are given by constituency, but what is the distribution of votes by municipality? A geographical visualization in the form of a choropleth map makes it possible to study it.

It is also an opportunity to illustrate some of the many possibilities of the visualization library Folium

Each constituency map provides the results of the candidates in the second round of the legislative elections:

  • The percentages of the candidates are divided into 6 levels of color to highlight the municipalities where they have their highest or lowest results.
  • The selector on the right side of the map allows you to choose the visualization of each candidate.
  • The results by municipality are accessible by hovering over the municipality.
  • The color palettes are chosen for their readability and do not represent the political orientation of the candidates.

The map of the 12th constituency of Nord, below, is an example.

12th constituency of Nord

The Python source code, the data sources used, and information about the tools used are available on a Github repository (in French).

Limitations

  • For obvious reasons, as there are no municipalities for French citizens living around the Globe, the constituencies of French citizens living abroad (department code ZZ) are not displayed.
  • Due to the lack of cartographic data, the results of the following overseas territories are NOT represented:
    • New Caledonia (department code ZZ of the file from data.gouv.fr)
    • French Polynesia (department code ZP)
    • Saint Pierre and Miquelon (department code ZS)
    • Wallis and Futuna (department code ZW)
    • Saint Martin / Saint Barthélemy (department code ZX)

The cartographic information for the municipalities comes from the excellent website of Grégoire David. However, some mergers of municipalities have taken place since his work and 2022. In this case, the municipalities are not represented and appear in white.

Results

Auvergne-Rhône-Alpes

Ain

Allier

Ardèche

Cantal

  • Constituencies: 01, 02

Drôme

Haute-Loire

  • Constituencies: 01, 02

Haute-Savoie

Isère

Loire

Puy-de-Dôme

Rhône

Savoie

Bourgogne-Franche-Comté

Côte-d’Or

Doubs

Haute-Saône

  • Constituencies: 01, 02

Jura

Nièvre

  • Constituencies: 01, 02

Saône-et-Loire

Territoire de Belfort

  • Constituencies: 01, 02

Yonne

Bretagne

Côtes-d’Armor

Finistère

Ille-et-Vilaine

Morbihan

Centre-Val de Loire

Cher

Eure-et-Loir

Indre

  • Constituencies: 01, 02

Indre-et-Loire

Loir-et-Cher

Loiret

Corse

Corse-du-Sud

  • Constituencies: 01, 02

Haute-Corse

  • Constituencies: 01, 02

Grand Est

Ardennes

Aube

Bas-Rhin

Haut-Rhin

Haute-Marne

  • Constituencies: 01, 02

Marne

Meurthe-et-Moselle

Meuse

  • Constituencies: 01, 02

Moselle

Vosges

Guadeloupe

Guadeloupe

Guyane

Guyane

  • Constituencies: 01, 02

Hauts-de-France

Aisne

Nord

Oise

Pas-de-Calais

Somme

La Réunion

La Réunion

Martinique

Martinique

Mayotte

Mayotte

  • Constituencies: 01, 02

Normandie

Calvados

Eure

Manche

Orne

Seine-Maritime

Nouvelle-Aquitaine

Charente

Charente-Maritime

Corrèze

  • Constituencies: 01, 02

Creuse

  • Constituencies: 01

Deux-Sèvres

Dordogne

Gironde

Haute-Vienne

Landes

Lot-et-Garonne

Pyrénées-Atlantiques

Vienne

Occitanie

Ariège

  • Constituencies: 01, 02

Aude

Aveyron

Gard

Gers

  • Constituencies: 01, 02

Haute-Garonne

Hautes-Pyrénées

  • Constituencies: 01, 02

Hérault

Lot

  • Constituencies: 01, 02

Lozère

  • Constituencies: 01

Pyrénées-Orientales

Tarn

Tarn-et-Garonne

  • Constituencies: 01, 02

Pays de la Loire

Loire-Atlantique

Maine-et-Loire

Mayenne

  • Constituencies: 01, 02

Sarthe

Vendée

Provence-Alpes-Côte d’Azur

Alpes-Maritimes

Alpes-de-Haute-Provence

  • Constituencies: 01, 02

Bouches-du-Rhône

Hautes-Alpes

  • Constituencies: 01, 02

Var

Vaucluse

Île-de-France

Essonne

Hauts-de-Seine

Paris

Seine-Saint-Denis

Seine-et-Marne

Val-d’Oise

Val-de-Marne

Yvelines

Recent Posts

Categories

About

What can we find here?