25.1.10. Plots

25.1.10.1. Bar plot

Creates a bar plot from a category and a layer field.

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

ENTRADA

[vector: any]

Camada vetorial de entrada

Category field name

NAME_FIELD

[tablefield: any]

Categorical field to use for grouping the bars (X axis)

Value field

VALUE_FIELD

[tablefield: any]

Value to use for the plot (Y axis).

Bar plot

SAÍDA

[html]

Default: [Save to temporary file]

Specify the HTML file for the plot. One of:

  • Salvar como Arquivo Temporário

  • Save to File…

Saídas

Etiqueta

Nome

Tipo

Descrição

Bar plot

SAÍDA

[html]

HTML file with the plot. Available in the Processing ► Result Viewer.

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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.

25.1.10.2. Box plot

Creates a box plot from a category field and a numerical layer field.

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

ENTRADA

[vector: any]

Camada vetorial de entrada

Category name field

NAME_FIELD

[tablefield: any]

Categorical field to use for grouping the boxes (X axis)

Value field

VALUE_FIELD

[tablefield: any]

Value to use for the plot (Y axis).

Additional statistic lines

MSD

[enumeration]

Padrão: 0

Additional statistics information to add to the plot. One of:

  • 0 — Show Mean

  • 1 — Show Standard Deviation

  • 2 — Don’t show mean and standard deviation

Box plot

SAÍDA

[html]

Default: [Save to temporary file]

Specify the HTML file for the plot. One of:

  • Salvar como Arquivo Temporário

  • Save to File…

Saídas

Etiqueta

Nome

Tipo

Descrição

Box plot

SAÍDA

[html]

HTML file with the plot. Available in the Processing ► Result Viewer.

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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.

25.1.10.3. Mean and standard deviation plot

Creates a box plot with mean and standard deviation values.

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Input table

ENTRADA

[vector: any]

Camada vetorial de entrada

Category name field

NAME_FIELD

[tablefield: any]

Categorical field to use for grouping the boxes (X axis)

Value field

VALUE_FIELD

[tablefield: any]

Value to use for the plot (Y axis).

Plot

SAÍDA

[html]

Default: [Save to temporary file]

Specify the HTML file for the plot. One of:

  • Salvar como Arquivo Temporário

  • Save to File…

Saídas

Etiqueta

Nome

Tipo

Descrição

Plot

SAÍDA

[html]

HTML file with the plot. Available in the Processing ► Result Viewer.

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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.

25.1.10.4. 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).

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

ENTRADA

[vector: any]

Camada vetorial de entrada

Category name field

NAME_FIELD

[tablefield: any]

Categorical field to use for grouping the features (X axis)

Value field

VALUE_FIELD

[tablefield: any]

Value to use for the plot (Y axis).

Polar plot

SAÍDA

[html]

Default: [Save to temporary file]

Specify the HTML file for the plot. One of:

  • Salvar como Arquivo Temporário

  • Save to File…

Saídas

Etiqueta

Nome

Tipo

Descrição

Polar plot

SAÍDA

[html]

HTML file with the plot. Available in the Processing ► Result Viewer.

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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.

25.1.10.5. Raster layer histogram

Generates a histogram with the values of a raster layer.

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

ENTRADA

[raster]

Camada raster de entrada

Band number

BAND

[raster band]

Raster band to use for the histogram

number of bins

BINS

[number]

Padrão: 10

The number of bins to use in the histogram (X axis). Minimum 2.

Histogram

SAÍDA

[html]

Default: [Save to temporary file]

Specify the HTML file for the plot. One of:

  • Salvar como Arquivo Temporário

  • Save to File…

Saídas

Etiqueta

Nome

Tipo

Descrição

Histogram

SAÍDA

[html]

HTML file with the plot. Available in the Processing ► Result Viewer.

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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.

25.1.10.6. 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.

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

ENTRADA

[vector: any]

Camada vetorial de entrada

Atributo

CAMPO

[tablefield: any]

Value to use for the plot (Y axis).

number of bins

BINS

[number]

Padrão: 10

The number of bins to use in the histogram (X axis). Minimum 2.

Histogram

SAÍDA

[html]

Default: [Save to temporary file]

Specify the HTML file for the plot. One of:

  • Salvar como Arquivo Temporário

  • Save to File…

Saídas

Etiqueta

Nome

Tipo

Descrição

Histogram

SAÍDA

[html]

HTML file with the plot. Available in the Processing ► Result Viewer.

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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.

25.1.10.7. Vector layer scatterplot

Creates a simple X - Y scatter plot for a vector layer.

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

ENTRADA

[vector: any]

Camada vetorial de entrada

X attribute

XFIELD

[tablefield: any]

Field to use for the X axis

Y attribute

YFIELD

[tablefield: any]

Field to use for the Y axis

Scatterplot

SAÍDA

[html]

Default: [Save to temporary file]

Specify the HTML file for the plot. One of:

  • Salvar como Arquivo Temporário

  • Save to File…

Saídas

Etiqueta

Nome

Tipo

Descrição

Scatterplot

SAÍDA

[html]

HTML file with the plot. Available in the Processing ► Result Viewer.

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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.

25.1.10.8. Vector layer scatterplot 3D

Creates a 3D scatter plot for a vector layer.

Parâmetros

Etiqueta

Nome

Tipo

Descrição

Camada de entrada

ENTRADA

[vector: any]

Camada vetorial de entrada

X attribute

XFIELD

[tablefield: any]

Field to use for the X axis

Y attribute

YFIELD

[tablefield: any]

Field to use for the Y axis

Z attribute

ZFIELD

[tablefield: any]

Field to use for the Z axis

Histogram

SAÍDA

[html]

Default: [Save to temporary file]

Specify the HTML file for the plot. One of:

  • Salvar como Arquivo Temporário

  • Save to File…

Saídas

Etiqueta

Nome

Tipo

Descrição

Histogram

SAÍDA

[html]

HTML file with the plot. Available in the Processing ► Result Viewer.

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 Usando os algoritmos do processamento a partir do Terminal Python. for details on how to run processing algorithms from the Python console.