On Tue, Feb 14, 2012 at 9:23 PM, 7stud <7s...@excite.com> wrote:
> 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
>
>
>
7stud,
>From the above example, it looks like the plotting no longer "takes
forever". I suspect that you were merely experiencing the first-time
font-cache build process, which can be slow. Shall we consider this
resolved?
(of course, documentation needs to be updated for the Mac instructions)
Ben Root
------------------------------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users