Skip to content

pixel-map

Plot the geo data into a terminal.

Generates a Matplotlib canvas that is rendered to an image and later transformed into a list of unicode characters.

Usage:

$ pixel-map [OPTIONS] {files}...

Arguments:

  • files...: List of files to display. Those could be any that can be opened by GeoPandas. [required]

Options:

  • -b, --bbox BBOX: Clip the map to a given bounding box. Expects 4 floating point numbers separated by commas.
  • -r, --renderer <str>: Renderer used for generating terminal output. Possible values: all, ascii, ascii-bw, block, braille, braille-bw, half, quad, space. [default: (block)]
  • --dark / --light: Uses the predefined dark or light style. Can be overriden with user defined style. [default: dark]
  • -c, --color COLOR: Pass color or list of colours per each geo file.
  • -a, --alpha, --opacity FLOAT: Pass opacity or list of opacities per each geo file.
  • -t, --basemap, --tileset TILES: Set the basemap. Can be a name of a basemaplibre style, or a URL or a path of a MapLibre style JSON. Raster tiles (like names of xyzservices) need contextily to be installed. Defaults to OpenFreeMap.Dark if --dark or OpenFreeMap.Positron if --light.
  • -f, --no-border, --fullscreen: Removes the border around the map.
  • --no-background, --no-bg: Removes the background of the map and plots only geo data.
  • --background-color, --bg-color COLOR: Set the background color. Can be used together with --no-background.
  • --width INT: Override the current console width.
  • --height INT: Override the current console height.
  • --dpi INT: DPI used to rasterise the matplotlib plot. Setting this to 8 (matching the renderer's subpixel width) skips the PIL resize for a faster path; higher values improve anti-aliasing quality. [default: 8]
  • --example, --example-files: Can be used to load one of example files based on name. Possible values: london_buildings, london_park, london_water, monaco_buildings.
  • -v, --version: Show the application's version and exit.
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.