# How to Reflect the Curve toward $y$ axis with Plots?

**URL:** https://discourse.julialang.org/t/how-to-reflect-the-curve-toward-y-axis-with-plots/92209
**Category:** General Usage
**Tags:** plotting
**Created:** [December 28, 2022, 5:12am UTC](https://discourse.julialang.org/t/how-to-reflect-the-curve-toward-y-axis-with-plots/92209 "2022-12-28T05:12:10Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![uniment](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/uniment/32/24532_2.png) [@uniment](https://discourse.julialang.org/u/uniment)
#### Post date: [December 28, 2022, 9:15am UTC](https://discourse.julialang.org/t/how-to-reflect-the-curve-toward-y-axis-with-plots/92209/8 "2022-12-28T09:15:23Z")

</div>

There is a better technique, if you extend this line of thought:

> [@How to Transform Plots / Shape with Plots.jl](https://discourse.julialang.org/t/how-to-transform-plots-shape-with-plots-jl/92079/7):
>
> It’s not even really specific to the y yy -axis, and using built-in partial application types makes it play nice with things like InverseFunctions.jl:
> 
> ```julia
> shift(ν) = Base.Fix1(+, ν)
> shift(5) ∘ f # y-up-shift
> f ∘ shift(2) # x-left-shift
> 
> ```

Can you think of how to make a `scale` function that works like the `shift` function?

---

_[View the full topic](https://discourse.julialang.org/t/how-to-reflect-the-curve-toward-y-axis-with-plots/92209)._
