<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 25, 2015 at 10:00 AM, Cameron Hummels <span dir="ltr"><<a href="mailto:chummels@gmail.com" target="_blank">chummels@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Gabriel,<div><br></div><div>I introduced the ability to make customized colormaps in yt a few months back in the development branch.  You should be able to make a custom colormap that just covers the linear range of 300-1000 with something like one colormap and then 3200-5500 with another colormap custom colormap.  See the docs here:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/visualizing/colormaps/index.html" target="_blank">http://yt-project.org/docs/dev/visualizing/colormaps/index.html</a></div></div></blockquote><div><br></div><div>You can also pass a custom colormap defined via matplotlib (e.g. a LinearSegmentedColormap) to the set_cmap function that's attached to yt plot objects.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div><br></div><div>Cameron</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Jun 25, 2015 at 9:10 AM, Gabriel Goodwin <span dir="ltr"><<a href="mailto:ggoodwin52@gmail.com" target="_blank">ggoodwin52@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi All,<br><br>

<p class="MsoNormal">I have a question regarding projection plot colormaps that
maybe someone can answer. I plot temperature data for combustion simulations,
with temperature in the flame ranging from 3200K - 5500K and temperature
outside of the flame ranging from 300K to 1000K. I want to generate projection
plots using two different colormaps, one for the flame and one for outside of
it.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I have been using kamae_r for the whole range 300 – 5500,
but I lose resolution in both the flame and unburned gas regions because of the
large range of my colorscale. Since none of my computational cells have a
temperature in the intermediate region, 1000 – 3200, I want to make plots with
two separate colormaps, or one colormap that combines two fully resolved
colormaps for those temperature intervals, to show my data more clearly.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">I have been playing around with making a custom colormap by
working directly with matplotlib (using the LinearSegmentedColormap function), but it is very difficult to get the
resolution correct when setting the color intervals and interpolation by hand.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Any advice is appreciated!</p>

<br></div>
<br></div></div>_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Cameron Hummels<div>Postdoctoral Researcher</div><div>Steward Observatory</div><div>University of Arizona</div><div><a href="http://chummels.org" target="_blank">http://chummels.org</a></div></div>
</font></span></div>
<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>