[GRASS-git] [OSGeo/grass] 389ce3: grass.jupyter: Automatically determine image size ...

Anna Petrasova noreply at github.com
Tue Apr 12 14:14:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 389ce3aa9c5c79d5f913dc38123ef1ee434e9c58
      https://github.com/OSGeo/grass/commit/389ce3aa9c5c79d5f913dc38123ef1ee434e9c58
  Author: Anna Petrasova <kratochanna at gmail.com>
  Date:   2022-04-12 (Tue, 12 Apr 2022)

  Changed paths:
    M python/grass/jupyter/display.py
    M python/grass/jupyter/region.py
    M python/grass/jupyter/utils.py

  Log Message:
  -----------
  grass.jupyter: Automatically determine image size based on region (#2285)

Using the aspect ratio of the computational region, automatically determine 2D rendered image dimensions. Defaults are now None and one or both values can be specified. Missing values are taken from defaults and modified to match aspect ratio of the computational region extent. Resulting images in notebooks are now smaller without white (empty) areas around the data. As a result, the image of the displayed data is often significantly bigger.




More information about the grass-commit mailing list