24.1.12. Plots
24.1.12.1. Bar plot
Creates a bar plot from a category and a layer field.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Input vector layer |
Category field name |
|
[tablefield: any] |
Categorical field to use for grouping the bars (X axis) |
Value field |
|
[tablefield: any] |
Value to use for the plot (Y axis). |
Bar plot |
|
[html] Default: |
Specify the HTML file for the plot. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Bar plot |
|
[html] |
HTML file with the plot. Available in the . |
Python code
Algorithm ID: qgis:barplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.1.12.2. Box plot
Creates a box plot from a category field and a numerical layer field.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Input vector layer |
Category name field |
|
[tablefield: any] |
Categorical field to use for grouping the boxes (X axis) |
Value field |
|
[tablefield: any] |
Value to use for the plot (Y axis). |
Additional statistic lines |
|
[enumeration] Default: 0 |
Additional statistics information to add to the plot. One of:
|
Box plot |
|
[html] Default: |
Specify the HTML file for the plot. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Box plot |
|
[html] |
HTML file with the plot. Available in the . |
Python code
Algorithm ID: qgis:boxplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.1.12.3. Generate elevation profile image
Creates an elevation profile image from a list of map layers and an optional terrain layer.
Parameters
Basic parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Profile curve |
|
[vector: line] |
The line layer representing the profile curve along which the elevation profile will be generated |
Map layers |
|
[layer] [list] |
The list of map layers to include in the elevation profile |
Chart width (in pixels) |
|
[number] Default: 400 Minimum value: 0 |
The width of the output chart in pixels. |
Chart height (in pixels) |
|
[number] Default: 300 Minimum value: 0 |
The height of the output chart in pixels. |
Terrain layer Optional |
|
[raster] |
A terrain layer (e.g., DEM) to use for elevation data. If not provided, elevation data will be derived from the map layers. |
Advanced parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Chart minimum distance (X axis) Optional |
|
[number] |
The minimum distance (X axis) to display on the chart. If not specified, the chart will auto-scale. |
Chart maximum distance (X axis) Optional |
|
[number] |
The maximum distance (X axis) to display on the chart. If not specified, the chart will auto-scale. |
Chart minimum elevation (Y axis) Optional |
|
[number] |
The minimum elevation (Y axis) to display on the chart. If not specified, the chart will auto-scale. |
Chart maximum elevation (Y axis) Optional |
|
[number] |
The maximum elevation (Y axis) to display on the chart. If not specified, the chart will auto-scale. |
Chart text color Optional |
|
[color] |
The color of the text in the chart (e.g., axis labels, titles). |
Chart background color Optional |
|
[color] |
The background color of the chart. |
Chart border color Optional |
|
[color] |
The color of the chart border. |
Profile tolerance |
|
[number] Default: 5 Minimum value: 0 |
Defines how far a feature (vector point, line, polygon, or point cloud) can be from the profile line to be included in the results. It uses map units and does not affect other layer types. |
Chart DPI |
|
[number] Default: 96 Minimum value: 0 |
The resolution of the output image in dots per inch (DPI). |
Output image |
|
[file] Default: |
Specify the image file for the plot. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Output image |
|
[file] |
The generated elevation profile image in the specified format. |
Python code
Algorithm ID: qgis:generateelevationprofileimage
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.1.12.4. Mean and standard deviation plot
Creates a box plot with mean and standard deviation values.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input table |
|
[vector: any] |
Input vector layer |
Category name field |
|
[tablefield: any] |
Categorical field to use for grouping the boxes (X axis) |
Value field |
|
[tablefield: any] |
Value to use for the plot (Y axis). |
Plot |
|
[html] Default: |
Specify the HTML file for the plot. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Plot |
|
[html] |
HTML file with the plot. Available in the . |
Python code
Algorithm ID: qgis:meanandstandarddeviationplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.1.12.5. Polar plot
Generates a polar plot based on the value of an input vector layer.
Two fields must be entered as parameters: one that defines the category each feature (to group features) and another one with the variable to plot (this has to be a numeric one).
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Input vector layer |
Category name field |
|
[tablefield: any] |
Categorical field to use for grouping the features (X axis) |
Value field |
|
[tablefield: any] |
Value to use for the plot (Y axis). |
Polar plot |
|
[html] Default: |
Specify the HTML file for the plot. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Polar plot |
|
[html] |
HTML file with the plot. Available in the . |
Python code
Algorithm ID: qgis:polarplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.1.12.6. Raster layer histogram
Generates a histogram with the values of a raster layer.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[raster] |
Input raster layer |
Band number |
|
[raster band] |
Raster band to use for the histogram |
number of bins |
|
[number] Default: 10 |
The number of bins to use in the histogram (X axis). Minimum 2. |
Histogram |
|
[html] Default: |
Specify the HTML file for the plot. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Histogram |
|
[html] |
HTML file with the plot. Available in the . |
Python code
Algorithm ID: qgis:rasterlayerhistogram
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.1.12.7. Vector layer histogram
Generates a histogram with the values of the attribute of a vector layer.
The attribute to use for computing the histogram must be numeric.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Input vector layer |
Attribute |
|
[tablefield: any] |
Value to use for the plot (Y axis). |
number of bins |
|
[number] Default: 10 |
The number of bins to use in the histogram (X axis). Minimum 2. |
Histogram |
|
[html] Default: |
Specify the HTML file for the plot. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Histogram |
|
[html] |
HTML file with the plot. Available in the . |
Python code
Algorithm ID: qgis:vectorlayerhistogram
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.1.12.8. Vector layer scatterplot
Creates a simple X
- Y
scatter plot for a vector layer.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Input vector layer |
X attribute |
|
[tablefield: any] |
Field to use for the X axis |
Y attribute |
|
[tablefield: any] |
Field to use for the Y axis |
Scatterplot |
|
[html] Default: |
Specify the HTML file for the plot. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Scatterplot |
|
[html] |
HTML file with the plot. Available in the . |
Python code
Algorithm ID: qgis:vectorlayerscatterplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.
24.1.12.9. Vector layer scatterplot 3D
Creates a 3D scatter plot for a vector layer.
Parameters
Label |
Name |
Type |
Description |
---|---|---|---|
Input layer |
|
[vector: any] |
Input vector layer |
X attribute |
|
[tablefield: any] |
Field to use for the X axis |
Y attribute |
|
[tablefield: any] |
Field to use for the Y axis |
Z attribute |
|
[tablefield: any] |
Field to use for the Z axis |
Histogram |
|
[html] Default: |
Specify the HTML file for the plot. One of:
|
Outputs
Label |
Name |
Type |
Description |
---|---|---|---|
Histogram |
|
[html] |
HTML file with the plot. Available in the . |
Python code
Algorithm ID: qgis:scatter3dplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
The algorithm id is displayed when you hover over the algorithm in the Processing Toolbox. The parameter dictionary provides the parameter NAMEs and values. See Using processing algorithms from the console for details on how to run processing algorithms from the Python console.