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
Close
Hashes for urbangrammar_graphics-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e268fc9c957ee9d69bbd495d53526eb791737ba92f1159d47ee76042399b742a |
|
MD5 | 47259028aa6af2120e2e83d2062c148d |
|
BLAKE2b-256 | 0cdddbf29aca2851c72124b836334641c37aaa499f0cd3464e56ee1ffd6cfe7a |