Plotting
Plotting
Data Representation
Never, ever join experimental data points by a line passing through the points. Remember your data are observations made at discrete points. You have absolutely no confidence in values between these points; there could be a spike, an inflection point, a discontinuity etc. You only have information where you measured it. If you then perform a linear (or nonlinear) regression, or overlay the results of a model prediction you can use a continuous line. Model lines should be extended/extrapolated across the full range of the plot (unless there is a good scientific reason why the model is invalid in some region). Probably the worst offense in Excel, is that the default plotting style is not only that points are connected together, but this is done with a spline, i.e. a nice smooth line that goes through all the points and has a continuous derivative. This leads to nice smooth looking curves (always good for a financial analyst) but it misrepresents your data, and gives undue emphasis to statistical outliers. In Excel you should use the x-y scatter plot and select the points only icon. Always add a Legend labeling all of the individual data series plotted on the chart Excel can help you in this regard. Many people didnt label the different data sets they plotted on the graphs in their report. You need to learn the options in Excel under the Chart menu for Adding Data Series etc. Tables: always use a preceding zero in the data you record in tables. Never switch units in the middle of tables (e.g. from mV to V etc). Always use a consistent number of significant digits. This may be different column from column (e.g. if different instruments you have been recording from have different number of digit readout), but should be the same for all rows in a given table. It can be hard to do this in Excel by default (for example; if you use the general format under Format: Cells you get a fixed number of decimal places; e.g. 3.91, 0.39, 0.04.; this is NOT a consistent number of significant digits of course; better is to use the scientific notation with a fixed number of significant digits (so the data series above would become 3.91E00, 3.91E-01, 3.91E-2.etc) always display UNITS in each column within Excel. This will help you when you go back and look at the data later. Mathcad is much better in this regard, but since they dont have a Mac version I
Plotting/Data Hints
cant use it. In Excel my convention is to always add another row or column that reminds me what the units for each column should be. Get into the habit of this and it will serve you in good stead later.
C 1.00E-01 F Characteristic Frequency f_c 2.34E+02 Hz DATA f [Hz] 40 100 234 500 2000 5000 10000
Amplitude
1.00E+00
Vout [V] Vout/Vin t_f [ms] MEASURED MEASURED 1.00E+00 9.70E-01 -6.80E-01 9.22E-01 8.94E-01 -6.80E-01 7.34E-01 7.12E-01 -5.00E-01 4.06E-01 3.94E-01 -3.60E-01 1.11E-01 1.08E-01 -1.12E-01 4.60E-02 4.46E-02 -4.56E-02 2.52E-02 2.44E-02 -2.24E-02
1.00E-01
Model
LOW PASS FILTER THEORY f [Hz] x 1.00E+01 4.27E-02 1.58E+01 6.76E-02 2.51E+01 1.07E-01 3.98E+01 1.70E-01 6.31E+01 2.69E-01 1.00E+02 4.27E-01 1.58E+02 6.76E-01 2.51E+02 1.07E+00 3.98E+02 1.70E+00 6.31E+02 2.69E+00 1.00E+03 4.27E+00 1.58E+03 6.76E+00 2.51E+03 1.07E+01 3.98E+03 1.70E+01 6.31E+03 2.69E+01 1.00E+04 4.27E+01 Model 9.99E-01 9.98E-01 9.94E-01 9.86E-01 9.66E-01 9.20E-01 8.28E-01 6.82E-01 5.07E-01 3.48E-01 2.28E-01 1.46E-01 9.29E-02 5.88E-02 3.71E-02 2.34E-02 Phase [rad] -0.042637 -0.0675133 -0.1067568 -0.1682383 -0.2629514 -0.403249 -0.5945463 -0.8199665 -1.0386704 -1.215104 -1.3405568 -1.4239667 -1.477751 -1.5119866 -1.5336641 -1.547361 Phase [deg] -2.44 -3.87 -6.12 -9.64 -15.07 -23.10 -34.06 -46.98 -59.51 -69.62 -76.81 -81.59 -84.67 -86.63 -87.87 -88.66
Measurements 2/4/2004
1.00E-02 1.00E+01 1.00E+02 1.00E+03 1.00E+04
Frequency [Hz]
Notes: (i) Notice the consistent number of significant digits and use of units increase the x-value by 10 . e.g. I wanted 5 points per decade so the first column increases by 100.2 = 1.585.
1/n
1.00E+01
1.00E+02
f [Hz]
1.00E+03
1.00E+04