# How to Get Rid of Blue Line in This Plot of Reflection?

**URL:** <https://discourse.julialang.org/t/how-to-get-rid-of-blue-line-in-this-plot-of-reflection/92661>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [January 8, 2023, 9:49am UTC](https://discourse.julialang.org/t/how-to-get-rid-of-blue-line-in-this-plot-of-reflection/92661 "2023-01-08T09:49:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [January 8, 2023, 9:49am UTC](https://discourse.julialang.org/t/how-to-get-rid-of-blue-line-in-this-plot-of-reflection/92661/1 "2023-01-08T09:49:13Z")

</div>

Hi all,

I am filling a region between two curves from reflection.

```julia
using Plots, LaTeXStrings, Plots.PlotMeasures
gr()

function make_fg_plot()
    g(x) = sin(x^2) + cos(2x) -1

    yshift = y -> y + 5
    yreflection = y -> -y
    ytransform = yshift ∘ yreflection

    plt = plot(; xtick=:false, ylims = (-8, 15), 
	 legend = :topleft, bottom_margin=5mm)
    for (T, attrs) in [(identity, (;label = "", linecolor = :green)), 
                       (ytransform, (;label = "", linecolor = :red))]
        
        plot!(plt, T ∘ g, 2, 4; label="")
	
	plot!(f, fillrange = T ∘ g, fillalpha = 0.35, c = 1, 
	label = "", legend=:topright)
	
	annotate!([(2.03,9, (L"f(x)", 10, :black))])
	annotate!([(2.03,-3, (L"g(x)", 10, :black))])
	annotate!([(2,-9, (L"a", 10, :black))])
	annotate!([(2,-8.1, (L"|", 10, :black))])
	annotate!([(3,-9, (L"x", 10, :black))])
	annotate!([(3,-8.1, (L"|", 10, :black))])
	annotate!([(4,-9, (L"b", 10, :black))])
	annotate!([(4,-8.1, (L"|", 10, :black))])
    end
    return plt
end

make_fg_plot()

```

But, there is an annoying blue line in the middle, how to get rid of this?

![Capture d’écran_2023-01-08_16-47-15](https://global.discourse-cdn.com/julialang/original/3X/1/2/12d1611387dacf6cdbb0081a46ea881c44c3b1e9.png)

---

<div class="post-metadata">

**Author:** ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Post date:** [January 8, 2023, 11:59am UTC](https://discourse.julialang.org/t/how-to-get-rid-of-blue-line-in-this-plot-of-reflection/92661/2 "2023-01-08T11:59:17Z")

</div>

Done by kill the terminal and replace f with g
