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.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

urbangrammar_graphics-1.2.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: urbangrammar_graphics-1.2.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for urbangrammar_graphics-1.2.2.tar.gz
Algorithm Hash digest
SHA256 e9b4425d7ccf92ccbf68847eb6658a3a0424d1142f520700d604704c74069f6e
MD5 d19e4ab231e4674127c3b958caa69b2f
BLAKE2b-256 86e518efa1cad04b3e4328c4a2c0cacb9a1b723a72bb561d1c9ba81af9d88d14

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: urbangrammar_graphics-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for urbangrammar_graphics-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c730efbf029e9b8a53bfed373762d715eca1a85668607e2784c6a23c3288c38
MD5 053af6e76a50ee6e857558be0c7cece3
BLAKE2b-256 8f143fa601c25a7a145a7de1371ab6d368173ac5aa1b2b3d921dbd2eb444c58a

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