如何绘制图形 [英] how to plot graph

查看:89
本文介绍了如何绘制图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vb绘制图表。我已经使用画线绘制了图表。并包括标签。我根据像素排列。我现在面临的问题是我需要在图表上绘制某些符号,如''x'','o'',''>''等。当它得到'标签的价值时,不是通过绘画而是自动绘制。我怎么做?我想我必须使用数组。但我无法完成我想做的事情。 help pls。

i''m using vb to plot graph. i''ve already drawn the graphsheet using drawlines. and include labels. all i arrange according to pixels. the problem i face now is that i need to plot certain symbols like ''x'', ''o'' , ''>'' etc. on the graph. not by drawing but automatically when it get''s the value from a label. how do i do that? i think i have to use array. but i cant get through what i want to do. help pls.

推荐答案


我用vb绘制图表。我已经使用画线绘制了图表。并包括标签。我根据像素排列。我现在面临的问题是我需要在图表上绘制某些符号,如''x'','o'',''>''等。当它得到'标签的价值时,不是通过绘画而是自动绘制。我怎么做?我想我必须使用数组。但我无法完成我想做的事情。帮帮忙。
i''m using vb to plot graph. i''ve already drawn the graphsheet using drawlines. and include labels. all i arrange according to pixels. the problem i face now is that i need to plot certain symbols like ''x'', ''o'' , ''>'' etc. on the graph. not by drawing but automatically when it get''s the value from a label. how do i do that? i think i have to use array. but i cant get through what i want to do. help pls.



不确定这个问题的确切部分。 (另外,你使用的是什么版本的VB?)


至少在VB6中,我相信你可以简单地使用.Print方法直接在表格或图片框上打印字母/符号,或在适当的位置放置透明标签,使其标题出现在表格/图片框上。



不确定究竟是什么部分是问题所在。 (另外,你使用的是什么版本的VB?)


至少在VB6中,我相信你可以简单地使用.Print方法直接在表格或图片框上打印字母/符号,或在适当的位置放置透明标签,使其标题出现在表格/图片框上。
Not sure exactly what part of this is the problem. (Also, what version of VB are you using?)

In VB6 at least, I believe you can simply use the .Print method to print letters/symbols directly on the form or picturebox, or place transparent labels at the appropriate points so that their caption appears to be on the form/picturebox.



我正在使用vb 2005快递版。我的问题在于我使用绘制线绘制了图表。我只是添加标签并根据与我绘制的线条对应的像素进行排列。现在,我需要使用我创建的符号绘制图形,也可以通过绘图绘制。但是我的程序应该以这样的方式工作,当我从同一个项目的另一个表单中获取标签的值时,我可以自动绘制该符号。

I''m using vb 2005 express edition. my problem here is that I have drawn the graphsheet using drawlines. I''ve simply added labels and arrange them according to the pixels corresponding to the lines i''ve drawn. Now, I need to plot the graph with symbols which I have created, also by drawing. But my program should work in such a way that I can automatically plot that certain symbol when it gets the value from a label from another form from the same project.



我正在使用vb 2005快递版。我的问题在于我使用绘制线绘制了图表。我只是添加标签并根据与我绘制的线条对应的像素进行排列。现在,我需要使用我创建的符号绘制图形,也可以通过绘图绘制。但是我的程序应该以这样的方式工作,当我从同一个项目的另一个表单中获取标签的值时,我可以自动绘制某个符号。
I''m using vb 2005 express edition. my problem here is that I have drawn the graphsheet using drawlines. I''ve simply added labels and arrange them according to the pixels corresponding to the lines i''ve drawn. Now, I need to plot the graph with symbols which I have created, also by drawing. But my program should work in such a way that I can automatically plot that certain symbol when it gets the value from a label from another form from the same project.



对不起,我还是不明白这个问题。为什么你不能。打印符号到图表上?如果您可以描述您的设置,将会有所帮助。 到底是什么图表?一个图片盒? (我使用VB6,所以我可能只是遗漏了VB 2005中显而易见的东西。)

Sorry, I still don''t understand the problem. Why can''t you just .Print the symbols onto the "graphsheet"? It would help if you could describe your setup. What exactly is the graphsheet? A picturebox? (I use VB6, so I may be just missing something that''s obvious in VB 2005.)


这篇关于如何绘制图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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