Hi yt user, I try to generate the projection plot with plot_modification from yt HUB. In example_image_script.py, I try to use color map "algae", it is not exist, becuase the algae is the yt built in color. Is ther any way, I can import the yt color map "algae"? I try to use "from yt.visualization.color_maps import raven_colormaps", nut the ravens_colormaps is not exist. I am using yt 2.4. Thank you in advance, Junhwan -- -------------------------------------------------------------- Jun-Hwan Choi, Ph.D. Department of Physics and Astronomy, University of Kentucky Tel: (859) 897-6737 Fax: (859) 323-2846 Email: jhchoi@pa.uky.edu URL: http://www.pa.uky.edu/~jhchoi --------------------------------------------------------------
Hi Junhwan, On Tue, Mar 26, 2013 at 12:38 PM, Jun-Hwan Choi <choi.junhwan@gmail.com> wrote:
Hi yt user,
I try to generate the projection plot with plot_modification from yt HUB. In example_image_script.py, I try to use color map "algae", it is not exist, becuase the algae is the yt built in color. Is ther any way, I can import the yt color map "algae"? I try to use "from yt.visualization.color_maps import raven_colormaps", nut the ravens_colormaps is not exist. I am using yt 2.4.
"algae" gets registered within matplotlib as a colormap if you do: import yt.visualization.color_maps You don't need to import any other yt stuff. Note that this also adds black_green, kamae, and cubehelix.
Thank you in advance, Junhwan
-- -------------------------------------------------------------- Jun-Hwan Choi, Ph.D. Department of Physics and Astronomy, University of Kentucky Tel: (859) 897-6737 Fax: (859) 323-2846 Email: jhchoi@pa.uky.edu URL: http://www.pa.uky.edu/~jhchoi --------------------------------------------------------------
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Thank you, Matt. Junhwan On 03/26/13 13:01, Matthew Turk wrote:
Hi Junhwan,
On Tue, Mar 26, 2013 at 12:38 PM, Jun-Hwan Choi <choi.junhwan@gmail.com> wrote:
Hi yt user,
I try to generate the projection plot with plot_modification from yt HUB. In example_image_script.py, I try to use color map "algae", it is not exist, becuase the algae is the yt built in color. Is ther any way, I can import the yt color map "algae"? I try to use "from yt.visualization.color_maps import raven_colormaps", nut the ravens_colormaps is not exist. I am using yt 2.4. "algae" gets registered within matplotlib as a colormap if you do:
import yt.visualization.color_maps
You don't need to import any other yt stuff. Note that this also adds black_green, kamae, and cubehelix.
Thank you in advance, Junhwan
-- -------------------------------------------------------------- Jun-Hwan Choi, Ph.D. Department of Physics and Astronomy, University of Kentucky Tel: (859) 897-6737 Fax: (859) 323-2846 Email: jhchoi@pa.uky.edu URL: http://www.pa.uky.edu/~jhchoi --------------------------------------------------------------
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- -------------------------------------------------------------- Jun-Hwan Choi, Ph.D. Department of Physics and Astronomy, University of Kentucky Tel: (859) 897-6737 Fax: (859) 323-2846 Email: jhchoi@pa.uky.edu URL: http://www.pa.uky.edu/~jhchoi --------------------------------------------------------------
participants (2)
-
Jun-Hwan Choi
-
Matthew Turk