重要

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

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

オプション

Added in 3.42

TITLE

[文字列]

Default: ""

Title of the plot

X-axis Title

オプション

Added in 3.42

XAXIS_TITLE

[文字列]

Default: ""

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

Y-axis Title

オプション

Added in 3.42

YAXIS_TITLE

[文字列]

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

オプション

Added in 3.42

TITLE

[文字列]

Default: ""

Title of the plot

X-axis Title

オプション

Added in 3.42

XAXIS_TITLE

[文字列]

Default: ""

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

Y-axis Title

オプション

Added in 3.42

YAXIS_TITLE

[文字列]

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

Added in 3.42

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

パラメータ

基本パラメータ

ラベル

名前

データ型

説明

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

[レイヤ][リスト]

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

オプション

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.

詳細パラメータ

ラベル

名前

データ型

説明

Chart minimum distance (X axis)

オプション

MINIMUM_DISTANCE

[数値: double]

The minimum distance (X axis) to display on the chart. If not specified, the chart will auto-scale.

Chart maximum distance (X axis)

オプション

MAXIMUM_DISTANCE

[数値: double]

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

Chart minimum elevation (Y axis)

オプション

MINIMUM_ELEVATION

[数値: double]

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

Chart maximum elevation (Y axis)

オプション

MAXIMUM_ELEVATION

[数値: double]

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

Chart text color

オプション

TEXT_COLOR

[色]

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

Chart background color

オプション

BACKGROUND_COLOR

[色]

The background color of the chart.

Chart border color

オプション

BORDER_COLOR

[色]

The color of the chart border.

Profile tolerance

TOLERANCE

[数値: double]

デフォルト: 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]

デフォルト: 96

Minimum value: 0

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

Output image

OUTPUT

[ファイル]

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

Specify the image file for the plot. One of:

  • 一時ファイルに保存

  • ファイルに保存...

出力

ラベル

名前

データ型

説明

Output image

OUTPUT

[ファイル]

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 ラスタレイヤのヒストグラムの例

パラメータ

ラベル

名前

データ型

説明

入力レイヤ

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

オプション

Added in 3.42

HOVERTEXT

[式]

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

オプション

Added in 3.42

TITLE

[文字列]

Default: ""

Title of the plot

X-axis Title

オプション

Added in 3.42

XAXIS_TITLE

[文字列]

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

オプション

Added in 3.42

YAXIS_TITLE

[文字列]

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

Added in 3.42

XAXIS_LOG

[ブール値]

デフォルト: False

When enabled, uses logarithmic scale for the x-axis

Use logarithmic scale for y-axis

Added in 3.42

YAXIS_LOG

[ブール値]

デフォルト: 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

オプション

Added in 3.42

TITLE

[文字列]

Default: ""

Title of the plot

X-axis Title

オプション

Added in 3.42

XAXIS_TITLE

[文字列]

Default: ""

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

Y-axis Title

オプション

Added in 3.42

YAXIS_TITLE

[文字列]

Default: ""

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

Z-axis Title

オプション

Added in 3.42

ZAXIS_TITLE

[文字列]

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 コンソールからプロセシングアルゴリズムを実行する方法の詳細については、 プロセシングアルゴリズムをコンソールから使う を参照してください。