# Plots.jl ylim and yflip don't work together as expected

**URL:** <https://discourse.julialang.org/t/plots-jl-ylim-and-yflip-dont-work-together-as-expected/127394>\
**Category:** Visualization\
**Tags:** question, plotting\
**Created:** [March 27, 2025, 12:03am UTC](https://discourse.julialang.org/t/plots-jl-ylim-and-yflip-dont-work-together-as-expected/127394 "2025-03-27T00:03:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayushinav](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ayushinav/32/32687_2.png) [@ayushinav](https://discourse.julialang.org/u/ayushinav)\
**Post date:** [March 27, 2025, 12:03am UTC](https://discourse.julialang.org/t/plots-jl-ylim-and-yflip-dont-work-together-as-expected/127394/1 "2025-03-27T00:03:39Z")

</div>

On Julia 1.11.4, Plots v1.40.11

MWE :

```julia
using Plots

xs = Float64[1,2,3,4]
ys = Float64[1,2,3,4,5,6,7,8]
zs = xs'./10 .+ ys
p1 = heatmap(xs, ys, zs, title = "original")
p2 = heatmap(xs, ys, zs, ylims = (2,4), title = "ylim")
p3 = heatmap(xs, ys, zs, yflip = true, title = "yflip")
p4 = heatmap(xs, ys, zs, ylims = (2,4), yflip = true, title = "yflip + ylim")

plot(p1, p2, p3, p4)

```

Shouldn’t the bottom right be the flipped of the top right, unless I’m missing something very obvious? The axes limits are fine but the values are off.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/1/71588a9feadaec0f9a88ae46bc7ff66a26334c46.png)
