# Plots... \`xrot\` stopped working?

**URL:** <https://discourse.julialang.org/t/plots-xrot-stopped-working/46503>\
**Category:** Performance\
**Created:** [September 12, 2020, 10:18am UTC](https://discourse.julialang.org/t/plots-xrot-stopped-working/46503 "2020-09-12T10:18:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)\
**Post date:** [September 12, 2020, 10:18am UTC](https://discourse.julialang.org/t/plots-xrot-stopped-working/46503/1 "2020-09-12T10:18:41Z")

</div>

In min June, I used keyword `xrot` to rotate the `xticks` in Plots with PyPlot backend:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/4/945d52a537c7be3d0133e2226b7c0554abe17d74.png)

Today, the `xrot` keyword doesn’t seem to work any more:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/2/f2061b6fc57b0c0721afb005c7644ad0d73fc3ce.png)

Has the keyword been removed/changed?

---

<div class="post-metadata">

**Author:** ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)\
**Post date:** [September 12, 2020, 11:45am UTC](https://discourse.julialang.org/t/plots-xrot-stopped-working/46503/2 "2020-09-12T11:45:12Z")

</div>

OK… `xrot` works with the `gr()` back-end. But `gr()` does not support `msc = false`, so for `gr()` I need to set `msw=0`.

There is much to like about the GR back-end, but I normally prefer the PyPlot back-end because it has better LaTeX support.

Anyway: there has been a change in Plots since June which breaks the functionality of the `xrot` keyword for `pyplot()`.

---

<div class="post-metadata">

**Author:** ![tzxiong](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tzxiong/32/17502_2.png) [@tzxiong](https://discourse.julialang.org/u/tzxiong)\
**Post date:** [November 16, 2020, 5:08am UTC](https://discourse.julialang.org/t/plots-xrot-stopped-working/46503/3 "2020-11-16T05:08:46Z")

</div>

Hi @BLI, do you know how to save the figure using the pyplot() backend of Plots.jl as a tex file? In python it can be exported as a pgf figure.

---

<div class="post-metadata">

**Author:** ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)\
**Post date:** [November 16, 2020, 7:19am UTC](https://discourse.julialang.org/t/plots-xrot-stopped-working/46503/4 "2020-11-16T07:19:03Z")

</div>

Sorry, no: I tend to save as svg-file. There is another back-end that is based on TeX, so perhaps you can test that out? I have never used it – it seems to be slightly more challenging wrt. installation, so I haven’t “dared” to try that.
