# Reverse a colormap in GRUtils.jl

**URL:** https://discourse.julialang.org/t/reverse-a-colormap-in-grutils-jl/48311
**Category:** New to Julia
**Tags:** question, package, plotting
**Created:** [October 13, 2020, 6:28pm UTC](https://discourse.julialang.org/t/reverse-a-colormap-in-grutils-jl/48311 "2020-10-13T18:28:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kapple](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kapple/32/218915_2.png) [@kapple](https://discourse.julialang.org/u/kapple)
#### Post date: [October 13, 2020, 6:28pm UTC](https://discourse.julialang.org/t/reverse-a-colormap-in-grutils-jl/48311/1 "2020-10-13T18:28:08Z")

</div>

How can I reverse a colormap in `GRUtils`?

I can’t grab

```julia
cmap = colormap("jet")

```

to flip it or something.

The documentation says the colormap values can be retrieved… but doesn’t say how, and the above line of code doesn’t output anything.

I’ve inspected the original code but I don’t understand it.

---

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [October 13, 2020, 6:46pm UTC](https://discourse.julialang.org/t/reverse-a-colormap-in-grutils-jl/48311/2 "2020-10-13T18:46:15Z")

</div>

What package are you using?

---

<div class="post-metadata">

### Author: ![kapple](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kapple/32/218915_2.png) [@kapple](https://discourse.julialang.org/u/kapple)
#### Post date: [October 13, 2020, 6:47pm UTC](https://discourse.julialang.org/t/reverse-a-colormap-in-grutils-jl/48311/3 "2020-10-13T18:47:01Z")

</div>

`using GRUtils`

I’ll update my question and title for it, thanks for asking.
