8 Jul
2012
8 Jul
'12
4:04 p.m.
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
4192
Age (days ago)
4281
Last active (days ago)
10 comments
3 participants
participants (3)
-
Elizabeth Tasker
-
Matthew Turk
-
Nathan Goldbaum