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

  • DIVERGING - diverging seaborn 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.0.tar.gz (1.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: urbangrammar_graphics-1.2.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20200616 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

File hashes

Hashes for urbangrammar_graphics-1.2.0.tar.gz
Algorithm Hash digest
SHA256 19ddd10e58561ffccd2f111e6e329cbcb078dd97316025a846ca0ca197b7a6bf
MD5 31f3cfbcae3f740f13535547325948b4
BLAKE2b-256 200221614d2b1aca3ec5743cf932101a0c0026beeee517ad8c002e8d12a6790e

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