# Extend Axes

**URL:** <https://discourse.julialang.org/t/extend-axes/30340>\
**Category:** Visualization\
**Created:** [October 26, 2019, 5:02pm UTC](https://discourse.julialang.org/t/extend-axes/30340 "2019-10-26T17:02:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![squirrel](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@squirrel](https://discourse.julialang.org/u/squirrel)\
**Post date:** [October 26, 2019, 5:02pm UTC](https://discourse.julialang.org/t/extend-axes/30340/1 "2019-10-26T17:02:10Z")

</div>

Hi. I have a function I want to graph whose domain is only 0 to infinity, but I want the plot to show the negative x axis, too. How do I tell it to do this?

Right now I have:

```julia
using Plots  

x(u) = u
y(u) = sqrt(u)
y2(u) = -sqrt(u)
plot(x, [y, y2], 0, 5,
    framestyle = :origin,
    legend = :none,
    linecolor = :blue
)

```

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [October 26, 2019, 6:47pm UTC](https://discourse.julialang.org/t/extend-axes/30340/2 "2019-10-26T18:47:32Z")

</div>

`xlim = [-1, 1]`
