Skip to main content

Urban Grammar AI graphics

Visual style for Urban Grammar AI research project

See the Jupyter notebook in examples for an illustration of usage.

Available visual presets:

  • RGB - 0-256 RGB codes

  • COLORS - 0-1 RGB codes

  • HEX - HEX codes (['#333432', '#3b6e8c', '#bc5b4f', '#8fa37e', '#efc758', '#94666e'])

  • DIVERGING - diverging seaborn palette

  • DIVERGING_MPL - diverging matplotlib palette

  • CMAP - matplotlib colormap (6 primary colors)

  • get_colormap(n=18, randomize=True) - Get expanded colormap

  • get_tiles(tiles, token) - Get links to Mapbox tiles. tiles can be "roads", "labels" or "background"

  • north_arrow(f, ax, rotation=0, loc="upper left", size=0.02, linewidth=3, color="k", pad=0, alpha=1,) - Create north arrow

north_arrow parameters
----------------------

f : figure

ax: axis

rotation : float
    rotation of an arrow (in case map is rotated)

loc : string
    location of an arrow

size : float
    float denoting the length/width in terms
    of a fraction of the axis.

linewidth : float
    linewidth

color : string
    color of an arrow

pad : float
    additional padding

alpha : float
    alpha

Release files for urbangrammar-graphics 1.2.3

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

Source distribution (sdist)

Source distribution for urbangrammar-graphics 1.2.3
File Size Uploaded
urbangrammar_graphics-1.2.3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for urbangrammar-graphics 1.2.3
File Interpreter ABI Platform
urbangrammar_graphics-1.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / urbangrammar_graphics-1.2.3.tar.gz

Download URL urbangrammar_graphics-1.2.3.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9254d2f74acb427fd7ba79dad8c2d363b055fda23d0d9c2f3380e6b0e3b7f311
BLAKE2b-256 checksum
How to use checksums
f1aeb7134f8514edcbd4d07f8861cb68fab44122f727ed2b02e44b2c24852a3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / urbangrammar_graphics-1.2.3-py3-none-any.whl

Download URL urbangrammar_graphics-1.2.3-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
901dc974d638255babf3d088f3610ae5c194a8f1a1cf9107c25ebdab0fda87d8
BLAKE2b-256 checksum
How to use checksums
1e1281590baf8815cf03142ae8cf82688272259ca3cb65dadcc22e188d6de8d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.2.3 This release

2 release files

1.2.2

2 release files

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

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