Mercurial > public > think_complexity
changeset 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 | 78116556b491 |
children | 65b70b4e12ad |
files | ch4ex4.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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()