# Plots.heatmap negative axis bug

**URL:** <https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [August 24, 2022, 3:15pm UTC](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268 "2022-08-24T15:15:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [August 24, 2022, 3:49pm UTC](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268/2 "2022-08-24T15:49:04Z")

</div>

> [@Allan\_Baker](#):
>
> ```julia
> values=[string(Int(round(i))) for i in -1:-1:-20]
> Plots.heatmap(values,1:10,FF)
> 
> ```

I would recommend using built-in Julia tools instead:

```julia
heatmap(-20:-1, 1:10, reverse(FF,dims=2), xflip=true)

```

**NB:**  
Not sure it is a bug as Plots.jl warns that: _points are not sorted in ascending order_

---

_[View the full topic](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268)._
