diff ch4ex4.py @ 28:15ff31ecec7a

Use a linear scale on the y-axis.
author Brian Neal <bgneal@gmail.com>
date Sun, 06 Jan 2013 14:57:01 -0600
parents f6073c187926
children
line wrap: on
line diff
--- 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()