重要

翻訳は あなたが参加できる コミュニティの取り組みです。このページは現在 65.22% 翻訳されています。

24.1.14. プロット

24.1.14.1. ベクタレイヤの棒グラフ

カテゴリとレイヤの属性値から、棒グラフを作成します。

../../../../_images/bar_plot.png

図 24.32 Bar plot example

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[vector: geometry]

入力ベクタレイヤ

カテゴリを示す属性(フィールド)

NAME_FIELD

[テーブルのフィールド:任意]

棒グラフをグループ化するために使用するカテゴリ値のフィールド(X軸)

値フィールド

VALUE_FIELD

[テーブルのフィールド:数値]

グラフに使用する値(Y軸)

Title

Optional

TITLE

[string]

Default: ""

Title of the plot

X-axis Title

Optional

XAXIS_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

Optional

YAXIS_TITLE

[string]

Default: ""

If empty, the name of the value field is used. With a single space, the axis title is hidden.

ベクタレイヤの棒グラフ

OUTPUT

[html]

デフォルト: [一時ファイルに保存]

プロットのHTMLファイルを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

ベクタレイヤの棒グラフ

OUTPUT

[html]

グラフのHTMLファイル。 プロセシング ► 結果ビューア からアクセスできます。

Python コード

アルゴリズムID: qgis:barplot

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.14.2. ベクタレイヤのボックスプロット

カテゴリ属性とレイヤの数値属性から、ボックスプロットを作成します。

../../../../_images/box_plot_example.png

図 24.33 Example of box plot

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[vector: geometry]

入力ベクタレイヤ

カテゴリを示す属性(フィールド)

NAME_FIELD

[テーブルのフィールド:任意]

ボックスをグループ化するために使用するカテゴリ値のフィールド(X軸)

値フィールド

VALUE_FIELD

[テーブルのフィールド:数値]

グラフに使用する値(Y軸)

追加の統計指標

MSD

[列挙型]

デフォルト: 0

プロットに追加する統計情報。次のいずれかです:

  • 0 --- 平均を表示

  • 1 --- 標準偏差を表示

  • 2 --- 平均と標準偏差を表示しない

Title

Optional

TITLE

[string]

Default: ""

Title of the plot

X-axis Title

Optional

XAXIS_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

Optional

YAXIS_TITLE

[string]

Default: ""

If empty, the name of the value field is used. With a single space, the axis title is not shown.

ベクタレイヤのボックスプロット

OUTPUT

[html]

デフォルト: [一時ファイルに保存]

プロットのHTMLファイルを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

ベクタレイヤのボックスプロット

OUTPUT

[html]

グラフのHTMLファイル。 プロセシング ► 結果ビューア からアクセスできます。

Python コード

アルゴリズムID: qgis:boxplot

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。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.

../../../../_images/elevation_profile_example.png

図 24.34 Example of elevation profile

パラメータ

Basic parameters

ラベル

名前

データ型

説明

Profile curve

CURVE

[geometry: line]

The LineString geometry (WKT or GeoJSON) representing the profile curve along which the elevation profile will be generated

Map layers

MAP_LAYERS

[layer] [list]

The list of map layers to include in the elevation profile

Chart width (in pixels)

WIDTH

[数値: Integer]

Default: 400

Minimum value: 0

The width of the output chart in pixels.

Chart height (in pixels)

HEIGHT

[数値: Integer]

Default: 300

Minimum value: 0

The height of the output chart in pixels.

Terrain layer

Optional

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)

Optional

MINIMUM_DISTANCE

[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)

Optional

MAXIMUM_DISTANCE

[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)

Optional

MINIMUM_ELEVATION

[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)

Optional

MAXIMUM_ELEVATION

[numeric: double]

The maximum elevation (Y axis) to display on the chart. If not specified, the chart will auto-scale.

Chart text color

Optional

TEXT_COLOR

[color]

The color of the text in the chart (e.g., axis labels, titles).

Chart background color

Optional

BACKGROUND_COLOR

[color]

The background color of the chart.

Chart border color

Optional

BORDER_COLOR

[color]

The color of the chart border.

Profile tolerance

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

DPI

[数値: Integer]

Default: 96

Minimum value: 0

The resolution of the output image in dots per inch (DPI).

Output image

OUTPUT

[file]

デフォルト: [一時ファイルに保存]

Specify the image file for the plot. One of:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

Output image

OUTPUT

[file]

The generated elevation profile image in the specified format.

Python コード

Algorithm ID: native:generateelevationprofileimage

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.14.4. テーブルの平均・標準偏差のプロット

平均と標準偏差の表示のあるボックスプロットを作成します。

../../../../_images/mean_stddev_plot_example.png

図 24.35 Example of mean and standard deviation plot

パラメータ

ラベル

名前

データ型

説明

入力テーブル

INPUT

[vector: geometry]

入力ベクタレイヤ

カテゴリを示す属性(フィールド)

NAME_FIELD

[テーブルのフィールド:任意]

ボックスをグループ化するために使用するカテゴリ値のフィールド(X軸)

値フィールド

VALUE_FIELD

[テーブルのフィールド:数値]

グラフに使用する値(Y軸)

出力のプロット

OUTPUT

[html]

デフォルト: [一時ファイルに保存]

プロットのHTMLファイルを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

出力のプロット

OUTPUT

[html]

グラフのHTMLファイル。 プロセシング ► 結果ビューア からアクセスできます。

Python コード

アルゴリズムID: qgis:meanandstandarddeviationplot

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.14.5. ベクタレイヤのポーラープロット

入力ベクタレイヤの値に基づいたポーラープロットを作成します。

