<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 18, 2014 at 7:02 PM, Brian O'Shea <span dir="ltr"><<a href="mailto:bwoshea@gmail.com" target="_blank">bwoshea@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">Hi Matt,<div><br></div><div><br><div class="gmail_extra"><div class="gmail_quote"><div class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>
><br>
> plot1 =<br>
> yt.ProjectionPlot(ds,'z',"baryon_overdensity",weight_field="baryon_overdensity",center=c,data_source=my_region)<br>
<br>
</div>You should set it via "field_parameters = {'omega_baryon':<br>
your_favorite_cosmology}" in this function call.  There was some<br>
recent back and forth about this in a pull request and whether or not<br>
it goes into my_region, but this should certainly work.<br></blockquote><div><br></div></div><div>That did the trick, thank you!</div><div><br></div><div>Now, followup question: I am also attempting to create a 2D phase plot of the same quantity (baryon_overdensity vs. temperature), and yt.PhasePlot does not seem to take the field_parameters dictionary, and neither does yt.create_profile.  Should I try another avenue to create a phase plot? </div>

<span class="HOEnZb"><font color="#888888">
<div><br></div><div>--Brian</div></font></span></div></div></div></div></blockquote><div><br></div><div>You should be able to call set_field_parameter on the data object you use to create the phase plot.</div><div><br></div>

<div>Presumably we could add a field_parameters keyword argument to make these APIs consistent, but it makes less sense here since you are directly passing in a data source to create a PhasePlot or a ProfileND object.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote"><div class=""><div><br></div><div><br>

</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-Matt<br>
<div><br>
><br>
> (with c, my_region being previously defined).  When I do this, it complains:<br>
><br>
> yt.fields.field_exceptions.NeedsParameter: (['omega_baryon'])<br>
><br>
> which certainly makes sense from a physical perspective, and which Enzo<br>
> doesn't natively carry around. I tried to set this by hand:<br>
><br>
><br>
</div>> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
</blockquote></div></div><br></div></div></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></div>