<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
For profiles where at least one data point is positive I can alter the log-edness once I have the ProfilePlot object using set_log.
<div class=""><br class="">
<div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class="">
<div class="">Douglas Rudd</div>
<div class="">Scientific Computing Consultant<br class="">
Research Computing Center<br class="">
</div>
<div class=""><a href="mailto:drudd@uchicago.edu" class="">drudd@uchicago.edu</a></div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Oct 31, 2014, at 4:18 PM, Douglas Harvey Rudd <<a href="mailto:drudd@uchicago.edu" class="">drudd@uchicago.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I believe it only works for axis fields.  From the docstrings:
<div class=""><br class="">
</div>
<div class="">
<div class="">logs : dict of boolean values</div>
<div class="">    Whether or not to log the bin_fields for the profiles.</div>
<div class="">    The keys correspond to the field names. Defaults to the take_log</div>
<div class="">    attribute of the field.</div>
<div class=""><br class="">
</div>
<div class="">and adding velocity_magnitude to logs generates the same error as before.</div>
<div class=""><br class="">
</div>
<div apple-content-edited="true" class="">
<div style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">Douglas Rudd</div>
<div class="">Scientific Computing Consultant<br class="">
Research Computing Center<br class="">
</div>
<div class=""><a href="mailto:drudd@uchicago.edu" class="">drudd@uchicago.edu</a></div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Oct 31, 2014, at 4:10 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" class="">nathan12343@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">What happens if you use the 'logs' keyword for create_profile to control the logging for temperature, velocity_magnitude, and dx?</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Fri, Oct 31, 2014 at 2:08 PM, Douglas Harvey Rudd <span dir="ltr" class="">
<<a href="mailto:drudd@uchicago.edu" target="_blank" class="">drudd@uchicago.edu</a>></span> wrote:<br class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br class="">
<br class="">
Is there a way to specify the log/non-log scaling of a y-axis variable in create_profile or ProfilePlot.from_profiles?  I have some profiles that start flat at an initial time and so the velocity_magnitude is everywhere 0.  create_profile succeeds, but ProfilePlot.from_profiles
 generates a Matplotlib error before I have the ability to specify a scaling:<br class="">
<br class="">
    sph = ds.sphere(ds.domain_center, ds.domain_width[0]/2)<br class="">
    profile = yt.create_profile(sph, "radius",<br class="">
                                ["density", "temperature", "velocity_magnitude", "dx"],<br class="">
                                extrema={'radius':(ds.domain_width[0]/ds.num_grid,ds.domain_width[0]/2.)},<br class="">
                                n_bins=int(ds.domain_width[0]*2.**(ds.max_level-1)),<br class="">
                                logs={'radius':False},<br class="">
                                units={'radius':'pc'})<br class="">
    plot = yt.ProfilePlot.from_profiles(profile)<br class="">
<br class="">
Relevant part of the dump:<br class="">
/software/python-2.7-2014q3-el6-x86_64/lib/python2.7/site-packages/matplotlib-1.4.0-py2.7-linux-x86_64.egg/matplotlib/ticker.pyc in view_limits(self, vmin, vmax)<br class="">
   1523         if minpos <= 0 or not np.isfinite(minpos):<br class="">
   1524             raise ValueError(<br class="">
-> 1525                 "Data has no positive values, and therefore can not be "<br class="">
   1526                 "log-scaled.")<br class="">
   1527<br class="">
<br class="">
<br class="">
Douglas Rudd<br class="">
Scientific Computing Consultant<br class="">
Research Computing Center<br class="">
<a href="mailto:drudd@uchicago.edu" class="">drudd@uchicago.edu</a><br class="">
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
</blockquote>
</div>
<br class="">
</div>
_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>