Skip to main content

Visual style for Urban Grammar AI research project

Project description

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

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

urbangrammar_graphics-1.2.3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

urbangrammar_graphics-1.2.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file urbangrammar_graphics-1.2.3.tar.gz.

File metadata

  • Download URL: urbangrammar_graphics-1.2.3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for urbangrammar_graphics-1.2.3.tar.gz
Algorithm Hash digest
SHA256 9254d2f74acb427fd7ba79dad8c2d363b055fda23d0d9c2f3380e6b0e3b7f311
MD5 382f89b699f0cf51121e7701106adb4f
BLAKE2b-256 f1aeb7134f8514edcbd4d07f8861cb68fab44122f727ed2b02e44b2c24852a3a

See more details on using hashes here.

Provenance

File details

Details for the file urbangrammar_graphics-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: urbangrammar_graphics-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for urbangrammar_graphics-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 901dc974d638255babf3d088f3610ae5c194a8f1a1cf9107c25ebdab0fda87d8
MD5 d364067078dc5d65f32f1760d16b7261
BLAKE2b-256 1e1281590baf8815cf03142ae8cf82688272259ca3cb65dadcc22e188d6de8d4

See more details on using hashes here.

Provenance

Supported by

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