Hi, i have 2 sets of x,y points ie; x1,y1 and x2,y2 ; i wish to plot a line between x1,y1 and x2,y2 - how do i do this in excel. my requirement is presented in the snap shot attached. the first line should have starting coordinate x1,y1=0,0 and its ending point at x2,y2 = 0,3. line 2 should have starting coordinates as x1,y1 = 1,2 and end coordinates x2,y2 as 5,6 and so on. thanks
Note you need to ensure you have 'gaps' selected here to achieve exactly what IRstuff noted, its the default I believe but if you get extra lines with the gaps in your data someone may have changed the default action & this is the cause (this menu is available within the right click 'select data' form).
Another option is to simply draw each line with a separate data series, this way would allow you to apply different formatting to each separate line and markers (if its required). I'm sure if there is lots of data you could create the series with some VBA quite easily. If you don't need to format each line differently IRstuff's solution is much more efficient.
Red Flag Submitted
Thank you for helping keep Eng-Tips Forums free from inappropriate posts. The Eng-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Eng-Tips forums is a member-only feature.
As the cloud is increasingly adopted for product development, questions remain as to just how cloud software tools compare to on-premise solutions. Download Now
Engineering-centric businesses face a number of challenges today, but unmanageable design and change processes don’t need to be counted among them. Download Now
RE: plotting lines (graphs) in excel using x,y coordinates
TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! https://www.youtube.com/watch?v=BKorP55Aqvg
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers Entire Forum list http://www.eng-tips.com/forumlist.cfm
RE: plotting lines (graphs) in excel using x,y coordinates
RE: plotting lines (graphs) in excel using x,y coordinates
Another option is to simply draw each line with a separate data series, this way would allow you to apply different formatting to each separate line and markers (if its required). I'm sure if there is lots of data you could create the series with some VBA quite easily. If you don't need to format each line differently IRstuff's solution is much more efficient.