corus
Mechanical
- Nov 6, 2002
- 3,165
I have a series of data points with XY co-ordinates listed in 2 columns. These data points are connected by lines to form a network, but unsequential, ie. data point 1 is connected to point 3, point 2 is connected to 5 etc. The network connections are listed in seperate columns so that the full data set might look like:
Points Network
Pt X Y Pt1 Pt2
1 0 1 1 3
2 1 3 2 5 .... etc.
If the data points alone were plotted then lines would show connecting point 1 to 2, 2 to 3 etc. However, I would like to plot this network with a series of lines between the points as defined in the Network connections columns.
How can I plot the points and connecting lines automatically so that each connection is shown on the XY graph as a seperate series of 2 data points? I've tried using a VBMacro and using a VB Userform to define my own graph but can find no way of defining a line without a picture added to the form, and no picture facility appears to exist in Excel Visual Basic.
corus
Points Network
Pt X Y Pt1 Pt2
1 0 1 1 3
2 1 3 2 5 .... etc.
If the data points alone were plotted then lines would show connecting point 1 to 2, 2 to 3 etc. However, I would like to plot this network with a series of lines between the points as defined in the Network connections columns.
How can I plot the points and connecting lines automatically so that each connection is shown on the XY graph as a seperate series of 2 data points? I've tried using a VBMacro and using a VB Userform to define my own graph but can find no way of defining a line without a picture added to the form, and no picture facility appears to exist in Excel Visual Basic.
corus