以C ++ GUI形式绘制简单的X-Y图 [英] Plot simple X-Y graph in a C++ GUI form

查看:64
本文介绍了以C ++ GUI形式绘制简单的X-Y图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我使用的是Visual C ++ 2008 Express Edition。我想在我的表单中绘制一个简单的X-Y图形(或者另一种形式也可以)。我尝试了在这里搜索的serval库/控件,例如高速制图控件,Plot Graphic Library,plplot和其他一些工具。但是他们中的大多数都不适合我的VS(或者可能是因为我很蠢......)。有朋友可以为我推荐一些方法吗?实际上有一个工具对我来说已经足够了。



期待任何帮助。谢谢。

解决方案

查看这篇文章:



在VC ++中使用MS Chart控件 [ ^ ]


< blockquote>感谢Mehdi,但是..当我添加新参考时我找不到Microsoft Chart Control ...是VS版本再次出现的问题......?


  int  i,j,x,y; 
char plot [ 21 ] [ 75 ] = {' 。'};
plot [x] [y] = ' +';
for (i = 20 ; i> -1; i--)
{
for (j = 0 ; j <75; j ++)
{
plot [i] [j] = ' 。';
plot [x] [y] = ' +';
cout<< plot [i] [j]; }
cout<< \ n;


Hi all,

I am using Visual C++ 2008 Express Edition. I want to plot a simple X-Y graph in my form (or another form is also OK). I tried serval library/control which searched here, such as High-speed Charting Control, Plot Graphic Library, plplot and some other tools. But most of them is not work for my VS (or maybe due to I am stupid..). Any friends can suggest some method for me? Actually one tool is enough for me.

Looking forward for any help.Thanks so much..

解决方案

Check this article :

Using the MS Chart control in VC++[^]


Thanks Mehdi, but..how come I can't find Microsoft Chart Control when I add New Reference...is it the problem of by VS version again...?


int i, j, x, y;
        char plot[21][75] = {'.'};
        plot[x][y]='+';
        for(i=20; i>-1; i--)
       {
              for(j=0; j<75; j++)
             {
      plot[i][j]='.';
                  plot[x][y]='+';
      cout<<plot[i][j];                         }
      cout<<"\n";


这篇关于以C ++ GUI形式绘制简单的X-Y图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