Try Pangolin (5) - SimplePlot
来源:互联网 发布:音效下载软件 编辑:程序博客网 时间:2024/06/05 17:46
Structure DataLog is defined in plotter.h:
// Data logger object pangolin::DataLog <span style="color:#3366FF;">log</span>;
// Optionally add named labels std::vector<std::string> labels; labels.push_back(std::string("sin(t)")); labels.push_back(std::string("cos(t)")); labels.push_back(std::string("sin(t)+cos(t)")); <span style="color:#3366FF;">log</span>.<span style="color:#CC0000;">SetLabels</span>(labels);
About pangolin::Plotter:
// OpenGL 'view' of data. We might have many views of the same data. <span style="color:#3333FF;">pangolin::Plotter</span> plotter(&log,0,4*M_PI/tinc,-2,2,M_PI/(4*tinc),0.5); plotter.SetBounds(0.0, 1.0, 0.0, 1.0); plotter.<span style="color:#FF0000;">Track</span>("$i");
And nothing changed after commenting out log.Track("$i");
Let's compare the result and the values:
Result:
As shown in this plot:
The "top", "bottom", "left" and "right" are in accordance with the given values.
"tickx" and "ticky" are the smallest units of x and y axis.
Compare the difference between Display and DisplayBase:
pangolin::<span style="color:#009900;">DisplayBase</span>().AddDisplay(plotter);
pangolin::Plotter plotter(&log,0,4*M_PI/tinc,-2,2,M_PI/(4*tinc),0.5) is the base of the whole display,
while:
pangolin::DataLog log; ... log<strong><span style="color:#CC0000;">.Log</span></strong>(sin(t),cos(t),sin(t)+cos(t)); t += tinc;(.Log) defines the curve.
0 0
- Try Pangolin (5) - SimplePlot
- Try Pangolin(1)
- Try Pangolin(3) - Display
- Try Pangolin (4) - MultiDisplay
- Try Pangolin (6) - SimpleRecord
- Try Pangolin(2) - example: SimpleDisplay
- Pangolin install
- pangolin install
- SQLMap Pangolin环境搭建
- ubuntu 安装Pangolin 过程
- ubuntu 安装Pangolin 过程
- ubuntu安装Pangolin过程
- Pangolin 安装及其使用
- ElasticFusion之Pangolin编译
- ubuntu 安装Pangolin 过程
- ubuntu安装Pangolin笔记
- Ubuntu 安装pangolin
- 安装Pangolin遇到问题解决
- 关于使用java Optional遇到的一些问题
- 设计模式之单例设计模式
- 浅析Python heapq模块 堆数据结构
- Valid Palindrome
- vector类型
- Try Pangolin (5) - SimplePlot
- Android Studio官方文档之从模板中添加代码篇
- java 获取路径的各种方法
- 【阿库娅教你X代码】PlayFair密码——0
- 核心动画探究
- Binary Tree Paths
- 258. Add Digits--LeetCode Record
- Java序列化
- 落户CSDN.