[yt-users] Streamplot error in annotate_streamlines callback

Nathan Goldbaum nathan12343 at gmail.com
Sat Jun 1 15:14:54 PDT 2013


Hi Suoqing,

Can you check your matplotlib version?  If it's older than 1.2.0 streamplot
will not be available.

-Nathan




On Sat, Jun 1, 2013 at 2:44 PM, Ji Suoqing <jisuoqing at gmail.com> wrote:

> Hi,
>
> Currently I'm using the plot modification callback "annotate_streamlines".
> However, I got the following error:
>
> Traceback (most recent call last):
>   File "magnetic_streamline.py", line 9, in <module>
>     slc.annotate_streamlines('magx','magy',factor=10.0,density=6)
>   File
> "/aphelion/jisuoqing/sw/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
> line 101, in newfunc
>     args[0]._setup_plots()
>   File
> "/aphelion/jisuoqing/sw/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
> line 935, in _setup_plots
>     self.run_callbacks(f)
>   File
> "/aphelion/jisuoqing/sw/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py",
> line 955, in run_callbacks
>     callback(cbw)
>   File
> "/aphelion/jisuoqing/sw/yt-x86_64/src/yt-hg/yt/visualization/plot_modifications.py",
> line 450, in __call__
>     plot._axes.streamplot(X,Y, pixX, pixY, density = self.dens,
> AttributeError: 'Axes' object has no attribute 'streamplot'
>
> 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.
>
> Thanks a lot!
>
> Best wishes,
> Suoqing
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130601/71683f6d/attachment.htm>


More information about the yt-users mailing list