Import .CSV file and spread out over 360 points in X-axis on graph

LRATOZ

Board Regular
Joined
Aug 17, 2014
Messages
59
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am making an application that makes up a 360 degree skyline of a site in Excel 2010.
If the site is reasonably flat I will get away with about 10 to 15 values (Azimuth and Elevation of objects in degrees).
On sites where there are lots of buildings, masts, trees, etc. it can go up to 150 or more data points for a 360 degree view.
The data is coming from a theodolite and the values are stored as a text file in two columns; Azimuth and elevation in degrees.

Now the problem is that I want to have a scale in the X-axis from 0 to 360 degrees.
When I import the data in a graph that only has, say 50 values, then the X-axis will only be showing 50 points.
I want to see the X-axis at the same scale all the time divided in 360 degrees.

Example:

I've got three points as follows:
Azimuth Elevation in degrees
18.5 20
57.3 11
185.7 6.3

So I want to see these points marked on the X-axis at the corresponding dot in the X-axis.
So the 18.5 value should be at 18 degrees on the X-axis
The 57.3 value should be at 57 degrees on the X-axis
The 185.7 degrees should be on the 185 degrees point on the X-axis
All values in between should be 0 or equal to a base line.

I've been pulling out hair for days to sort this problem:eek:. Is there anybody out there who can help?
Thanks,

Luc
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Use a scatter (not line) plot, and set the x axis min to 0 and the max to 360.
 
Upvote 0
Use a scatter (not line) plot, and set the x axis min to 0 and the max to 360.
Thanks for your help but that doesn't seem to work.
Here is how it should look like:

2nc1jjc.jpg


And here is what I got:

2hn556h.jpg


As you can see the 169 data points are shown but their value do not correspond to the data points where I want them
Eg. The point 138.5; 33.2 (The big spike) shows in the second graph at 65 degrees instead of the expected 138 degrees.

Here are the values, for this particular case, I want to plot:

AzimuthElevation in degrees
01.9
5.32.2
10.72.3
15.41.8
20.42.2
25.11.8
30.21.8
31.72.5
35.13.9
39.22.9
433.1
46.81.8
50.52.3
54.81.8
59.41.7
62.92.7
64.51.4
66.83.4
682.1
70.22.2
72.71.2
77.31.1
81.31
83.90.9
86.21.4
89.51.1
901.1
95.51.1
98.81.5
101.90.8
104.10.3
1090.4
112.20.5
114.90.4
115.80.4
115.80.5
116.40.7
117.40.7
118.21.3
118.91
119.20.7
119.50.9
122.30.9
122.61
122.80.9
123.10.9
123.41.8
124.52.2
124.92.1
125.32.1
125.31.1
129.91.1
130.60.8
130.70.9
130.80.9
131.11.1
131.51.2
131.70.9
133.60.9
133.81.1
134.71.4
135.41.1
135.80.7
136.91
138.30.7
138.30.7
138.533.2
1390.4
140.20.8
140.71.4
141.11.4
145.61
150.10.9
154.60.9
157.61.3
160.31.7
1621.1
161.91.4
162.11.6
162.31.5
162.11.1
164.31.2
166.21.3
166.41.1
1681.5
169.61.4
170.21.3
171.31.1
1721.4
172.50.9
174.40.9
176.70.9
1800.5
181.60.7
183.60.5
186.20.9
192.30.7
192.30.2
1930.4
196.30.4
197.50.4
200.50.8
201.10.8
198.92.6
203.62.7
201.82.2
201.50.7
204.40.8
2060.4
207.80.6
211.20.1
213.80.3
218.20.8
220.30.1
224.30
228.5-0.3
232.1-0.1
234.9-0.2
238.8-0.2
240.3-0.1
240.30.4
240.80.9
241.30.4
241.3-0.1
243.4-0.2
246.2-0.2
250.30
254.60.4
256.80.3
258.20.3
259.8-0.2
264.5-0.3
265.30
267.2-0.3
270-0.3
274-0.4
279.40
282.2-0.1
284.8-0.1
286.8-0.1
286.83.4
286.90.2
288.40.2
288.55.9
288.60.2
289-0.1
291.3-0.1
292.30.1
296.5-0.2
299.7-0.1
303-0.2
307.8-0.1
309.80
314.70.3
317.60.1
324.2-0.2
328.10.2
332.80.1
337.80.2
342.90.5
347.30.4
350.80.4
346.715.1
351.116.8
355.515.1
351.211.2
351.40.8
354.51.5
3601.9

<tbody>
</tbody>
 
Last edited:
Upvote 0
Maybe you should make an XY Scatter chart instead of a line chart. You can format it so the points are connected as in a line chart, but the actual X values will be plotted like numerical values. You can set the X axis scale to start at 0 and end at 360.

Like this:

Azimuth-Elevation.png
 
Upvote 0
John,

This works a treat!
Exactly how I want it.
Thank you so much for helping me out. This has saved me a lot of frustration!
Cheers,

Luc
 
Upvote 0

Forum statistics

Threads
1,215,506
Messages
6,125,197
Members
449,214
Latest member
mr_ordinaryboy

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