<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Junhwan,</div><div><br></div><div>It's the latter: z=center-0.2 to z=center+0.2.  If you don't like the center you've defined for the PlotCollection, you can optionally define a new center in the add_thin_projection call.</div><div><br></div><div>To see exactly what add_thin_projection is doing, take a look at its definition: <a href="https://bitbucket.org/yt_analysis/yt/src/f180d1f7c698/yt/visualization/plot_collection.py?at=yt#cl-791">https://bitbucket.org/yt_analysis/yt/src/f180d1f7c698/yt/visualization/plot_collection.py?at=yt#cl-791</a></div><div><br></div><div>Cheers,</div><div><br></div><div>Nathan</div><br><div><div>On Oct 10, 2012, at 8:01 AM, Jun-Hwan Choi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>It is nice there is a method what I need.<br>One more question.<br>Let say I set pc.add_thin_projection("Density","z",0.4).<br>Is this thin projection is through z=0 to z=0.4 or z=center-0.2 to z=center+02 where the center is define at PlotCollection and/or add_thin_projection?<br><br>Thank you,<br>Junhwan<br>On 10/10/12 00:50, Matthew Turk wrote:<br><blockquote type="cite">Hi Nathan and Jun-Hwan,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">Unfortunately, I just tried to create a plot that way and either I'm doing<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">something wrong or there's a bug somewhere that breaks this functionality.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I could create the projection object, but when I supplied the projection<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">object as a data source in add_projection, it failed (traceback<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">here:http://paste.yt-project.org/show/2775/). Can someone else on the list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">let us know if I'm doing something wrong here?<br></blockquote></blockquote><blockquote type="cite">I think you want to create a region, with pf.h.region, and supply that<br></blockquote><blockquote type="cite">as the data source.  The data_source gets queried from the projection.<br></blockquote><blockquote type="cite">  You could also create field cuts by using an InlineExtractedRegion<br></blockquote><blockquote type="cite">but it's probably easier to do it with a region . So the next result<br></blockquote><blockquote type="cite">would be:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">reg = pf.h.region([0.5, 0.5, 0.5], [0.3, 0.0, 0.0], [0.7, 0.0, 0.0])<br></blockquote><blockquote type="cite">pc.add_projection("Density", "x", data_source=reg)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">But there's also pc.add_thin_projection which does this for you and<br></blockquote><blockquote type="cite">accepts a 'thickness' argument:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://yt-project.org/doc/api/generated/yt.visualization.plot_collection.PlotCollection.add_thin_projection.html">http://yt-project.org/doc/api/generated/yt.visualization.plot_collection.PlotCollection.add_thin_projection.html</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">pc.add_thin_projection("Density", "z", 0.4)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hope that helps!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-Matt<br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">yt-users mailing list<br></blockquote><blockquote type="cite"><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br></blockquote><br><br>-- <br>--------------------------------------------------------------<br>Jun-Hwan Choi, Ph.D.<br>Department of Physics and Astronomy, University of Kentucky<br>Tel: (859) 897-6737        Fax: (859) 323-2846<br>Email: <a href="mailto:jhchoi@pa.uky.edu">jhchoi@pa.uky.edu</a>   URL: <a href="http://www.pa.uky.edu/~jhchoi">http://www.pa.uky.edu/~jhchoi</a><br>--------------------------------------------------------------<br><br>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></div></blockquote></div><br></body></html>