A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

I need more general XY point to point plotting than XY scatter in



 
 
Thread Tools Display Modes
  #1  
Old December 13th, 2005, 10:30 PM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter in

I want to connect two sets of XY points (in four columns) with line segments,
and show the entire set on one 2D plot. XY scatterplot is frustrating because
it is almost there, but not. You can create a grid of points but not connect
the dots. You can't paste data into the plot either -- it assumes you want to
use the same X as the first set of points. Aaaaaaarg.
--
lostinamazeoftwistyturnypassagesallthesame
  #2  
Old December 14th, 2005, 12:43 AM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter in


Can you be more specific as to what you need? I've never had any
trouble plotting an XY plot and having the data points connected by
straight lines. Normally either select the "connected by lines" option
when the chart is created, or select the data series Format-selected
series-patterns tab-select the desired line style to connect the
points.

I almost never use the paste command to add a data series to an
XYchart. I will either use the paste special command (which allows me
to specify that I'm using new or different X data) or use the
Chart-Source data-Series tab to add a data series.

If that doesn't help, then post again with more details about the
problem you are having.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=493208

  #3  
Old December 14th, 2005, 04:35 AM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter

Here is some sample data (csv):

name,X1,Y1,X2,Y2
A,0,0,2,0
B,0,1,2,1
C,0,2,2,2
D,0,3,2,3

I want to show line segments only between A-X1-Y1 and A-X2-Y2; B-X1-Y1 and
B-X2-Y2 etc, NOT between A-X2-Y2 and B-X1-Y1 or B-X2-Y2 and C-X1-Y1 etc. It
would be cool if the A, B, C, D labels could be visible on the graph, and
even better if I could then paste like data onto the chart, even using paste
special and have it conform, but I've tried many times without success. It
always messes up the new source data with wrong assumptions. Try it.

--
lostinamazeoftwistyturnypassagesallthesame


"MrShorty" wrote:


Can you be more specific as to what you need? I've never had any
trouble plotting an XY plot and having the data points connected by
straight lines. Normally either select the "connected by lines" option
when the chart is created, or select the data series Format-selected
series-patterns tab-select the desired line style to connect the
points.

I almost never use the paste command to add a data series to an
XYchart. I will either use the paste special command (which allows me
to specify that I'm using new or different X data) or use the
Chart-Source data-Series tab to add a data series.

If that doesn't help, then post again with more details about the
problem you are having.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=493208


  #4  
Old December 14th, 2005, 04:36 PM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter in


Others may have better ideas, but it seems to me your data aren't laid
out in a format conducive to what you want. I was able (using the
"source data" dialog I mentioned above) to get a plot that looks like
what you describe. I had to select each individual point separated by
commas within a given series. The final series definition looked like
=SERIES(Sheet1!R5C1,(Sheet1!R5C2,Sheet1!R5C4),(She et1!R5C3,Sheet1!R5C5),4).
That, of course, isn't conducive to readily adding points to a
series, or adding series to the chart. Can be done, but not readily.

If you lay your data out differently, it would be easier. Try a lay
out where the X data are in a column and the corresponding Y data are
in the adjacent column. Something like:

name A A B B C C D D (names doubled to emphasize column relationship)
axis X Y X Y X Y X Y
pt1 0 0 0 1 0 2 0 3
pt2 2 0 2 1 2 2 2 3

Then it's easy to add data points (simply add rows) and data series
(simply add pairs of columns going across and paste special) to your
chart.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=493208

  #5  
Old December 14th, 2005, 06:20 PM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter

Hi,

Rearrange the data as,

name, X, Y
A, 0, 0
2, 0
B, 0, 1
2, 1
C, 0, 2
2, 2
D, 0, 3
3, 3

and plot Y vs X for each group as a separate series on an XY-plot. Format
each data-series to connect the two points in it.

OR

Rearrange the data as above. Create ONE plot with the entire data series.
Rightclick on any data-point -- "Format Data Series" -- click on
"X-ErrorBars" Tab -- under "Display" check "Minus", check "Percentage" and
enter "100" -- "OK"

OR

Rearrange the data as above, but insert a third X,Y pair (which would be
idential to the first X,Y-pair) in each group.

name, X, Y
A, 0, 0
2, 0
0, 0
B, 0, 1
2, 1
0, 1
C, 0, 2
2, 2
0, 2
D, 0, 3
3, 3
0, 3

Create ONE X,Y-scatter plot for the entire data, and format the series to
connect the data-points. The cross connections such as A-X3-Y3 and B-X1-Y1,
B-X3-y3 and C-X1-Y1, ... will coincide with the Y axis (and hence wouldn't be
a distraction, of course, this would work only if the X-value of the first
point in each group is zero!).

I am sorry for not being able to suggest a more elegant solution.

Regards,
B. R. Ramachandran




"spazminator" wrote:

Here is some sample data (csv):

name,X1,Y1,X2,Y2
A,0,0,2,0
B,0,1,2,1
C,0,2,2,2
D,0,3,2,3

I want to show line segments only between A-X1-Y1 and A-X2-Y2; B-X1-Y1 and
B-X2-Y2 etc, NOT between A-X2-Y2 and B-X1-Y1 or B-X2-Y2 and C-X1-Y1 etc. It
would be cool if the A, B, C, D labels could be visible on the graph, and
even better if I could then paste like data onto the chart, even using paste
special and have it conform, but I've tried many times without success. It
always messes up the new source data with wrong assumptions. Try it.

--
lostinamazeoftwistyturnypassagesallthesame


"MrShorty" wrote:


Can you be more specific as to what you need? I've never had any
trouble plotting an XY plot and having the data points connected by
straight lines. Normally either select the "connected by lines" option
when the chart is created, or select the data series Format-selected
series-patterns tab-select the desired line style to connect the
points.

I almost never use the paste command to add a data series to an
XYchart. I will either use the paste special command (which allows me
to specify that I'm using new or different X data) or use the
Chart-Source data-Series tab to add a data series.

If that doesn't help, then post again with more details about the
problem you are having.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=493208


  #6  
Old December 15th, 2005, 02:36 PM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter

Exactly... can be done but not readily... reformat your data...
I think MS with just a little thought could add a new chart type that would
be a lot more conducive to "pen plotting". Like allowing a pen-up/pen-down
column or something. Also it seems to me that the default of assuming the X
column in an XY scatter plot is going to be the same for each new series --
is just busted.

I hate that charting in general is so geared for accounting and
presentations and so limited for engineering or science uses.
Why isn't there a 3D XYZ scatterplot chart type for instance?
Why does one have to buy/load/install extensions for mathematical analysis?

I will try your point-per-line idea though. It looks like the best solution
so far. It's just that there are a lot of points and I need them in the
current format for other reasons on the sheet. Looks like I'll be adding a
new worksheet for the chart.

Thanks for trying.
--
lostinamazeoftwistyturnypassagesallthesame


"MrShorty" wrote:


Others may have better ideas, but it seems to me your data aren't laid
out in a format conducive to what you want. I was able (using the
"source data" dialog I mentioned above) to get a plot that looks like
what you describe. I had to select each individual point separated by
commas within a given series. The final series definition looked like
=SERIES(Sheet1!R5C1,(Sheet1!R5C2,Sheet1!R5C4),(She et1!R5C3,Sheet1!R5C5),4).
That, of course, isn't conducive to readily adding points to a
series, or adding series to the chart. Can be done, but not readily.

If you lay your data out differently, it would be easier. Try a lay
out where the X data are in a column and the corresponding Y data are
in the adjacent column. Something like:

name A A B B C C D D (names doubled to emphasize column relationship)
axis X Y X Y X Y X Y
pt1 0 0 0 1 0 2 0 3
pt2 2 0 2 1 2 2 2 3

Then it's easy to add data points (simply add rows) and data series
(simply add pairs of columns going across and paste special) to your
chart.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=493208


  #7  
Old December 15th, 2005, 02:39 PM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter

Hmmmm. The Error-Bars thing might have promise -- but I didn't think it was
available in XY plots. I'll try.

No, the real data doesn't start every line on the Y axis. Just my contrived
data.
Thanks for looking.
--
lostinamazeoftwistyturnypassagesallthesame


"B. R.Ramachandran" wrote:

Hi,

Rearrange the data as,

name, X, Y
A, 0, 0
2, 0
B, 0, 1
2, 1
C, 0, 2
2, 2
D, 0, 3
3, 3

and plot Y vs X for each group as a separate series on an XY-plot. Format
each data-series to connect the two points in it.

OR

Rearrange the data as above. Create ONE plot with the entire data series.
Rightclick on any data-point -- "Format Data Series" -- click on
"X-ErrorBars" Tab -- under "Display" check "Minus", check "Percentage" and
enter "100" -- "OK"

OR

Rearrange the data as above, but insert a third X,Y pair (which would be
idential to the first X,Y-pair) in each group.

name, X, Y
A, 0, 0
2, 0
0, 0
B, 0, 1
2, 1
0, 1
C, 0, 2
2, 2
0, 2
D, 0, 3
3, 3
0, 3

Create ONE X,Y-scatter plot for the entire data, and format the series to
connect the data-points. The cross connections such as A-X3-Y3 and B-X1-Y1,
B-X3-y3 and C-X1-Y1, ... will coincide with the Y axis (and hence wouldn't be
a distraction, of course, this would work only if the X-value of the first
point in each group is zero!).

I am sorry for not being able to suggest a more elegant solution.

Regards,
B. R. Ramachandran




"spazminator" wrote:

Here is some sample data (csv):

name,X1,Y1,X2,Y2
A,0,0,2,0
B,0,1,2,1
C,0,2,2,2
D,0,3,2,3

I want to show line segments only between A-X1-Y1 and A-X2-Y2; B-X1-Y1 and
B-X2-Y2 etc, NOT between A-X2-Y2 and B-X1-Y1 or B-X2-Y2 and C-X1-Y1 etc. It
would be cool if the A, B, C, D labels could be visible on the graph, and
even better if I could then paste like data onto the chart, even using paste
special and have it conform, but I've tried many times without success. It
always messes up the new source data with wrong assumptions. Try it.

--
lostinamazeoftwistyturnypassagesallthesame


"MrShorty" wrote:


Can you be more specific as to what you need? I've never had any
trouble plotting an XY plot and having the data points connected by
straight lines. Normally either select the "connected by lines" option
when the chart is created, or select the data series Format-selected
series-patterns tab-select the desired line style to connect the
points.

I almost never use the paste command to add a data series to an
XYchart. I will either use the paste special command (which allows me
to specify that I'm using new or different X data) or use the
Chart-Source data-Series tab to add a data series.

If that doesn't help, then post again with more details about the
problem you are having.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=493208


  #8  
Old December 15th, 2005, 07:44 PM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter

Hi,

The Error-Bars approach (Method 2 in my previous reply) would work only if
the lines are horizontal (zero slope). If it is not the case, you have to
plot each group (two points) as a separate series (Method 1)

If the lines are horizontal, but the lines don't start on the Y-axis, you
have to use a slight modification to Method 2. To avoid confusion, I have
named the groups as P, Q, R, and S. Supposing tthe Group Names are in Column
A, X-values in Column B, and Y- values in Column D, starting at Row 2.
A, B, C
P, 0.5, 0.5
2.5, 0.5
Q, 0.7, 1.2
2.1, 1.2
R, 0.3, 2.1
2.4, 2.1
S, 0.4, 3.0
2.7, 3.0

Create a new column, D, which would contain the X-Error values as follows:

In D2 enter 0, and in D3 enter =B3-B2, and ENTER.
Now select BOTH the cells, D2 and D3, and auto-fill the formulas down Column
D. For the sample data shown above, the outcome would be
A, B, C, D
P, 0.5, 0.5, 0.0
2.5, 0.5, 2.0
Q, 0.7, 1.2, 0.0
2.1, 1.2, 1.4
R, 0.3, 2.1, 0.0
2.4, 2.1, 2.1
S, 0.4, 3.0, 0.0
2.7, 3.0, 2.6

Now create an XY-Scatter Plot with Y vs X, i.e., Column C vs Col B
Right-click on any data-point -- "Format Data Series" -- click on
"X-ErrorBars" Tab -- under "Display" check "Minus", check "Custom", leave
"+" area blank, and for "-" area, enter the range of Column D (D29 for the
sample data) -- "OK"
This would connect each pair of data-points.

Regards,
B. R. Ramachandran



enter "100" -- "OK"

"spazminator" wrote:

Hmmmm. The Error-Bars thing might have promise -- but I didn't think it was
available in XY plots. I'll try.

No, the real data doesn't start every line on the Y axis. Just my contrived
data.
Thanks for looking.
--
lostinamazeoftwistyturnypassagesallthesame


"B. R.Ramachandran" wrote:

Hi,

Rearrange the data as,

name, X, Y
A, 0, 0
2, 0
B, 0, 1
2, 1
C, 0, 2
2, 2
D, 0, 3
3, 3

and plot Y vs X for each group as a separate series on an XY-plot. Format
each data-series to connect the two points in it.

OR

Rearrange the data as above. Create ONE plot with the entire data series.
Rightclick on any data-point -- "Format Data Series" -- click on
"X-ErrorBars" Tab -- under "Display" check "Minus", check "Percentage" and
enter "100" -- "OK"

OR

Rearrange the data as above, but insert a third X,Y pair (which would be
idential to the first X,Y-pair) in each group.

name, X, Y
A, 0, 0
2, 0
0, 0
B, 0, 1
2, 1
0, 1
C, 0, 2
2, 2
0, 2
D, 0, 3
3, 3
0, 3

Create ONE X,Y-scatter plot for the entire data, and format the series to
connect the data-points. The cross connections such as A-X3-Y3 and B-X1-Y1,
B-X3-y3 and C-X1-Y1, ... will coincide with the Y axis (and hence wouldn't be
a distraction, of course, this would work only if the X-value of the first
point in each group is zero!).

I am sorry for not being able to suggest a more elegant solution.

Regards,
B. R. Ramachandran




"spazminator" wrote:

Here is some sample data (csv):

name,X1,Y1,X2,Y2
A,0,0,2,0
B,0,1,2,1
C,0,2,2,2
D,0,3,2,3

I want to show line segments only between A-X1-Y1 and A-X2-Y2; B-X1-Y1 and
B-X2-Y2 etc, NOT between A-X2-Y2 and B-X1-Y1 or B-X2-Y2 and C-X1-Y1 etc. It
would be cool if the A, B, C, D labels could be visible on the graph, and
even better if I could then paste like data onto the chart, even using paste
special and have it conform, but I've tried many times without success. It
always messes up the new source data with wrong assumptions. Try it.

--
lostinamazeoftwistyturnypassagesallthesame


"MrShorty" wrote:


Can you be more specific as to what you need? I've never had any
trouble plotting an XY plot and having the data points connected by
straight lines. Normally either select the "connected by lines" option
when the chart is created, or select the data series Format-selected
series-patterns tab-select the desired line style to connect the
points.

I almost never use the paste command to add a data series to an
XYchart. I will either use the paste special command (which allows me
to specify that I'm using new or different X data) or use the
Chart-Source data-Series tab to add a data series.

If that doesn't help, then post again with more details about the
problem you are having.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile: http://www.excelforum.com/member.php...o&userid=22181
View this thread: http://www.excelforum.com/showthread...hreadid=493208


  #9  
Old December 16th, 2005, 05:25 AM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter

All this because I was so silly as to create a dataset from scratch which
seemed simple, but unfortunately not representative. The lines I want are
neither horizontal nor vertical nor lined up neatly in any way whatsoever. So
error bars won't do.

Nor did Mr. Shorty's solution produce an elegant result. The global picture
here is that XY-Scatter plots are sickeningly single purpose, with no thought
for general use. Who will and create a better solution? Apparently not MS.
I'm back to drawing plots with gp programming languages.

--
lostinamazeoftwistyturnypassagesallthesame


"B. R.Ramachandran" wrote:

Hi,

The Error-Bars approach (Method 2 in my previous reply) would work only if
the lines are horizontal (zero slope). If it is not the case, you have to
plot each group (two points) as a separate series (Method 1)

If the lines are horizontal, but the lines don't start on the Y-axis,...

  #10  
Old December 16th, 2005, 05:29 AM posted to microsoft.public.excel.charting
external usenet poster
 
Posts: n/a
Default I need more general XY point to point plotting than XY scatter

This is a good example of how an appropriate data layout makes impossible
things easy. You say you need the data in this particular layout for another
reason. Well, it's common that data may need different layouts within the
same workbook. One layout is suitable for on-screen viewing, another is
better for printed reports, a third is good for the data source for a pivot
table, and a fourth might be needed as source data for your chart. Maybe you
need five or six if there are alternative ways you want to display a table
or chart.

Back in the days of multiplan or visicalc, you couldn't afford to "waste"
extra rows and columns on alternative depictions of the same data, but now
we have gigabytes of disk space, and at least hundreds of megabytes of ram.
Go for it, add a worksheet, or set aside another range on the same
worksheet. Copy the data, use Paste Special - Links to paste a linked copy,
then drag these cells around into the proper orientation.

Now you can have your pretty table and pretty chart, and since their data
are linked, when the table changes, so will the chart.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


"spazminator" wrote in message
...
Exactly... can be done but not readily... reformat your data...
I think MS with just a little thought could add a new chart type that
would
be a lot more conducive to "pen plotting". Like allowing a pen-up/pen-down
column or something. Also it seems to me that the default of assuming the
X
column in an XY scatter plot is going to be the same for each new
series --
is just busted.

I hate that charting in general is so geared for accounting and
presentations and so limited for engineering or science uses.
Why isn't there a 3D XYZ scatterplot chart type for instance?
Why does one have to buy/load/install extensions for mathematical
analysis?

I will try your point-per-line idea though. It looks like the best
solution
so far. It's just that there are a lot of points and I need them in the
current format for other reasons on the sheet. Looks like I'll be adding a
new worksheet for the chart.

Thanks for trying.
--
lostinamazeoftwistyturnypassagesallthesame


"MrShorty" wrote:


Others may have better ideas, but it seems to me your data aren't laid
out in a format conducive to what you want. I was able (using the
"source data" dialog I mentioned above) to get a plot that looks like
what you describe. I had to select each individual point separated by
commas within a given series. The final series definition looked like
=SERIES(Sheet1!R5C1,(Sheet1!R5C2,Sheet1!R5C4),(She et1!R5C3,Sheet1!R5C5),4).
That, of course, isn't conducive to readily adding points to a
series, or adding series to the chart. Can be done, but not readily.

If you lay your data out differently, it would be easier. Try a lay
out where the X data are in a column and the corresponding Y data are
in the adjacent column. Something like:

name A A B B C C D D (names doubled to emphasize column relationship)
axis X Y X Y X Y X Y
pt1 0 0 0 1 0 2 0 3
pt2 2 0 2 1 2 2 2 3

Then it's easy to add data points (simply add rows) and data series
(simply add pairs of columns going across and paste special) to your
chart.


--
MrShorty
------------------------------------------------------------------------
MrShorty's Profile:
http://www.excelforum.com/member.php...o&userid=22181
View this thread:
http://www.excelforum.com/showthread...hreadid=493208




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Point Labeling and Chart Plotting help needed tacotime Charts and Charting 1 May 14th, 2004 08:05 PM
Pictures (bitmaps) as Point Markers in XY Scatter Plot? Jim S Charts and Charting 1 April 19th, 2004 02:30 AM
XY Scatter with points labeled, but not with the coordinates of the points, the point names? Cardinal2B Charts and Charting 1 March 11th, 2004 10:37 PM
Plotting a datapoint on an existing Line chart Tushar Mehta Charts and Charting 0 November 23rd, 2003 01:08 AM
Retaining Data Point Colors while Deleting a previously plotted Column? Ken Black Charts and Charting 4 October 17th, 2003 03:54 PM


All times are GMT +1. The time now is 04:13 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.