パラメータとして2つのフィールドを入力する必要があります。1つは各地物のカテゴリを定義するフィールド(地物をグループ化するため)で、もう1つはプロットする値のフィールド(数値でなければならない)です。

../../../../_images/polar_plot_example.png

図 24.36 Example of polar plot

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[vector: geometry]

入力ベクタレイヤ

カテゴリを示す属性(フィールド)

NAME_FIELD

[テーブルのフィールド:任意]

地物をグループ化するために使用するカテゴリ値のフィールド(X軸)

値フィールド

VALUE_FIELD

[テーブルのフィールド:数値]

グラフに使用する値(Y軸)

ベクタレイヤのポーラープロット

OUTPUT

[html]

デフォルト: [一時ファイルに保存]

プロットのHTMLファイルを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

ベクタレイヤのポーラープロット

OUTPUT

[html]

グラフのHTMLファイル。 プロセシング ► 結果ビューア からアクセスできます。

Python コード

アルゴリズムID: qgis:polarplot

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.14.6. ラスタレイヤのヒストグラム

ラスタレイヤの値のヒストグラムを作成します。

../../../../_images/raster_layer_histogram.png

図 24.37 Raster layer histogram example

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ラスタ]

入力ラスタレイヤ

バンド番号

BAND

[ラスタのバンド]

ヒストグラムに使用するラスタのバンド番号

階級数

BINS

[数値: Integer]

デフォルト: 10

ヒストグラムに使用するビンの数(X軸)。最小値は2です。

ヒストグラム

OUTPUT

[html]

デフォルト: [一時ファイルに保存]

プロットのHTMLファイルを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

ヒストグラム

OUTPUT

[html]

グラフのHTMLファイル。 プロセシング ► 結果ビューア からアクセスできます。

Python コード

アルゴリズムID: qgis:rasterlayerhistogram

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.14.7. ベクタレイヤのヒストグラム

ベクタレイヤの属性値のヒストグラムを作成します。

ヒストグラムの計算に使用する属性は数値でなければなりません。

../../../../_images/vector_layer_histogram.png

図 24.38 Example of vector layer histogram

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[ベクタ:任意]

入力ベクタレイヤ

属性

FIELD

[テーブルのフィールド:数値]

グラフに使用する値(Y軸)

階級数

BINS

[数値: Integer]

デフォルト: 10

ヒストグラムに使用するビンの数(X軸)。最小値は2です。

ヒストグラム

OUTPUT

[html]

デフォルト: [一時ファイルに保存]

プロットのHTMLファイルを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

ヒストグラム

OUTPUT

[html]

グラフのHTMLファイル。 プロセシング ► 結果ビューア からアクセスできます。

Python コード

アルゴリズムID: qgis:vectorlayerhistogram

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.14.8. ベクタレイヤの散布図

ベクタレイヤのシンプルな X - Y 散布図を作成します。

../../../../_images/vector_scatter_plot_example.png

図 24.39 Example of vector layer scatterplot

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[vector: geometry]

入力ベクタレイヤ

X属性値

XFIELD

[テーブルのフィールド:数値]

X軸に使用するフィールド

Y属性値

YFIELD

[テーブルのフィールド:数値]

Y軸に使用するフィールド

Hover text

Optional

HOVERTEXT

[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

Optional

TITLE

[string]

Default: ""

Title of the plot

X-axis Title

Optional

XAXIS_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

Optional

YAXIS_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

XAXIS_LOG

[boolean]

Default: False

When enabled, uses logarithmic scale for the x-axis

Use logarithmic scale for y-axis

YAXIS_LOG

[boolean]

Default: False

When enabled, uses logarithmic scale for the y-axis

散布図の出力

OUTPUT

[html]

デフォルト: [一時ファイルに保存]

プロットのHTMLファイルを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

散布図の出力

OUTPUT

[html]

グラフのHTMLファイル。 プロセシング ► 結果ビューア からアクセスできます。

Python コード

アルゴリズムID: qgis:vectorlayerscatterplot

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。

24.1.14.9. ベクタレイヤの3D散布図

ベクタレイヤの3D散布図を作成します。

../../../../_images/scatter3d_plot_example.png

図 24.40 Example of 3D scatter plot

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

INPUT

[vector: geometry]

入力ベクタレイヤ

X属性値

XFIELD

[テーブルのフィールド:数値]

X軸に使用するフィールド

Y属性値

YFIELD

[テーブルのフィールド:数値]

Y軸に使用するフィールド

Z属性値

ZFIELD

[テーブルのフィールド:数値]

Z軸に使用するフィールド

Title

Optional

TITLE

[string]

Default: ""

Title of the plot

X-axis Title

Optional

XAXIS_TITLE

[string]

Default: ""

If empty, the field name of the X attribute is used.

Y-axis Title

Optional

YAXIS_TITLE

[string]

Default: ""

If empty, the field name of the Y attribute is used.

Z-axis Title

Optional

ZAXIS_TITLE

[string]

Default: ""

If empty, the field name of the Z attribute is used.

Scatterplot 3D

OUTPUT

[html]

デフォルト: [一時ファイルに保存]

プロットのHTMLファイルを指定します。次のいずれかです:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

Scatterplot 3D

OUTPUT

[html]

グラフのHTMLファイル。 プロセシング ► 結果ビューア からアクセスできます。

Python コード

アルゴリズムID: qgis:scatter3dplot

import processing
processing.run("algorithm_id", {parameter_dictionary})

algorithm id は、プロセシングツールボックス内でアルゴリズムにマウスカーソルを乗せた際に表示されるIDです。 parameter dictionary は、パラメータの「名前」とその値を指定するマッピング型です。Python コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。