ZedGraph 在MFC中的使用(一)
来源:互联网 发布:开淘宝需要保证金吗 编辑:程序博客网 时间:2024/05/16 07:50
网上有 C#和CLR使用ZedGraph的例子,使用MFC操作会有变化。
http://blog.csdn.net/tjvictor/article/details/1412540参照这个例子本人将其改为MFC的代码。
m_ChartCtrl在上一篇中定义好的……
GraphPane ^myPane = m_ChartCtrl->GraphPane; myPane->Title->Text = "My Initial Graph Sample Demo\n(For CodeProject Sample)"; myPane->XAxis->Title->Text = "My X Axis"; myPane->YAxis->Title->Text = "My Y Axis"; PointPairList ^list1 = gcnew PointPairList(); PointPairList ^list2 = gcnew PointPairList(); for ( int i=0; i<36; i++ ) { double x = (double) i + 5; double y1 = 1.5 + sin((double) i * 0.2 ); double y2 = 3.0 * ( 1.5 + sin((double) i * 0.2 ) ); list1->Add( x, y1 ); list2->Add( x, y2 ); } // Generate a red curve with diamond // symbols, and "Porsche" in the legend LineItem ^myCurve = myPane->AddCurve("Porsche",list1,Color::Red,SymbolType::Diamond); // Generate a blue curve with circle // symbols, and "Piper" in the legend LineItem ^myCurve2 = myPane->AddCurve("Piper",list2,Color::Blue,SymbolType::Circle ); m_ChartCtrl->AxisChange();
许多操作 要使用 “^”,相当于引用(或者当指针来用),本人测试时发现,不使用“^”方式,可能出不来正确的结果!
- ZedGraph 在MFC中的使用(一)
- ZedGraph使用(一)
- ZedGraph在Web中的使用
- ZedGraph使用(一) 柱形图
- ZedGraph使用(一) 柱形图
- CGridCtrl在MFC中的使用(一)
- zedgraph使用中的难题
- ZedGraph在项目中的应用
- ZedGraph在web中的应用
- ZedGraph在Asp.net中的应用
- ZedGraph在Asp.net中的应用
- ZedGraph在Asp.net中的应用
- OpenGL在MFC中的使用总结(一)——基本框架
- SonicUI在MFC中的使用
- SonicUI在MFC中的使用
- SonicUI在MFC中的使用
- OpenCV在MFC中的使用
- SonicUI在MFC中的使用
- QT radiobutton
- aspx与ashx
- 多线程编程笔记(三)
- qt中如何向配置表写入中文
- 多线程编程笔记(四)
- ZedGraph 在MFC中的使用(一)
- codeforces 142 Tower
- linux下基于GTK窗口编程
- 多线程编程笔记(五)
- Linux可执行文件的启动及命令行参数和环境变量的传递
- ASP.NET常用信息保持状态学习笔记一
- File Lists作为数据源
- I. The Basics---Chapter 2----Fragment Position Display
- A more complicated thread sync issue about audioFlinger::EffectModule