[yt-users] Colormaps

Cameron Hummels chummels at gmail.com
Fri Sep 6 17:01:23 PDT 2013


Elizabeth et al.,

Kacper, Nathan, and I have updated the docs to fix some of the issues
earlier today.  It now shows all of the colormaps applied to an individual
projection.  I also added a section to the docs on how to apply a colormap.
 For the full developer version (including the source API docs), see this
link:

http://yt-project.org/docs/dev/visualizing/colormaps/index.html

Cameron


On Fri, Sep 6, 2013 at 3:23 PM, Nathan Goldbaum <nathan12343 at gmail.com>wrote:

> Hey Elizabeth,
>
> I think the easiest way to do that would be something like:
>
> slc = SlicePlot(pf, 2, 'Density')
> slc.set_cmap('Density', 'Haze')
>
> This is covered in the advanced cookbook recipes, although I agree it
> needs to be better documented.  I have an open issue about this (
> https://bitbucket.org/yt_analysis/yt/issue/579/plot-window-modifying-functions-need-to-be)
> and plan to fix it during the docs sprint we've scheduled for october.
>
> The API docs are missing from the ReadTheDocs build.  They should be
> available on yt-project.org/docs/dev though.
>
>
> On Fri, Sep 6, 2013 at 3:15 PM, Elizabeth Tasker <
> tasker at astro1.sci.hokudai.ac.jp> wrote:
>
>> Hey, this is awesome!
>>
>> Could we add an example of how to specify a colormap for a slice?
>>
>> Is it:
>>
>> SlicePlot(pf, 2, "Density", plot_args=dict(cmap='Haze'))
>>
>> or
>>
>>
>> SlicePlot(pf, 2, "Density", cmap='Haze')
>>
>> or something for the whole script, like through map_to_colormap?
>>
>> ?
>>
>> Did the descriptions of each function that show the available arguments
>> get removed from the docs? It doesn't seem to come up when I search anymore.
>>
>> Elizabeth
>>
>>
>>
>> On Sep 6, 2013, at 5:56 PM, Matthew Turk <matthewturk at gmail.com> wrote:
>>
>> > Hi all,
>> >
>> > Just a quick note -- thanks to some awesome work mostly by Cameron,
>> > but with assists from Kacper and Nathan, we now have a diagram of
>> > colormaps in yt:
>> >
>> > http://yt.readthedocs.org/en/latest/visualizing/colormaps/index.html
>> >
>> > It covers the native matplotlib colormaps, as well as the ones yt
>> > includes in addition.  (Such as little-known gems like kamae,
>> > cubehelix and our very own algae.)
>> >
>> > This will be on the main yt docs site once we release 2.6.  On the
>> > main site, there'll even be a demonstration of a projection in
>> > different colormaps.
>> >
>> > Thanks, Cameron!
>> >
>> > -Matt
>> > _______________________________________________
>> > 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
>
>


-- 
Cameron Hummels
Postdoctoral Researcher
Steward Observatory
University of Arizona
http://chummels.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130906/17f8c3e5/attachment.html>


More information about the yt-users mailing list