<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Thank you Nathan and Matt.<br>
    <br>
    Junhwan<br>
    On 10/10/12 13:35, Nathan Goldbaum wrote:
    <blockquote
      cite="mid:D4E5B914-3F15-47DF-AC1A-AF944E499914@gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
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:<a class="moz-txt-link-freetext" href="http://paste.yt-project.org/show/2775/">http://paste.yt-project.org/show/2775/</a>).
                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 moz-do-not-send="true"
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 moz-do-not-send="true"
                href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
            </blockquote>
            <blockquote type="cite"><a moz-do-not-send="true"
                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 moz-do-not-send="true"
              href="mailto:jhchoi@pa.uky.edu">jhchoi@pa.uky.edu</a>
              URL: <a moz-do-not-send="true"
              href="http://www.pa.uky.edu/%7Ejhchoi">http://www.pa.uky.edu/~jhchoi</a><br>
--------------------------------------------------------------<br>
            <br>
            _______________________________________________<br>
            yt-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
          </div>
        </blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
yt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
--------------------------------------------------------------
Jun-Hwan Choi, Ph.D.
Department of Physics and Astronomy, University of Kentucky
Tel: (859) 897-6737        Fax: (859) 323-2846
Email: <a class="moz-txt-link-abbreviated" href="mailto:jhchoi@pa.uky.edu">jhchoi@pa.uky.edu</a>   URL: <a class="moz-txt-link-freetext" href="http://www.pa.uky.edu/~jhchoi">http://www.pa.uky.edu/~jhchoi</a>
--------------------------------------------------------------
</pre>
  </body>
</html>