创建具有给定点的图形 [英] Creating a graph with given points

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

问题描述

你好,
我想知道是否有一种简便的方法来创建图形,该图形将以如下所示的方式显示给定图形的数据:

http://img641.imageshack.us/i/40275046.png/

谢谢.

Hello,
I was wondering if there is a nice and easy way to create a graph that will display the data of a given graph the way is shown below:

http://img641.imageshack.us/i/40275046.png/

Thanks.

推荐答案

您可以阅读此文章

http://www.codeproject.com/KB/miscctrl/GraphPlotting.aspx一个简单的C#库,用于图形绘制[ .NET的灵活图表库 [ http://www.c-sharpcorner.com/UploadFile/steve_hall/drawinglinechart02072007053420AM/drawinglinechart.aspx [ ^ ]
You could read this articles

http://www.codeproject.com/KB/miscctrl/GraphPlotting.aspxA simple C# library for graph plotting[^]

A flexible charting library for .NET[^]



[Updated]

http://www.c-sharpcorner.com/UploadFile/steve_hall/drawinglinechart02072007053420AM/drawinglinechart.aspx[^]


Luisnike已经为您提供了一个到ZedGraph的不错的链接.您可以使用它绘制任何2D曲线.

但是,如果您想自己做,则应该在表单的Paint事件处理程序中进行绘制.
看一下Graphics类:据我了解,您只是想连接线.然后您可能只需要DrawLine方法.
Luisnike already gave you a nice link to ZedGraph. You can plot any 2D curves with it.

But if you want to do it by yourself, then you should do your drawings in the Paint event handler of your form.
Have a look to Graphics class: as far as I undersand from your image, you just want to connect lines. Then you will probably just need DrawLine method.


这篇关于创建具有给定点的图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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