HAS-QGIS-scripts

Raster Scatterplot for QGIS

A QGIS Processing script that draws a scatterplot of the values of two rasters — one raster on each axis — and renders it in an interactive matplotlib window inside QGIS.

Values are sampled at random point locations drawn from the overlapping extent of the two rasters, and each raster is sampled at those same locations.

Features

Requirements

Installation

  1. Download raster_scatterplot.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_scatterplot.py.

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

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