Benjamin Root <ben.root@...> writes:
>
> The second one shouldn't take much time at all to finish.
> How long did it take? How big was the png file?
> Ben Root
def my_func():
import matplotlib.pyplot as plot
xs = [2, 3, 5, 7, 11]
ys = [4, 9, 5, 9, 1]
plot.plot(xs, ys)
plot.savefig("squaremod10.png")
import timeit
t = timeit.Timer('my_func()', 'from __main__ import my_func')
print(t.timeit(100) / 100)
$ python mpl1.py
0.14541503191
$ ls -al squaremod10.png
-rw-r--r-- 1 7stud staff 27904 Feb 14 20:12 squaremod10.png
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users