<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 2, 2016 at 6:45 PM, Stephanie Tonnesen <span dir="ltr"><<a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi all,  <br><br></div>The quick summary of what I want to do is switch the coordinates of the x-axis on a OffAxisProjection plot.  Basically, what I am trying to do is get a LOS look at a galaxy , so I need a 20 degree tilt in the y-z plane.  For some reason this is swapping the x-axis direction from my plain old y slice.  The relevant parts of my code look like this:<br><br>ds.coordinates.x_axis[1] = 0<br>    ds.coordinates.x_axis['y'] = 0<br>    ds.coordinates.y_axis[1] = 2<br>    ds.coordinates.y_axis['y'] = 2<br></div></div></div></div></div></blockquote><div><br></div><div>Is the orientation correct (albeit with z along the horizontal axis and x along the vertical axis) if you don't do this ^ ?</div><div><br></div><div>What happens if you make an off-axis projection aligned with the y axis, i.e. L = [0, 1, 0], north_vector = [0, 0, 1]?</div><div><br></div><div>Can you try making an off-axis projection of the 'x' and 'z' fields?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>    <br>    plot6=yt.SlicePlot(ds,"y","density")<br>    plot6.save()<br><br>    plot8=yt.SlicePlot(ds,"y","velocity_z")<br>    plot8.save()<br><br>    plot9 = yt.SlicePlot(ds,"y","velocity_y")<br>    plot9.save()<br><br>    plot10 = yt.SlicePlot(ds,"y","velocity_x")<br>    plot10.save()<br><br>    ds.periodicity=(True,True,True)<br><br>    L = [0.0,0.93969,-0.342]<br>    #W = [0.5,0.5,0.5]<br>    #c = [0.5,0.5,0.5] <br>    #N = 1028<br>    north_vector = [0,0.342,0.93969]<br>    plot12 = yt.OffAxisProjectionPlot(ds,L,'density',width=(100,'kpc'),north_vector=north_vector)<br>    plot12.save()<br><br>    plot13 = yt.OffAxisProjectionPlot(ds,L,'velocity_x',width=(100,'kpc'),north_vector=north_vector)<br>    plot13.save()<br>    plot14 = yt.OffAxisProjectionPlot(ds,L,'velocity_y',width=(100,'kpc'),north_vector=north_vector)<br>    plot14.save()<br>    plot15 = yt.OffAxisProjectionPlot(ds,L,'velocity_z',width=(100,'kpc'),north_vector=north_vector)<br>    plot15.save()<br><br></div>I have attached four files:  the slices of velocity_y and velocity_x and the OffAxisProjections of the same.  You can see that the x-axis seems to be flipped.  You will also notice that the OffAxisProjection is more zoomed than the Slice, but don't let this distract you :) <br><br></div>I have no idea what has gone wrong here.  Any help, as always, is really appreciated.<br><br></div>Thanks,<br></div>Stephanie<br clear="all"><div><div><div><div><div><div><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div><font face="garamond,serif">Alvin E. Nashman Postdoctoral Fellow<br></font></div><font face="garamond,serif">Carnegie Observatories, Pasadena, CA<br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div>
</div></div></div></div></div></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>