|
File |
Description |
|---|---|
|
Plot ohmsLaw.dat as a simple graph. This shows how to read a file with two columns of numbers and plot the second column versus the first column. |
|
|
Plot a histogram of the muon decay times saved in mudkTime.dat. This shows how to read a file of numbers (one column), fill a histogram, and then plot the histogram. |
|
|
An exact least-squares fit to a line using maxima to solve the linear equations. This is a solution to example 6.2 in Bevington and Robinson |
|
|
Simulate linearly correlated data. The independent variable is distributed around the line with a variance of 1.0. |
|
|
Make a histogram using pylab (part of matplotlib). |
|
|
Make a histogram using ROOT through python. |
|
|
Use amoeba.py to minimize (or maximize) a function. |
|
|
Code for a data analysis example worked through during lecture. |