怎么建立直角坐标系,并用把几个点连起来

如何建立直角坐标系,并用把几个点连起来
我要画一副电阻的特性曲线,想就输入数据给电脑,然后电脑自动生成特性曲线图。

哪位大侠能指点下么

------解决方案--------------------
用tchart就可以实现
------解决方案--------------------
画曲线可采用两点连成线的方法来做,可以用到下面两个
MoveTo--将当前的pen移到另一点,而不划出线。
LineTo--以当前pen的所在点为起点向另一点画线。
------解决方案--------------------
这是我用PaintBox做的一个三角型

TPoint points[4];
points[0] = Point(PaintBox1->Left+PaintBox1->Width*0.2,PaintBox1->Top+PaintBox1->Height*0.2);
points[1] = Point(PaintBox1->Height-PaintBox1->Height*0.4,PaintBox1->Top+PaintBox1->Height/2);
points[2] = Point(PaintBox1->Left+PaintBox1->Width*0.2,PaintBox1->Top+PaintBox1->Height-PaintBox1->Height*0.2+1);
points[3] = Point(PaintBox1->Left+PaintBox1->Width*0.2,PaintBox1->Top+PaintBox1->Height*0.2);


 ((TPaintBox *)Sender)->Canvas->Brush->Color = clBlack;
 ((TPaintBox *)Sender)->Canvas->Polygon(points, 2);

重点在红色部分
BOOL Polygon(

HDC hdc, // handle to device context 
CONST POINT *lpPoints, // pointer to polygon's vertices 
int nCount // count of polygon's vertices 
);

如果是连点的话可以用,Polyline
详细可看TCanvas组件方法