[yt-users] OffAxisProjectionPlot annotaion

Gunther Lukat g.lukat at gmx.net
Wed Nov 11 01:03:03 PST 2015


Dear yt-users,

I am new to yt and and i am stuck in annotating projection plots.
Using the Plot Window interface, i try to create two equal projection plots with yt.ProjectionPlot and yt.OffAxisProjectionPlot.
In detail, the functions are called with:

p1 = ProjectionPlot(ds, 'z', 'density',center='max',width = ((xw,'cm'),(yw,'cm')))

north_vector = [0.0,1.0,0.0]
off=[0.0,0.0,1.0]
ds.periodicity = (True, True, True)
p2 = OffAxisProjectionPlot(ds,off,'density', center='max',width=((xw,'cm'),(yw,'cm'),(zw,'cm')),north_vector=north_vector)

While i receive similar plots from these calls, i am stuck to annotate the plots.
I try to draw spheres with:

 p1.annotate_sphere( [xp,yp,zp],(1.0e14,'cm'), {'fill':True, 'color':'w'})
 p2.annotate_sphere( [xp,yp,zp],(1.0e14,'cm'), {'fill':True, 'color':'w'})

where xp, yp, zp is calculated to lie on the plane defined by the point 'center='max'' and the vector 'off'.

For p1, i get an annotated image, but for p2, the annotation fails.

Is there a different way to annotate OffAxisProjectionPlots? 




Greetings






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20151111/b0a7def1/attachment.htm>


More information about the yt-users mailing list