Just wondering, if FieldOne is already logged, do you still want the limits to encompass 1 to 1e10, have you tried something like (1e9,1e10) ?<div><br></div><div>From</div><div>G.S.<br><br><div class="gmail_quote">On Fri, Sep 30, 2011 at 2:37 PM, Wolfram Schmidt <span dir="ltr"><<a href="mailto:schmidt@astro.physik.uni-goettingen.de">schmidt@astro.physik.uni-goettingen.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi everyone,<br>
<br>
I defined two fields, say, FieldOne and FieldTwo, to make 2D phase plot.<br>
FieldOne is logarithmic by default, FieldTwo is linear (i.e., I set take_log=False in add_field).<br>
<br>
I want to produce a phase plot with logarithmic bins for FieldOne and linear bins for FieldTwo, where the range of FieldTwo is [-10,10]<br>
<br>
I thought that<br>
<br>
pc.add_phase_object(dd, ["FieldOne", "FieldTwo", "CellMass"], weight=None, x_bins=100,y_bins=100, \<br>
                    x_bounds=[1e0,1e10], y_bounds=[-10,10])<br>
<br>
might do the job, but  yt returns the error message:<br>
<br>
Warning: invalid value encountered in log10<br>
yt : [ERROR    ] 2011-09-30 16:55:05,610 Your min/max values for x, y have given me a nan.<br>
yt : [ERROR    ] 2011-09-30 16:55:05,610 Usually this means you are asking for log, with a zero bound.<br>
Traceback (most recent call last):<br>
  File "stability.py", line 352, in <module><br>
    x_bounds=[1e0,1e10], y_bounds=[-10,10])<br>
  File "/nics/e/sw/analysis/yt/2.1/<u></u>sles11.1_gnu4.3.4/src/yt-hg/<u></u>yt/visualization/plot_<u></u>collection.py", line 1149, in add_phase_object<br>
    lazy_reader)<br>
  File "/nics/e/sw/analysis/yt/2.1/<u></u>sles11.1_gnu4.3.4/src/yt-hg/<u></u>yt/data_objects/profiles.py", line 408, in __init__<br>
    raise ValueError<br>
ValueError<br>
<br>
It appears that add_phase_object treats FieldTwo logarithmically, although it is linear.<br>
<br>
So how can I do a log-linear phase plot?<br>
<br>
Best,<br>
Wolfram<br>
______________________________<u></u>_________________<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/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</blockquote></div><br></div>