# How to exchange x and y axis in band plot

**URL:** <https://discourse.julialang.org/t/how-to-exchange-x-and-y-axis-in-band-plot/104090>\
**Category:** Visualization\
**Tags:** plotting, makie\
**Created:** [September 21, 2023, 3:39am UTC](https://discourse.julialang.org/t/how-to-exchange-x-and-y-axis-in-band-plot/104090 "2023-09-21T03:39:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![subsnutr](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@subsnutr](https://discourse.julialang.org/u/subsnutr)\
**Post date:** [September 21, 2023, 3:39am UTC](https://discourse.julialang.org/t/how-to-exchange-x-and-y-axis-in-band-plot/104090/1 "2023-09-21T03:39:13Z")

</div>

Dear all  
Is there a way to exchange x and y axis in [band plot](https://docs.makie.org/stable/reference/plots/band/) in Makie.jl? For example, I want to have

```julia
 band(y,xlower,xupper)

```

Thanks!

---

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [September 21, 2023, 4:34am UTC](https://discourse.julialang.org/t/how-to-exchange-x-and-y-axis-in-band-plot/104090/2 "2023-09-21T04:34:48Z")

</div>

What is a band plot? I have searched here and there is no mention of band plot

[https://docs.juliaplots.org/stable/search/?q=band](https://docs.juliaplots.org/stable/search/?q=band)

---

<div class="post-metadata">

**Author:** ![subsnutr](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@subsnutr](https://discourse.julialang.org/u/subsnutr)\
**Post date:** [September 21, 2023, 5:08am UTC](https://discourse.julialang.org/t/how-to-exchange-x-and-y-axis-in-band-plot/104090/3 "2023-09-21T05:08:07Z")

</div>

Apologies, I shoud have mentioned that I am utilizing the Makie.jl. Here is the link  
[https://docs.makie.org/stable/reference/plots/band/](https://docs.makie.org/stable/reference/plots/band/)

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.julialang.org/u/jules)\
**Post date:** [September 21, 2023, 7:24am UTC](https://discourse.julialang.org/t/how-to-exchange-x-and-y-axis-in-band-plot/104090/4 "2023-09-21T07:24:18Z")

</div>

You can currently use the form with two point arrays like `band(Point2f.(xs1, ys), Point2f.(xs2, ys))`
