# Recreate PyPlot's color maps in native Julia?

**URL:** <https://discourse.julialang.org/t/recreate-pyplots-color-maps-in-native-julia/16906>\
**Category:** General Usage\
**Tags:** question, plotting, pyplot\
**Created:** [October 28, 2018, 10:39pm UTC](https://discourse.julialang.org/t/recreate-pyplots-color-maps-in-native-julia/16906 "2018-10-28T22:39:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [October 28, 2018, 10:39pm UTC](https://discourse.julialang.org/t/recreate-pyplots-color-maps-in-native-julia/16906/1 "2018-10-28T22:39:55Z")

</div>

Is it possible to recreate the same color maps that PyPlot comes with in native Julia, for use with e.g Images.jl

[https://matplotlib.org/users/colormaps.html](https://matplotlib.org/users/colormaps.html)

I really like the color maps PyPlot comes with, but I don’t wish to rely on a Python library. Does somebody know of a very simple solution for recreating them?

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [October 28, 2018, 10:56pm UTC](https://discourse.julialang.org/t/recreate-pyplots-color-maps-in-native-julia/16906/2 "2018-10-28T22:56:45Z")

</div>

They are in PlotUtils.jl

---

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [October 28, 2018, 10:58pm UTC](https://discourse.julialang.org/t/recreate-pyplots-color-maps-in-native-julia/16906/3 "2018-10-28T22:58:21Z")

</div>

Let’s say I want the `cubehelix` color scheme from the link above, how would I get it with `PlotUtils`?

---

<div class="post-metadata">

**Author:** ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)\
**Post date:** [October 29, 2018, 3:22am UTC](https://discourse.julialang.org/t/recreate-pyplots-color-maps-in-native-julia/16906/4 "2018-10-29T03:22:59Z")

</div>

I can see cubehelix here:  
[http://juliagraphics.github.io/ColorSchemes.jl/stable/basics.html#Chart-of-all-schemes-1](http://juliagraphics.github.io/ColorSchemes.jl/stable/basics.html#Chart-of-all-schemes-1)
