Plotting Lab Data in A Semilog Graph With Excel Rev1
Plotting Lab Data in A Semilog Graph With Excel Rev1
This example will show how to plot lab data in a semilog graph with Excel. Specifically this example plots the phase versus frequency response of a first-order high-pass filter on a 3-cycle semilog graph. First the data is appropriately entered into Excel.
Frequency (Hz) 10 20 40 80 100 200 300 400 800 1000 2000 4000 8000 10000 Phase (degrees) 88.09 86.19 82.41 75.07 71.57 56.31 45.00 36.87 20.56 16.70 8.53 4.29 2.15 1.72
The first column of cells [Frequency (Hz)] contains the 14 frequency values. The second column of cells [Phase (degrees)] contains the 14 phase values associated with the previous 14 frequency values for a first-order high-pass filter. Frequency (in hertz) will be plotted along the horizontal axis (the X axis), and phase (in degrees) will be plotted along the vertical axis (the Y axis). Select the column of 14 cells which contains all the appropriate frequency values, and while holding down the Ctrl key, additionally select the column of 14 cells which contains all the appropriate phase values. Click on the Chart Wizard button located on the toolbar. On the Standard Types tab, select XY (Scatter) under Chart type: and then select Scatter with data points connected by lines under Chart sub-type:. Click Finish. Place the cursor over the Series1 legend block; right click and select Clear. Next place the cursor over one of the horizontal axis (X axis) values, such as 8000; right click and select Format Axis, on the Scale tab type 10 in the Minimum: text box and check the Logarithmic scale box. Click OK. Now place the cursor over one of the vertical axis (Y axis) values, such as 50.00; right click and select Format Axis, on the Number tab, select General under Category:. Click OK. Place the cursor anywhere in a blank area of the plot; right click and select Chart Options. On the Titles tab, type in the appropriate titles for the Chart title: [which would be High-pass Filter Phase Response], the Value (X) axis: [which would be Frequency (Hz)] and the Value (Y) axis: [which would be Phase (degrees)]. On the Gridlines tab, check both the Major gridlines and Minor gridlines boxes under Value (X) axis. Click OK.
Place the cursor anywhere in a blank area of the plot; right click and select Format Plot Area. On the Patterns tab, select the None option under Area. Select OK. Your plot should now look similar to the one below. You may adjust the overall size and aspect ratio of the plot by appropriately stretching the corners and sides.
Phase (degrees)
1000
10000
Other lab data that requires a semilog graph can be plotted with Excel in a similar manner. You may observe in some Excel plots that the horizontal axis values are located at the top of the graph by default. To change the location of the horizontal axis values to the bottom of the graph you will need to do the following: place the cursor over one of the horizontal axis (X axis) values; right click and select Format Axis, on the Patterns tab, select the Low option under Tick mark labels. Select OK. To learn how to create two plots on one graph with Excel, reference the document Plotting Basic Lab Data with Excel which is available at the following website: http://ecet.spsu.edu/whodges/default.htm