Gpop
Gnuplot of Pipe of Pop
Public Member Functions | List of all members
Gpop::Bar Class Reference

2次元のプロットのクラス More...

#include <Bar.hpp>

Public Member Functions

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

Detailed Description

2次元のプロットのクラス

Constructor & Destructor Documentation

◆ Bar() [1/2]

Gpop::Bar::Bar ( std::string  title)

コンストラクタ 2 of 3

Parameters
titleプロットのタイトル

◆ Bar() [2/2]

Gpop::Bar::Bar ( std::string  title,
unsigned int  width,
unsigned int  height 
)

コンストラクタ 3 of 3

Parameters
titleプロットのタイトル
widthウィンドウの横幅
heightウィンドウの縦幅

Member Function Documentation

◆ 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
titleグラフのタイトル

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

x軸の名称を設定する

Parameters
labelx軸の名称

◆ set_x_range()

void Gpop::Bar::set_x_range ( double  min,
double  max 
)

x軸の範囲を設定する

Parameters
minx軸の最小値
maxx軸の最大値

◆ set_y_label()

void Gpop::Bar::set_y_label ( std::string  label)

y軸の名称を設定する

Parameters
labely軸の名称

◆ set_y_range()

void Gpop::Bar::set_y_range ( double  min,
double  max 
)

y軸の範囲を設定する

Parameters
miny軸の最小値
maxy軸の最小値

◆ show()

void Gpop::Bar::show ( )

プロットを描画する

全てのデータを一気に表示するときに使用する


The documentation for this class was generated from the following files: