dotted-map
Draw maps on which land is a regular lattice of dots, as SVG, PNG and PDF images for graphic design and infographics.
The maps are drawn in an equal-area projection, or any other that PROJ supports, with coastlines found from the fraction of each dot's cell that is land. The land and country outlines of Natural Earth are built in, so a country, continent or subregion can be named to frame the map, to highlight it or to draw it alone. The documentation is at https://dotted-map.readthedocs.io.
Command line
$ dotted-map -o world.svg
$ dotted-map --region France --highlight 'France=#0055a4' --colour '#c5cad3' -o france.png
$ dotted-map --region Italy --only Italy --shape hexagon --halftone -o italy.pdf
$ dotted-map --region GBR IRL --pin London=-0.13,51.51 --pin Dublin=-6.26,53.35 --arc London Dublin -o uk.svg
$ dotted-map --projection '+proj=ortho +lon_0=-30 +lat_0=30' --sea '#dde1e8' -o globe.svg
$ dotted-map --list-regions
Python
from dotted_map import DottedMap
m = DottedMap(region="Japan", width=600, spacing=8)
m.add_pin(139.69, 35.69) # Tokyo.
m.save("japan.svg", colour="#bc002d", sea="#dde1e8", halftone=True)
data = m.to_dict() # Every dot, for use elsewhere.
Colours and sizes can be functions of longitude and latitude, for maps of data.
Installation
$ pip install dotted-map
The dotted-map package needs Python 3.10 or later, NumPy, pyproj and Shapely.
PNG and PDF output also needs CairoSVG
(pip install "dotted-map[cairo]") or the rsvg-convert program of
librsvg.
Licence
BSD-3-Clause. The land and country outlines are made from Natural Earth's 1:50m data, which is in the public domain.
Metadata
Release files for dotted-map 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dotted_map-0.1.0.tar.gz | 1.3 MB | Without provenance | Details for dotted_map-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dotted_map-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dotted_map-0.1.0-py3-none-any.whl |
Total release size: 2.3 MB
Release files / dotted_map-0.1.0.tar.gz
| Download URL | dotted_map-0.1.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5e933fb6fdd6016fe17cef09c67c14a82073377ca2c91725a50f0682cce8969
|
|
BLAKE2b-256 checksum How to use checksums |
4525ec7ec9a14e8a71223929c96068a88edc8f29a901215582a5881634259dbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / dotted_map-0.1.0-py3-none-any.whl
| Download URL | dotted_map-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b18a1d101e2a45c1234022b21bfeb35d97a386ed66d32cdf79808b0e12e5781d
|
|
BLAKE2b-256 checksum How to use checksums |
aca3284bacf24c49cd9de7f83059f96a3bfd943c246a3b1f872cd308ec1686c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for dotted-map 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.