<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> <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 class="gmail_signature" 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>