Hi,

Beginning Python Visualization: Crafting Visual Transformation Scripts
by Shai Vaingast
http://www.amazon.com/Beginning-Python-Visualization-Transformation-Professionals/dp/1430218436/ref=sr_1_1?ie=UTF8&s=books&qid=1244158389&sr=8-1


Has anyone seen/read this book? I am looking for a good
hardcopy reference for matplotlib and associated tools.

While the gallery on the matplotlib site is a good way to learn, I
would like a reference guide that I could easily print out or
a tutorial of sorts, or possibly this book.

Thanks,
Esmail

ps: here's an example of the sort of thing I'd like to learn and
     know about.

Someone recently generously shared this code with me on the python
list. While I have used pylab/matplotlib a bit, I didn't know about
ion() (line 12), nor am I sure about what is happening on line 19 and
21, does plot return a list? Why is it subscripted to?  Hadn't seen
draw() before either, though I know show() .. these sort of things I
am curious to learn about before I see them in code for the first
time.


      1 #!/usr/bin/env python
      2 
      3 from pylab import *
      4 
      5 # of elements
      6 ELEMS = 250
      7 # initial positions
      8 
      9 x0 = rand(ELEMS)
     10 y0 = rand(ELEMS)
     11 
     12 ion()  # interactive on
     13 
     14 for t in linspace(0, 1, 100):
     15     x = x0 + 0.1*cos(t)
     16     y = y0 + 0.1*sin(t)
     17 
     18     if t == 0:  # first time calling
     19         h = plot(x,y,'ro')
     20     else:
     21         h[0].set_data(x,y)
     22 
     23     draw()

pps: I slightly reformatted/modified the original code.


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to