Try Pangolin (5) - SimplePlot
2016-07-08 01:45
507 查看
Structure DataLog is defined in plotter.h:
To name labels:
About pangolin::Plotter:
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::Plotter plotter(&log,0,4*M_PI/tinc,-2,2,M_PI/(4*tinc),0.5) is the base of the whole display,
while:
// Data logger object pangolin::DataLog <span style="color:#3366FF;">log</span>;
To name labels:
// 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.
相关文章推荐
- golang 处理字符串的空格
- CAS研究(四)-登出/logout
- Django开发博客- 部署
- go语言学习
- LoadRunner测试Google Suggest
- 1. Django1.9应用特性注意事项
- Django配置有邮件发送错误信息
- 为Go语言GC正名-20秒到100微妙的演变史
- 客制化开机向导符合Google认证要求
- A letter to a good guy in USA
- AlphaGo原理探讨
- 简单Windows控制台贪吃蛇(二维数组模拟地图, 链表模拟贪吃蛇, WASD控制行走, gotoxy替换刷新操作)
- Google Glass界面设计指南分析
- 在Django中使用Neo4j
- go语言_官方文档 godoc
- 《Algorithm》读书笔记-1
- 建立DJANGO的自定义TAG
- Go安装配置过程
- logo设计
- golang积累-future模式