Generating a graph with a repeating x-axis

corbettw

New Member
Joined
Feb 14, 2017
Messages
4
Hello all,

Project: I have a set of chemical element concentrations (~20) at various depths in the subsurface. I would like to create a single graph that plots my y-axis as a depth of 0-50m and my x-axis to be a repeating logarithmic scale showing how each of the concentrations will vary with depth. (Some elements are 0-10ppm some are 500-1000ppm)

Currently I make ~20 single graphs of each element and combine them into one in adobe but there must be a faster way to do this.

Thank you very much.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Could you link to an example of your chart?

I am new to this and not sure how to link an excel file. This is an example of the data I am working with.

[TABLE="width: 465"]
<colgroup><col><col><col span="5"></colgroup><tbody>[TR]
[TD]Depth (m)[/TD]
[TD]Ba (PPM)[/TD]
[TD]Ce (PPM)[/TD]
[TD]Cr (PPM)[/TD]
[TD]Co (PPM)[/TD]
[TD]Pb (PPM)[/TD]
[TD]La (PPM)[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]325[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]32[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]489[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]23[/TD]
[TD="align: right"]22[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]525[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]32[/TD]
[TD="align: right"]28[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]680[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]19[/TD]
[TD="align: right"]26[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]732[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]20[/TD]
[/TR]
</tbody>[/TABLE]


Thanks.
 
Upvote 0
Something like this?

Hxq4oS0.png


Note that I've deleted the zero for Co at 2 m, because Excel will complain about zeros on a log scale.

Your Y values are in the first column, which is different than the conventional data Excel expects. Having multiple X series for one Y series is also opposite of the multiple Y for one X that Excel expects. So you'll have to do some extra work. (Shameless plug: my Excel charting add-in does this with only a couple clicks.)

Select the Ba(PPM) data (including the label in the first row) and insert an XY Scatter chart.

Click Select Data on the ribbon.

Select the Ba(PPM) series in the left-hand list, and click the Edit button.

In the X Values box, enter the range with the Ba PPM values, and in the Y values box, enter the range with Depths. Click OK.

Click Add, select the new series, and click Edit. In the X Values box, enter the range with the Ce PPM values, and in the Y values box, enter the range with Depths. Click OK.

Repeat for Cr, Co, Pb, and La. Click OK to leave the dialog.

Right click on the bottom axis, choose Format Axis. Check the Log Scale box.
 
Upvote 0
This is close but I wanted to have each element separated into they're own 1-1000 x-axis.

This is a well log, much like what I want except my columns would be different elements. Currently I just create a bunch of separate graphs and put them together, I was just hoping there would be a faster way.

https://i.stack.imgur.com/RLE43.png

Thank you.
 
Upvote 0

Forum statistics

Threads
1,223,719
Messages
6,174,087
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top