# How to plot a mirror graph from the one created

**URL:** <https://discourse.julialang.org/t/how-to-plot-a-mirror-graph-from-the-one-created/108394>\
**Category:** New to Julia\
**Tags:** question, plotting\
**Created:** [January 5, 2024, 4:25pm UTC](https://discourse.julialang.org/t/how-to-plot-a-mirror-graph-from-the-one-created/108394 "2024-01-05T16:25:09Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [January 5, 2024, 7:18pm UTC](https://discourse.julialang.org/t/how-to-plot-a-mirror-graph-from-the-one-created/108394/8 "2024-01-05T19:18:05Z")

</div>

> [@kim1](#):
>
> this what i got after using the plot!

No, I mean something like:

```julia
plot(x, y, color="blue")
plot!(reverse(x), -reverse(y), color="blue")

```

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

PS. Your posted code is not runnable because you didn’t include all of the parameters. I just picked some values at random. [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

PPS. Beware of the habit of using global variables like `R1` in your functions. Not only are [globals problematic for software engineering](https://www.google.com/search?q=global+variables+bad) in general, they typically [lead to slow code](https://docs.julialang.org/en/v1/manual/performance-tips/#Avoid-untyped-global-variables) in Julia.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-plot-a-mirror-graph-from-the-one-created/108394)._
