Skip to main content

PyPlotFlags

A python alternative for ggflags R package. Creates a scatterplot where points are replaced by circular country flags.

Usasge

Installation

pip install pyplotflags

Core Function

flagscatterplot(x, y, country_codes, ax=None, zoom=0.1, flag_dir=DEFAULT_FLAG_DIR, **kwargs)

Parameters: - x, y: Arrays of coordinates. - country_codes: Array of ISO Alpha-2 country codes (same length as x and y). - ax: Matplotlib axes object (uses current axes if None). - zoom: Scaling factor for the flag images. - flag_dir: Directory containing the .png flag images. - **kwargs: Standard matplotlib keyword args for scatterplots

Metadata

Release files for pyplotflags 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyplotflags 0.1.2
File Size Uploaded
pyplotflags-0.1.2.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyplotflags 0.1.2
File Interpreter ABI Platform
pyplotflags-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.9 kB

Release files / pyplotflags-0.1.2.tar.gz

Download URL pyplotflags-0.1.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cb776d4ca236420e12d332ed92d88ea0bb439bc08fc46d3d54f0f23000904df2
BLAKE2b-256 checksum
How to use checksums
d0239279a137a92016161695528237ea37e4ac1bc5a5c366e52b1c2fab91e534
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / pyplotflags-0.1.2-py3-none-any.whl

Download URL pyplotflags-0.1.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d510169f9056920af5b4b31c298b50b547805bb67f3983b0d67c5a47bea6362a
BLAKE2b-256 checksum
How to use checksums
a7819f5506deb90c8517aa3f9243157acdf1d5c1c5ead095c886c24e138f1eee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page