# HG changeset patch # User Brian Neal # Date 1357505821 21600 # Node ID 15ff31ecec7aaab9601811edb395e2777bada0ca # Parent 78116556b491bf6e25d6c580ae7b3e1684a38753 Use a linear scale on the y-axis. diff -r 78116556b491 -r 15ff31ecec7a ch4ex4.py --- a/ch4ex4.py Sat Jan 05 16:38:24 2013 -0600 +++ b/ch4ex4.py Sun Jan 06 14:57:01 2013 -0600 @@ -44,11 +44,11 @@ # plot graph pyplot.clf() pyplot.xscale('log') -pyplot.yscale('log') +pyplot.yscale('linear') pyplot.title('') pyplot.xlabel('p') pyplot.ylabel('C(p)/C(0)') pyplot.plot(p_vals, c_vals, label='C(p)/C(0)', color='green', linewidth=3) pyplot.plot(p_vals, l_vals, label='L(p)/L(0)', color='blue', linewidth=3) -pyplot.legend(loc=4) +pyplot.legend(loc='lower left') pyplot.show()