<div dir="ltr"><div>Hi Shankar,<br><br></div>Yes, that is possible. I think your second example should work, but it's hard to tell without seeing the complete script. This script works for me: <a href="http://paste.yt-project.org/show/5797/">http://paste.yt-project.org/show/5797/</a><div><br></div><div>Could you try following that and see if it solves your problem?</div><div><br></div><div>Best,</div><div>Andrew</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 6, 2015 at 6:38 AM, Shankar Agarwal <span dir="ltr"><<a href="mailto:agarwalshankar@gmail.com" target="_blank">agarwalshankar@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>Hi,<br><br><a href="http://yt-project.org/doc/cookbook/complex_plots.html#thin-slice-projections" target="_blank">http://yt-project.org/doc/cookbook/complex_plots.html#thin-slice-projections</a><br><br></div>Is it possible to create a thin slice projection of particles (instead of density)?<br><br><br></div>I tried the following three methods but get errors:<br><br>1. p = yt.ParticlePlot(ds, 2, ['particle_mass'], data_source=region)<br><br>TypeError: __init__() got multiple values for keyword argument 'data_source'<br><br><br>2. p = yt.ParticleProjectionPlot(ds, 2, ['particle_mass'], data_source=region)<br><br>finfo = self.ds._get_field_info("unknown", fname)<br><br><br>3. p = yt.ProjectionPlot(ds, 2, ['particle_mass'], data_source=region)<br><br>  File "/home/sagarwal/codes/yt/yt-x86_64/src/yt-hg/yt/visualization/plot_window.py", line 1429, in __init__<br>    field_parameters = field_parameters, method = method)<br>  File "/home/sagarwal/codes/yt/yt-x86_64/src/yt-hg/yt/data_objects/construction_data_containers.py", line 253, in __init__<br>    field = self._determine_fields(ensure_list(field))<br>  File "/home/sagarwal/codes/yt/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 518, in _determine_fields<br>    finfo = self.ds._get_field_info("unknown", fname)<span class="HOEnZb"><font color="#888888"><br><br><br></font></span></div><span class="HOEnZb"><font color="#888888">Shankar<br></font></span></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>