Hi Jeff,<br><br>  That worked perfectly. The color gradient is now being computed based on a linear scale, and the problem of field values that are exactly zero showing up as white has been fixed.<br><br>Best,<br>Nathan<br>
<br><div class="gmail_quote">On Fri, Jul 2, 2010 at 5:44 PM, j s oishi <span dir="ltr"><<a href="mailto:jsoishi@gmail.com">jsoishi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Nathan,<br>
<br>
This is unfortunately a bit more difficult than it should be. I don't<br>
know what kind of plot you're making, but assuming it's a slice or<br>
projection, you should be able to do something like this:<br>
<br>
pc = PlotCollection(pf)<br>
<br>
p = pc.add_slice("Density",0)<br>
p.set_log_field(False)<br>
<br>
You can also iteratively access all plots in a plot collection via<br>
<br>
pc.plots<br>
<br>
which is a list of of plots. Let me know if this works for you.<br>
<br>
j<br>
<div><div></div><div class="h5"><br>
On Fri, Jul 2, 2010 at 5:38 PM, Nathan Roth <<a href="mailto:nathaniel.roth@berkeley.edu">nathaniel.roth@berkeley.edu</a>> wrote:<br>
> Hi,<br>
><br>
>   I'd like to be able to set up my color bar so that it chooses the velocity<br>
> gradient based on a linear, and not a log, scale. One of the reasons I would<br>
> like to do this is to address the fact that yt plots white space on my slice<br>
> whenever the field I am plotting is exactly zero. Also, this will help me<br>
> compare my results to those performed by another code.<br>
><br>
>   How can I do this?<br>
><br>
>   Thanks,<br>
>   Nathan<br>
</div></div>> _______________________________________________<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br>