Figure Friday 2025-w16


A visualization showing the percentage of households in a continent or country that own a particular pet.


This Figure Friday features data from 22 countries worldwide on the percentage of households that own a dog, cat, fish, or bird.

This project was largely completed with the assistance of ChatGPT (model GPT 4.1 via openrouter.ai). The reason is simple: I had previously worked on a similar project, and when using images instead of circles (markers) in a visual, or as explanations for x-values, it’s surprisingly easy to make lots of minor errors that can collectively cost hours to resolve because things may “almost” work, but not quite.

This time, there are two versions available: one showcasing average percentages per continent, and another displaying data for all countries, grouped by continent. The country-level visualization is interesting but overly crowded, which is why a continent-level aggregation was created. The first visual took approximately 4.5 hours to complete, including time spent sourcing flags (flagpedia.net), finding icons, creating graphics, and refining the concept—from a scatterplot to the final outcome. The second version took around 1.5 hours, as—even with detailed prompts—ChatGPT initially took its own approach and left me with a significant error to resolve manually.

The font used is “Indie Flower”; it’s not particularly readable, but it was chosen to settle a bet to use a font similar to Microsoft Comic Sans at least once.

Demo

Py.cafe continent version : demo en code

Py.cafe country version: demo en code

Community link: link

Example contains:

  • Examples where markers and text are replaced by images


Huisdier eigenaarschap per land.

Figure Friday is an initiative from the Dash/Plotly community. Every friday a new dataset is made available with some basic code to show a visual and an explanation of the subject. People are invited to adjust the code and improve the visual or create a small app. The next friday a zoom session takes place where some explain why they made what they made and others can give feedback, all in a constructive and respectful atmosphere. In the thread on the community site people share their visual, code and a demo if possible.