Sorry for replying to an old thread, but I want to note that you need to instantiate the hierarchy before messing with field_info
pf = load(Filename) pf.h pf.field_info["Density"].take_log=False pc = PlotCollection(pf) pc.add_slice('Density',0) etc...
Nathan Goldbaum Graduate Student Astronomy & Astrophysics, UCSC firstname.lastname@example.org http://www.ucolick.org/~goldbaum
On Jan 17, 2012, at 6:16 PM, Andrew Myers wrote:
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], [pf.domain_right_edge,0,0], "density") etc...
On Tue, Jan 17, 2012 at 3:58 PM, John ZuHone email@example.com 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.
yt-users mailing list firstname.lastname@example.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
!DSPAM:10175,4f162ba2220417002742! _______________________________________________ yt-users mailing list email@example.com http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org