[yt-users] p.modify["point"]

Matthew Turk matthewturk at gmail.com
Sun Jul 8 10:25:19 PDT 2012


Hi Elizabeth,

It looks like the error might be in marker (But it's tough to tell
from the one error) so maybe try:

p.modify["marker"](t1clouds[c]['position'], plot_args = dict(marker = 'o')

-Matt

On Sun, Jul 8, 2012 at 12:04 PM, Elizabeth Tasker
<tasker at astro1.sci.hokudai.ac.jp> wrote:
> Hi,
>
> I'm trying to add text to a particular point in my slice. I've got:
>
>  position = na.array([20.2, 13.8, 16.0])
>     pc = PlotCollection(pf, center=position)
>     p = pc.add_projection("Density", 2)
>     p.set_width(2, 'kpc')
>     for c in range(len(t1clouds)):
>         r = abs(t1clouds[c]['position']-position)
>         if r[0] < 1.0 and r[1] < 1.0:
>             p.modify["point"](t1clouds[c]['position'], str(t1clouds[c]['track']))
>             p.modify["marker"](t1clouds[c]['position'], marker='o')
>
>
>     pc.save("%s_tracking" % (fn))
>
>
> But python complains with:
>
>
> TypeError: text() argument after ** must be a mapping, not NoneType
>
>
> Did I call the modifier incorrectly?
>
> Elizabeth
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



More information about the yt-users mailing list