<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 3, 2009, at 12:15 , Esmail wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Gökhan SEVER wrote:</div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">It seems like you want to animate your data.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You may want to take a look at Matplotlib examples or Mayavi for 3D<span class="Apple-converted-space"> </span></div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I've used Matplotlib to plot points that were saved during runtime to</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">a file. I wonder if I could skip that step and directly plot during</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">runtime updating the graph as values changed ..</div></blockquote><div><br></div><div>here is a sample.  again, direct questions to the matplotlib list for possible better ideas.</div><div><br></div><div><br></div><div><div>from pylab import *</div><div><br></div><div># initial positions</div><div>x0=rand(5)</div><div>y0=rand(5)</div><div><br></div><div>ion()  # interactive on</div><div><br></div><div>for t in linspace(0,10,100):</div><div>    </div><div>    x=x0+0.1*cos(t)</div><div>    y=y0+0.1*sin(t)</div><div>    </div><div>    if t==0:  # first time calling</div><div>        h=plot(x,y,'o')</div><div>    else:</div><div>        h[0].set_data(x,y)</div><div><br></div><div>    draw()</div><div><br></div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                            </span>bb<br></div><div><br></div><div>-- </div></div></div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Monaco; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>Brian Blais</div><div><a href="mailto:bblais@bryant.edu">bblais@bryant.edu</a></div><div><a href="http://web.bryant.edu/~bblais">http://web.bryant.edu/~bblais</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span> </div><br></body></html>