<div dir="ltr">Hi Munier,<div><br></div><div>Unfortunately I don't think that's possible at the moment. OffAxisProjectionPlot uses the volume renderer behind the scenes to actually calculate the projections and right now the volume renderer doesn't support arbitrary data sources, although I think Sam wants to add this functionality in the medium term.</div>
<div><br></div><div>If the field cut you're using is based on a geometric constraint, it might be possible to hack something together using a covering grid, but if it's based on a field value I'm not sure how that would work currently.</div>
<div><br></div><div>Sorry for the seemingly arbitrary limitation :(</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 7, 2013 at 11:37 AM, Munier Azzam Salem <span dir="ltr"><<a href="mailto:msalem@astro.columbia.edu" target="_blank">msalem@astro.columbia.edu</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>Hey guys,</div><div><br></div><div> I've been trying to make slices of density only looking at cooler gas (i.e. with a cut in Temperature). I've found a nice way to do this for simple projections. But my strategy breaks for Off-Axis projections.</div>
<div><br></div>Specifically, this works fine:<div><b style="font-family:'courier new',monospace"><font size="1"><br></font></b></div><div><font size="1"><b style="font-family:'courier new',monospace">field_parameters={'field_cuts':["grid['Temperature'] < 1e6 "]})</b></font></div>
<div><font face="courier new, monospace" size="1"><b>cold_proj = ProjectionPlot(pf,0,'Density',field_parameters=field_parameters)</b></font></div><div><font face="courier new, monospace"><b><font size="1"> </font> </b></font></div>
<div><br></div><div>but this does not:</div><div><br></div><div><font face="courier new, monospace" size="1"><b>cold_proj = OffAxisProjectionPlot(pf,axis,'Density',north_vector=north,</b></font></div><div><font face="courier new, monospace" size="1"><b> field_parameters= field_parameters)</b></font></div>
<div><br></div><div>sensibly enough, since field_parameters is not a keyword argument for off axis projections.</div><div><br></div><div>Is there a decent workaround for this? Or would this be simple to add into yt's functionality? I've looked <a href="http://yt-project.org/doc/_modules/yt/visualization/plot_window.html#OffAxisProjectionPlot.__init__" target="_blank">briefly into the source</a> and it doesn't seem obvious how to slip this in.</div>
<div><br></div><div> thanks!</div><span class="HOEnZb"><font color="#888888"><div> Munier</div><div><div><br></div>-- <br>Munier A. Salem // 845.489.6450
</div></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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>