# Equivalent to matplotlib kwarg "origin" in Plots.jl

**URL:** <https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [November 22, 2022, 9:43pm UTC](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670 "2022-11-22T21:43:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClarkGuilty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/clarkguilty/32/21883_2.png) [@ClarkGuilty](https://discourse.julialang.org/u/ClarkGuilty)\
**Post date:** [November 22, 2022, 9:43pm UTC](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670/1 "2022-11-22T21:43:19Z")

</div>

Hello everyone,

In matplotlib you can control the origin of imshow plots using the “origin” kwarg: `plt.imshow(image,origin='lower') `  
In Julia you can show an image using `Plots.heatmap(image)`. But, is there an equivalent functionality to the “origin” kwarg in Plots? I looked at the Plots.jl documentation but could not find anything. Thank you.

Edit: thank you very much for the help. In the end combining :flip with reverse solves the problem for all my use cases (mostly seeing images with the same orientation as ds9).

---

<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:** [November 22, 2022, 10:58pm UTC](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670/2 "2022-11-22T22:58:19Z")

</div>

You may be able to get what you need by using the kwarg `flip` and Julia’s base function `reverse`. See one example [here](https://discourse.julialang.org/t/plots-heatmap-negative-axis-bug/86268/2).

---

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [November 23, 2022, 6:47am UTC](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670/3 "2022-11-23T06:47:50Z")

</div>

What is it you want it to do?

---

<div class="post-metadata">

**Author:** ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Post date:** [November 23, 2022, 7:06am UTC](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670/4 "2022-11-23T07:06:46Z")

</div>

Presumably this:  
 ![](https://global.discourse-cdn.com/julialang/original/3X/6/b/6b749497d0436e4a0e85cc57e03bd1a754562afc.png)

---

<div class="post-metadata">

**Author:** ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Post date:** [November 23, 2022, 7:08am UTC](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670/5 "2022-11-23T07:08:38Z")

</div>

Okay. That’s `yflip=true`
