# PyPlot - x axis is moved to center, could xlabel be moved to the top of x-axis

**URL:** <https://discourse.julialang.org/t/pyplot-x-axis-is-moved-to-center-could-xlabel-be-moved-to-the-top-of-x-axis/16773>\
**Category:** New to Julia\
**Created:** [October 25, 2018, 4:28am UTC](https://discourse.julialang.org/t/pyplot-x-axis-is-moved-to-center-could-xlabel-be-moved-to-the-top-of-x-axis/16773 "2018-10-25T04:28:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fang\_Xu](https://avatars.discourse-cdn.com/v4/letter/f/3ab097/32.png) [@Fang\_Xu](https://discourse.julialang.org/u/Fang_Xu)\
**Post date:** [October 25, 2018, 4:28am UTC](https://discourse.julialang.org/t/pyplot-x-axis-is-moved-to-center-could-xlabel-be-moved-to-the-top-of-x-axis/16773/1 "2018-10-25T04:28:26Z")

</div>

![33](https://global.discourse-cdn.com/julialang/original/3X/8/e/8e636906a189495359631df2e37e29b28aece083.png)

---

<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:** [October 25, 2018, 11:30am UTC](https://discourse.julialang.org/t/pyplot-x-axis-is-moved-to-center-could-xlabel-be-moved-to-the-top-of-x-axis/16773/2 "2018-10-25T11:30:58Z")

</div>

```julia
xlabel("foo", labelpad=-30)

```
