# Plots font rotation

**URL:** <https://discourse.julialang.org/t/plots-font-rotation/15784>\
**Category:** General Usage\
**Tags:** plotting, plots\
**Created:** [October 2, 2018, 12:09pm UTC](https://discourse.julialang.org/t/plots-font-rotation/15784 "2018-10-02T12:09:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [October 2, 2018, 12:09pm UTC](https://discourse.julialang.org/t/plots-font-rotation/15784/1 "2018-10-02T12:09:20Z")

</div>

I’m trying to rotate the xtick labels using `Plots.jl`  
I have tried

```julia
fo = font(10, "Courier")
fo.rotation = 90
plot(randn(10), xtickfont=fo) # Does nothing

plot(randn(10), rotation = 90) # Rotates also ytick labels which I do not want.

```

Any idea how to rotate only `xtickfont`?

---

<div class="post-metadata">

**Author:** ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Post date:** [October 2, 2018, 12:24pm UTC](https://discourse.julialang.org/t/plots-font-rotation/15784/2 "2018-10-02T12:24:29Z")

</div>

It seems the keyword argument `xrotation = 90` does the trick. This keyword does not seem to appear on the attributes page [Overview · Plots](http://docs.juliaplots.org/latest/attributes/)
