2次元のプロットのクラス
More...
#include <Bar.hpp>
|
| Bar () |
| コンストラクタ 1 of 3
|
|
| Bar (std::string title) |
| コンストラクタ 2 of 3 More...
|
|
| Bar (std::string title, unsigned int width, unsigned int height) |
| コンストラクタ 3 of 3 More...
|
|
| ~Bar () |
| デストラクタ
|
|
void | plot (double data, const std::string label) |
|
void | show () |
| プロットを描画する More...
|
|
void | pause (int usec=0) |
| リアルタイムで追加されたデータのグラフを描画する More...
|
|
void | set_box_width (double relative=0.5) |
|
void | rotate_label (int angle=-45) |
|
void | set_x_range (double min, double max) |
| x軸の範囲を設定する More...
|
|
void | set_y_range (double min, double max) |
| y軸の範囲を設定する More...
|
|
void | set_title (std::string title) |
| プロットのタイトルを設定する関数 More...
|
|
void | set_x_label (std::string label) |
| x軸の名称を設定する More...
|
|
void | set_y_label (std::string label) |
| y軸の名称を設定する More...
|
|
void | save_as_png (std::string title) |
|
void | set_window_size (unsigned int width, unsigned int height) |
| windowのサイズを変更する関数. コンストラクタでもウィンドウのサイズは設定可能 デフォルトのサイズは640x480 More...
|
|
void | set_autoscale (bool should_autoscale=true) |
| autoscaleを設定する関数 ただし,棒グラフの場合は自動でgnuplot内で自動的に設定されるので 手動で設定する必要なし.そのため,将来的に必要になった時の ためにprivate関数にしておく. More...
|
|
◆ Bar() [1/2]
Gpop::Bar::Bar |
( |
std::string |
title | ) |
|
コンストラクタ 2 of 3
- Parameters
-
◆ Bar() [2/2]
Gpop::Bar::Bar |
( |
std::string |
title, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
コンストラクタ 3 of 3
- Parameters
-
title | プロットのタイトル |
width | ウィンドウの横幅 |
height | ウィンドウの縦幅 |
◆ pause()
void Gpop::Bar::pause |
( |
int |
usec = 0 | ) |
|
リアルタイムで追加されたデータのグラフを描画する
- Parameters
-
usec | ポーズする時間の指定,0以上の値を設定する. 0を指定すると最速で描画する. |
◆ set_autoscale()
void Gpop::Bar::set_autoscale |
( |
bool |
should_autoscale = true | ) |
|
autoscaleを設定する関数 ただし,棒グラフの場合は自動でgnuplot内で自動的に設定されるので 手動で設定する必要なし.そのため,将来的に必要になった時の ためにprivate関数にしておく.
- Parameters
-
should_autoscale | 自動でスケール調整を行うか否かを設定する. |
◆ set_title()
void Gpop::Bar::set_title |
( |
std::string |
title | ) |
|
プロットのタイトルを設定する関数
- Parameters
-
◆ set_window_size()
void Gpop::Bar::set_window_size |
( |
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
windowのサイズを変更する関数. コンストラクタでもウィンドウのサイズは設定可能 デフォルトのサイズは640x480
- Parameters
-
width | ウィンドウの横幅 |
height | ウィンドウの高さ |
◆ set_x_label()
void Gpop::Bar::set_x_label |
( |
std::string |
label | ) |
|
◆ set_x_range()
void Gpop::Bar::set_x_range |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
◆ set_y_label()
void Gpop::Bar::set_y_label |
( |
std::string |
label | ) |
|
◆ set_y_range()
void Gpop::Bar::set_y_range |
( |
double |
min, |
|
|
double |
max |
|
) |
| |
◆ show()
プロットを描画する
全てのデータを一気に表示するときに使用する
The documentation for this class was generated from the following files: