Important
翻译是一项社区工作:ref:你可以加入<translation_guidelines>。此页面目前翻译进度为 43.67%。
24.1.14. Plots
24.1.14.1. Bar plot
Creates a bar plot from a category and a layer field.
Fig. 24.32 Bar plot example
参数
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
输入图层 |
|
[vector: geometry] |
输入矢量图层 |
Category field name |
|
[tablefield: any] |
Categorical field to use for grouping the bars (X axis) |
Value field |
|
[tablefield: numeric] |
Value to use for the plot (Y axis). |
Title 可选 |
|
[string] Default: "" |
Title of the plot |
X-axis Title 可选 |
|
[string] Default: "" |
If empty, the name of the category field is used. With a single space, the axis title is hidden. |
Y-axis Title 可选 |
|
[string] Default: "" |
If empty, the name of the value field is used. With a single space, the axis title is hidden. |
Bar plot |
|
[html] 默认: |
Specify the HTML file for the plot. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Bar plot |
|
[html] |
HTML file with the plot. Available in the . |
Python代码
Algorithm ID: qgis:barplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.14.2. Box plot
Creates a box plot from a category field and a numerical layer field.
Fig. 24.33 Example of box plot
参数
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
输入图层 |
|
[vector: geometry] |
输入矢量图层 |
Category name field |
|
[tablefield: any] |
Categorical field to use for grouping the boxes (X axis) |
Value field |
|
[tablefield: numeric] |
Value to use for the plot (Y axis). |
Additional statistic lines |
|
[enumeration] Default: 0 |
Additional statistics information to add to the plot. One of:
|
Title 可选 |
|
[string] Default: "" |
Title of the plot |
X-axis Title 可选 |
|
[string] Default: "" |
If empty, the name of the category field is used. With a single space, the axis title is not shown. |
Y-axis Title 可选 |
|
[string] Default: "" |
If empty, the name of the value field is used. With a single space, the axis title is not shown. |
Box plot |
|
[html] 默认: |
Specify the HTML file for the plot. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Box plot |
|
[html] |
HTML file with the plot. Available in the . |
Python代码
Algorithm ID: qgis:boxplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.14.3. Generate elevation profile image
Creates an elevation profile image from a list of map layers and an optional terrain layer.
Fig. 24.34 Example of elevation profile
参数
Basic parameters
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Profile curve |
|
[geometry: line] |
The LineString geometry (WKT or GeoJSON) 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) |
|
[numeric: integer] Default: 400 Minimum value: 0 |
The width of the output chart in pixels. |
Chart height (in pixels) |
|
[numeric: integer] Default: 300 Minimum value: 0 |
The height of the output chart in pixels. |
Terrain layer 可选 |
|
[栅格] |
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
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Chart minimum distance (X axis) 可选 |
|
[numeric: double] |
The minimum distance (X axis) to display on the chart. If not specified, the chart will auto-scale. |
Chart maximum distance (X axis) 可选 |
|
[numeric: double] |
The maximum distance (X axis) to display on the chart. If not specified, the chart will auto-scale. |
Chart minimum elevation (Y axis) 可选 |
|
[numeric: double] |
The minimum elevation (Y axis) to display on the chart. If not specified, the chart will auto-scale. |
Chart maximum elevation (Y axis) 可选 |
|
[numeric: double] |
The maximum elevation (Y axis) to display on the chart. If not specified, the chart will auto-scale. |
Chart text color 可选 |
|
[color] |
The color of the text in the chart (e.g., axis labels, titles). |
Chart background color 可选 |
|
[color] |
The background color of the chart. |
Chart border color 可选 |
|
[color] |
The color of the chart border. |
Profile tolerance |
|
[numeric: double] Default: 5.0 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 |
|
[numeric: integer] Default: 96 Minimum value: 0 |
The resolution of the output image in dots per inch (DPI). |
Output image |
|
[file] 默认: |
Specify the image file for the plot. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Output image |
|
[file] |
The generated elevation profile image in the specified format. |
Python代码
Algorithm ID: native:generateelevationprofileimage
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.14.4. Mean and standard deviation plot
Creates a box plot with mean and standard deviation values.
Fig. 24.35 Example of mean and standard deviation plot
参数
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Input table |
|
[vector: geometry] |
输入矢量图层 |
Category name field |
|
[tablefield: any] |
Categorical field to use for grouping the boxes (X axis) |
Value field |
|
[tablefield: numeric] |
Value to use for the plot (Y axis). |
Plot |
|
[html] 默认: |
Specify the HTML file for the plot. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Plot |
|
[html] |
HTML file with the plot. Available in the . |
Python代码
Algorithm ID: qgis:meanandstandarddeviationplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.14.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).
Fig. 24.36 Example of polar plot
参数
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
输入图层 |
|
[vector: geometry] |
输入矢量图层 |
Category name field |
|
[tablefield: any] |
Categorical field to use for grouping the features (X axis) |
Value field |
|
[tablefield: numeric] |
Value to use for the plot (Y axis). |
Polar plot |
|
[html] 默认: |
Specify the HTML file for the plot. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Polar plot |
|
[html] |
HTML file with the plot. Available in the . |
Python代码
Algorithm ID: qgis:polarplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.14.6. Raster layer histogram
Generates a histogram with the values of a raster layer.
Fig. 24.37 Raster layer histogram example
参数
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
输入图层 |
|
[栅格] |
Input raster layer |
Band number |
|
[raster band] |
Raster band to use for the histogram |
number of bins |
|
[numeric: integer] Default: 10 |
The number of bins to use in the histogram (X axis). Minimum 2. |
Histogram |
|
[html] 默认: |
Specify the HTML file for the plot. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Histogram |
|
[html] |
HTML file with the plot. Available in the . |
Python代码
Algorithm ID: qgis:rasterlayerhistogram
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.14.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.
Fig. 24.38 Example of vector layer histogram
参数
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
输入图层 |
|
[vector: any] |
输入矢量图层 |
Attribute |
|
[tablefield: numeric] |
Value to use for the plot (Y axis). |
number of bins |
|
[numeric: integer] Default: 10 |
The number of bins to use in the histogram (X axis). Minimum 2. |
Histogram |
|
[html] 默认: |
Specify the HTML file for the plot. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Histogram |
|
[html] |
HTML file with the plot. Available in the . |
Python代码
Algorithm ID: qgis:vectorlayerhistogram
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.14.8. Vector layer scatterplot
Creates a simple X - Y scatter plot for a vector layer.
Fig. 24.39 Example of vector layer scatterplot
参数
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
输入图层 |
|
[vector: geometry] |
输入矢量图层 |
X attribute |
|
[tablefield: numeric] |
Field to use for the X axis |
Y attribute |
|
[tablefield: numeric] |
Field to use for the Y axis |
Hover text 可选 |
|
[expression] Default: "" |
Text to be shown when hovering with the mouse over data points. It can be picked from a field or based on an expression. |
Title 可选 |
|
[string] Default: "" |
Title of the plot |
X-axis Title 可选 |
|
[string] Default: "" |
If empty, the field name of the x attribute is used. With a single space, the axis title is not shown. |
Y-axis Title 可选 |
|
[string] Default: "" |
If empty, the field name of the y attribute is used. With a single space, the axis title is not shown. |
Use logarithmic scale for x-axis |
|
[boolean] Default: False |
When enabled, uses logarithmic scale for the x-axis |
Use logarithmic scale for y-axis |
|
[boolean] Default: False |
When enabled, uses logarithmic scale for the y-axis |
Scatterplot |
|
[html] 默认: |
Specify the HTML file for the plot. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Scatterplot |
|
[html] |
HTML file with the plot. Available in the . |
Python代码
Algorithm ID: qgis:vectorlayerscatterplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。
24.1.14.9. Vector layer scatterplot 3D
Creates a 3D scatter plot for a vector layer.
Fig. 24.40 Example of 3D scatter plot
参数
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
输入图层 |
|
[vector: geometry] |
输入矢量图层 |
X attribute |
|
[tablefield: numeric] |
Field to use for the X axis |
Y attribute |
|
[tablefield: numeric] |
Field to use for the Y axis |
Z attribute |
|
[tablefield: numeric] |
Field to use for the Z axis |
Title 可选 |
|
[string] Default: "" |
Title of the plot |
X-axis Title 可选 |
|
[string] Default: "" |
If empty, the field name of the X attribute is used. |
Y-axis Title 可选 |
|
[string] Default: "" |
If empty, the field name of the Y attribute is used. |
Z-axis Title 可选 |
|
[string] Default: "" |
If empty, the field name of the Z attribute is used. |
Scatterplot 3D |
|
[html] 默认: |
Specify the HTML file for the plot. One of:
|
输出
标注 |
名称 |
类型 |
描述 |
|---|---|---|---|
Scatterplot 3D |
|
[html] |
HTML file with the plot. Available in the . |
Python代码
Algorithm ID: qgis:scatter3dplot
import processing
processing.run("algorithm_id", {parameter_dictionary})
当你在数据处理工具箱某个算法前悬停时,算法 id 将会展现。*参数字*将会提供参数的名称与数值。参考详见`数据处理_控制台`以获取如何从Python控制台中运行数据处理算法。