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

color : string
    color of an arrow

pad : float
    additional padding

alpha : float

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 hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page