<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi John and Nathan,<div><br></div><div>I see… Now it works -- many thanks!</div><div><br></div><div>Best wishes,</div><div>Suoqing</div><div><br></div><div><div><div>On Jun 1, 2013, at 6:17 PM, John ZuHone <<a href="mailto:jzuhone@gmail.com">jzuhone@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>Hi Suoqing,</div><div><br></div><div>I think you may need to upgrade matplotlib... Older versions didn't have this functionality. This would be the case if you installed yt a while back.</div><div><br></div><div>try:</div><div><br></div><div>pip install -U matplotlib <br><br>Best,</div><div><br></div><div>John </div><div><br>John ZuHone<div>Laboratory for High-Energy Astrophysics<br><div>NASA/Goddard Space Flight Center</div><div>8800 Greenbelt Rd., Code 662</div><div>Greenbelt, MD 20771</div><div>(w) 301-286-2531</div><div>(m) 773-758-0172</div></div><div><a href="mailto:jzuhone@gmail.com">jzuhone@gmail.com</a></div><div><a href="mailto:john.zuhone@nasa.gov">john.zuhone@nasa.gov</a></div></div><div><br>On Jun 1, 2013, at 5:44 PM, Ji Suoqing <<a href="mailto:jisuoqing@gmail.com">jisuoqing@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=us-ascii">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></blockquote><blockquote type="cite"><span>_______________________________________________</span><br><span>yt-users mailing list</span><br><span><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a></span><br><span><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></span><br></blockquote></div>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></blockquote></div><br></div></body></html>