[yt-users] take_log for plots?
John ZuHone
jzuhone at milkyway.gsfc.nasa.gov
Tue Jan 17 18:54:36 PST 2012
Hi Matt,
Oddly, your suggestion was what I tried first and it did not work.
I will try Andrew's when I get home.
John
Sent from John ZuHone's iPhone
On Jan 17, 2012, at 9:46 PM, Matthew Turk <matthewturk at gmail.com> wrote:
> Andrew,
>
> That's what I do too, to tell the truth, as it also touches the
> default binning method inside profile/phase methods. There's also:
>
> p.set_log_field(False)
>
> in your script.
>
> -Matt
>
> On Tue, Jan 17, 2012 at 9:16 PM, Andrew Myers <atmyers at berkeley.edu> wrote:
>> Hi John,
>>
>> I don't know if there's a better way, but I usually do this by overriding
>> the default in my script before making my plot, like so:
>>
>> pf.field_info["density"].take_log=False
>> pc = PlotCollection(pf)
>> p = pc.add_ray([pf.domain_left_edge[0],0,0],
>> [pf.domain_right_edge[0],0,0], "density")
>> etc...
>>
>> -Andrew Myers
>>
>>
>> On Tue, Jan 17, 2012 at 3:58 PM, John ZuHone
>> <jzuhone at milkyway.gsfc.nasa.gov> wrote:
>>>
>>> Hi all,
>>>
>>> A rather simple question that I should probably already know the answer
>>> to, but here goes:
>>>
>>> Many fields are logged by default, which is as it should be. However,
>>> sometimes the range of the variable is not very large and a log plot just
>>> doesn't make a lot of sense.
>>>
>>> In a slice or a projection plot in a PlotCollection, how does one suppress
>>> (or, in the opposite case, enable) the logging of the plotted variable
>>> before saving or displaying the plot?
>>>
>>> I'm hoping there's a semi-easy way to do this without setting take_log in
>>> the field definition, but I've not come across it yet.
>>>
>>> Best,
>>>
>>> John
>>> _______________________________________________
>>> yt-users mailing list
>>> yt-users at lists.spacepope.org
>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
More information about the yt-users
mailing list