<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Hi all,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I have some code that uses a cutting plane to create a non-axis aligned slice plot:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><div class="gmail_default">ds = yt.load(file)</div><div class="gmail_default">ctr = YTArray([15.,15.,15.],'pc')</div><div class="gmail_default">cut = ds.cutting(normal=(1.,-1.,0.), center=ctr, north_vector=(0.,0.,1.)) </div><div class="gmail_default">frb = cut.to_frb(width=(42.427,'pc'),height=(30.,'pc'),resolution=(512,724))</div><div class="gmail_default">image = frb['density']/2.126E-24</div><div><br></div><div>I then view the image using the matplotlib imshow command.</div><div>The data is a 30 pc**3 cartesian FLASH AMR dataset with maximum resolution of</div></div><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">​512**3.  I used this code to produce an image, which I have, so I know it used to work (last April).  Now however it does not seem to project in the same direction and seems to be shaped incorrectly with a top portion of the image filled with NaNs.  Has anyone else experienced this behavior?  I tried various things, for example reducing the resolution or switching the order of those values (that leads to a core dump!).  The goal here is to create a slice along the plane aligned with the z axis and 45 degrees away from the x and y axes (the data goes from 0 to 30 pc in each direction).  Any help would be appreciated.​</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Jon</div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">________________________________________________________<br>Jonathan D. Slavin                 Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>       60 Garden Street, MS 83<br>phone: (617) 496-7981       Cambridge, MA 02138-1516<br>cell: (781) 363-0035             USA<br>________________________________________________________<br><br></div></div></div></div>
</div>