Add a second series to a scatter plot.

I have two tables, each with non-adjacent x and y data columns. I would like to plot both series on one plot as separate series. I have read the pdf help file, and searched through past discussions here. Non of the tips in those locations work.


Any thoughts?


Thanks

Jeff

iMac, OS X Mountain Lion (10.8.2)

Posted on Sep 25, 2012 12:08 PM

Reply
23 replies

Sep 25, 2012 1:57 PM in response to Badunit

Edit to the above post for non-adjacent columns:


  1. Select the non-adjacent X&Y data for the first series and create a chart.
  2. With the chart selected, hold down Option and Command and select any column in your second table for your second series' Y data. You may not be able to select the column you want. Pick another column if the one you want can't be selected. Numbers will choose a column for the "X" data.
  3. On the chart, select the second series. Go to the Chart inspector, series tab, and change the X, Y, and Label to the correct columns.


I tried a bunch of more straightforward methods to get that second series on the chart but none worked consistently.

Sep 25, 2012 1:27 PM in response to Jeff Mendolo

For X-Y data in adjacent columns where one series in the first table and the second is ina second table:


  1. Select the data in the first table and create a chart. This will give you the first series
  2. The chart should be active but, if not, click on the chart to select it.
  3. Hold down Command and select the data in the second table. This will be the second series


I see the problem trying this with non-adjacent columns and two tables. You can't select the second set of data. Other than moving columns around, making the chart as above, then putting the columns back, I don't yet know of a more straightforward method.

Sep 25, 2012 11:49 PM in response to Barry

Barry,

In Excel, you would open the equivanlent to the chart inspector and click 'add series' under 'data'. You would then highlight the x series then y series for the second (or third, or fourth, etc.) series. They would initially be plotted on the same y - x axis, but you could select a box for secondary y axis and/or secondary x axis to appear. I can't tell you how many of these plots were in my PhD thesis, maybe 500, so I can tell you it is really easy. Not sure why Apple has chosen this adjancent column requirement.

Sep 26, 2012 12:28 AM in response to Jeff Mendolo

Jeff,


To add a series consisting of a pair of non-adjacent columns, from any table, Hide the columns that fall between X and Y and then Select the X-column and Shift-Select the second column. The X-Y pairs can now be dragged to the chart.


Unfortunately, if you then Unhide the intervening columns, the chart will change and you will have to edit the series specification.


Jerry

Sep 26, 2012 7:48 AM in response to Jeff Mendolo

Jeff Mendolo wrote:


Badunit,

The option command method seems to add data to an existing series, but does not give me a different series. The last point on the first series is physically connected with a line to the first data point on the next series. There is also only one series listed in the legand.


Are you selecting the chart as a whole (correct) or the first series in the chart (incorrect) before you try to add the second series? The method worked for me.


I'll second Jerry's solution of gathering the data into a separate table for the chart. Otherwise, if you make changes to one of your tables (i.e., add/delete a column between your X & Y data), you'll probably have to readjust the chart to get it looking at the corect columns again. It's more foolproof to use a separate table as the basis for the chart.

Sep 26, 2012 9:43 AM in response to Badunit

Badunit,


This is interesting.

At first I just selected the chart and I was unable to select data, so I selected the first data series and was able to select any column I wished, but it added it to the first series.

I just went back to it, and selected the whole chart and attempted to select the column. I could not, so I selected a random column, it worked... sort of... I was able to select the wrong Y column and Numbers selected a column for X, but only some of the rows for X are selected and I can't seem to figure out why. It seems to select one specific column for X, and I can select the Y column. Only 12 of the 15 rows are selected for X, all the rows are selected fro Y. I can go back and manually edit the data series in the inspector. So this seems to be the best option.

Thank you

Sep 26, 2012 10:07 AM in response to Jerrold Green1

Jerry,


The option + command solution worked, there just seems to be an error in the way in which the program automatically assigns X values. It is the simplest way. I don't like the additional table method because it requires extra work, and puts extra clutter on the page. You are right, you can always hide it away, that just seems unelegant... I wonder what Steve Jobs would think about a solution like that. Thank you for the suggestions.

Sep 26, 2012 10:14 AM in response to Jeff Mendolo

That weirdness with selecting the second set of data is the problem I was trying to get around for you but couldn't. I think this wasn't tested thoroughly. I, too, had to choose a different column than I really wanted and I, too, had the Numbers-selected X data be a different number of cells than it should have been. You can tell which columns can/cannot be chosen by watching the shape of the cursor. I couldn't determine the pattern or reason for why some could be chosen and others could not.

Sep 26, 2012 10:34 AM in response to Jeff Mendolo

Hi Jeff,


"Hopefully someone at Apple's Numbers team monitors these boards and sees this discussion and fixes the bug."


Highly unlikely. These are user-to-user communities, and Apple does not actively monitor them. The monitoring that is done by Apple employees is for compliance with the terms of use, and even that is highly dependent on reports from users.


The route for communicating a bug report directly to Apple is via the Feedback channel. You'll find "Provide Numbers Feedback" in the Application menu (in Numbers, the Numbers menu). Be prepared to describe the bug and the steps necessary t make it occur.


Regards,

Barry

Sep 26, 2012 1:23 PM in response to Jeff Mendolo

Jeff Mendolo wrote:


Jerry,


The option + command solution worked, there just seems to be an error in the way in which the program automatically assigns X values. It is the simplest way. I don't like the additional table method because it requires extra work, and puts extra clutter on the page. You are right, you can always hide it away, that just seems unelegant... I wonder what Steve Jobs would think about a solution like that. Thank you for the suggestions.

Jeff,


I think the bottom line here is that Apple should have specified in their User Guide that X-Y data pairs, and additional Y-values when X-values are shared, must be in adjacent columns. That's the only way that the interface works normally. And, it's the way the developers would most likely assume the data would be aligned in the typical table. Yes, it would be nice if the app smoothly accomodated data scattered around a table, but knowing what we do, it would make sense to avoid the situation.


Jerry

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Add a second series to a scatter plot.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.