<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 3:03 AM, Gunther Lukat <span dir="ltr"><<a href="mailto:g.lukat@gmx.net" target="_blank">g.lukat@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px;text-align:-webkit-auto;text-indent:0px;word-wrap:break-word">Dear yt-users,</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px;text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px;text-align:-webkit-auto;text-indent:0px;word-wrap:break-word">I am new to yt and and i am stuck in annotating projection plots.</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-transform:none;white-space:normal;word-spacing:0px;text-align:-webkit-auto;text-indent:0px;word-wrap:break-word">Using the Plot Window interface, i try to create two equal projection plots with yt.ProjectionPlot and yt.OffAxisProjectionPlot.</div><div style="word-wrap:break-word">In detail, the functions are called with:</div><div style="word-wrap:break-word"><br></div><div style="word-wrap:break-word">p1 = ProjectionPlot(ds, 'z', 'density',center='max',width = ((xw,'cm'),(yw,'cm')))</div><div style="word-wrap:break-word"><br></div><div style="word-wrap:break-word">north_vector = [0.0,1.0,0.0]</div><div style="word-wrap:break-word">off=[0.0,0.0,1.0]</div><div style="word-wrap:break-word">ds.periodicity = (True, True, True)</div><div style="word-wrap:break-word">p2 = OffAxisProjectionPlot(ds,off,'density', center='max',width=((xw,'cm'),(yw,'cm'),(zw,'cm')),north_vector=north_vector)</div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><br></div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word">While i receive similar plots from these calls, i am stuck to annotate the plots.</div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word">I try to draw spheres with:</div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><br></div><div style="text-align:-webkit-auto;text-indent:0px;word-wrap:break-word"><div style="word-wrap:break-word"> p1.annotate_sphere( [xp,yp,zp],(1.0e14,'cm'), {'fill':True, 'color':'w'})</div><div style="word-wrap:break-word"> p2.annotate_sphere( [xp,yp,zp],(1.0e14,'cm'), {'fill':True, 'color':'w'})</div></div></div>
</div>
<br><div>where xp, yp, zp is calculated to lie on the plane defined by the point 'center='max'' and the vector 'off'.</div><div><br></div><div>For p1, i get an annotated image, but for p2, the annotation fails.</div><div><br></div><div>Is there a different way to annotate OffAxisProjectionPlots? </div><div><br></div><div><br></div></div></blockquote><div><br></div><div>Ah, it looks like there's a problem with the way the coordinate system is being interpreted. I've opened an issue to track this:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/issues/1143/sphere-callback-for-offaxisprojectionplot">https://bitbucket.org/yt_analysis/yt/issues/1143/sphere-callback-for-offaxisprojectionplot</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div></div><div><br></div><div><br></div><div>Greetings</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>