<p dir="ltr"><br>
On Aug 18, 2014 9:02 PM, "Brian O'Shea" <<a href="mailto:bwoshea@gmail.com">bwoshea@gmail.com</a>> wrote:<br>
><br>
> Hi Matt,<br>
><br>
><br>
>> ><br>
>> > plot1 =<br>
>> > yt.ProjectionPlot(ds,'z',"baryon_overdensity",weight_field="baryon_overdensity",center=c,data_source=my_region)<br>
>><br>
>> 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>
><br>
><br>
> That did the trick, thank you!<br>
><br>
> 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? <br>

></p>
<p dir="ltr">Nope, you can supply it to your data source when you create it. They all take the same field_parameters argument. </p>
<p dir="ltr">Matt</p>
<p dir="ltr">> --Brian<br>
><br>
><br>
><br>
>  <br>
>><br>
>><br>
>> -Matt<br>
>><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>
>> > _______________________________________________<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">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">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
><br>
><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">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
</p>