HAS-QGIS-scripts

Raster Barplot for QGIS

A QGIS Processing script that mimics GRASS’s r.barplot. It draws a barplot or piechart of a statistic computed for each category of a zonal (categorical) raster, and renders it in an interactive matplotlib window inside QGIS.

Features

Requirements

Installation

  1. Download raster_barplot.py from github
  2. In QGIS, open the Processing Toolbox (Ctrl+Alt+T).
  3. Click the Python icon at the top of the toolbox and choose Add Script to Toolbox….
  4. Select raster_barplot.py.

The algorithm appears under Scripts → Raster plots → Raster barplot.

To update the script later, edit it in place (right-click → Edit script) or re-add it via the same menu.

Usage

Open the algorithm and set:

Notes

AUTHOR

Paulo van Breugel, HAS green academy, Innovative Biomonitoring research group, Climate-robust Landscapes research group