Skip to main content

Matplotlib rcParams for geospatial plots

Project description

Geoplots

A library for geographic plotting and visualization, built on top of Matplotlib and Cartopy.

Installation

You can install the package using pip:

pip install geoplots

Usage

Initialization

Initialize a figure with a custom grid:

from geoplots import wrapper

fig, grids = wrapper.init(figsize=(10, 6), widths=[1, 2], heights=[1, 1])

Geographical Plots

Create plots with specific boundaries:

import matplotlib.pyplot as plt
from geoplots import bound
import cartopy.crs as ccrs

fig = plt.figure(figsize=(10, 5))
ax = fig.add_subplot(111, projection=ccrs.Robinson())
bound.robinson_bound(ax)

Icon Grids (Waffle Charts)

Create waffle charts with icons:

from geoplots.icongrid import Waffle

data = {'Cats': 30, 'Dogs': 25, 'Birds': 10}
fig = plt.figure(
    FigureClass=Waffle,
    rows=5,
    values=data,
    legend={'loc': 'upper left', 'bbox_to_anchor': (1.1, 1)}
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geoplots-0.2.0.tar.gz (704.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geoplots-0.2.0-py3-none-any.whl (704.3 kB view details)

Uploaded Python 3

File details

Details for the file geoplots-0.2.0.tar.gz.

File metadata

  • Download URL: geoplots-0.2.0.tar.gz
  • Upload date:
  • Size: 704.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for geoplots-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f54993610d8e758f6f3cad873ecba78929860f28c98c9896c771dc90ca630f2d
MD5 a877c6183f49f1b81c2eec0dcd930877
BLAKE2b-256 b8bc97106b22f6e3b2dafd202242a9e9281d22950c13f6d908b616d22f0bbfee

See more details on using hashes here.

File details

Details for the file geoplots-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: geoplots-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 704.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for geoplots-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec947b23aa2463282fa5d5ad2462b924f2256e4da46449a55ce594fe207b5f02
MD5 973d4c9ee16a0583a0c9f33bf493dfcf
BLAKE2b-256 3e6ee4a42f2322b4d82b24a447747016dcab89f6c62ba4a42576a5b2c630649a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page