<div dir="ltr">Hi Suoqing,<div><br></div><div style>Can you check your matplotlib version? If it's older than 1.2.0 streamplot will not be available.</div><div style><br></div><div style>-Nathan</div><div style><br></div>
<div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 1, 2013 at 2:44 PM, Ji Suoqing <span dir="ltr"><<a href="mailto:jisuoqing@gmail.com" target="_blank">jisuoqing@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>Currently I'm using the plot modification callback "annotate_streamlines". However, I got the following error:</div>
<div><br></div><div><div><font face="DejaVu LGC Sans Mono">Traceback (most recent call last):</font></div><div><font face="DejaVu LGC Sans Mono"> File "magnetic_streamline.py", line 9, in <module></font></div>
<div><font face="DejaVu LGC Sans Mono"> slc.annotate_streamlines('magx','magy',factor=10.0,density=6)</font></div><div><font face="DejaVu LGC Sans Mono"> File "/aphelion/jisuoqing/sw/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 101, in newfunc</font></div>
<div><font face="DejaVu LGC Sans Mono"> args[0]._setup_plots()</font></div><div><font face="DejaVu LGC Sans Mono"> File "/aphelion/jisuoqing/sw/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 935, in _setup_plots</font></div>
<div><font face="DejaVu LGC Sans Mono"> self.run_callbacks(f)</font></div><div><font face="DejaVu LGC Sans Mono"> File "/aphelion/jisuoqing/sw/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 955, in run_callbacks</font></div>
<div><font face="DejaVu LGC Sans Mono"> callback(cbw)</font></div><div><font face="DejaVu LGC Sans Mono"> File "/aphelion/jisuoqing/sw/yt-x86_64/src/yt-hg/yt/visualization/plot_modifications.py", line 450, in __call__</font></div>
<div><font face="DejaVu LGC Sans Mono"> plot._axes.streamplot(X,Y, pixX, pixY, density = self.dens,</font></div><div><font face="DejaVu LGC Sans Mono">AttributeError: 'Axes' object has no attribute 'streamplot'</font></div>
</div><div><br></div><div>Now my yt version code is 2ad91aa91e30. In another desktop I remain another version 04fa9a7d799c, in which the annotate_streamlines callback works for the same data file.</div><div><br></div><div>
Thanks a lot!</div><div><br></div><div>Best wishes,</div><div>Suoqing</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>