JuliaTeX / PGFPlots.jl

This library uses the LaTeX package pgfplots to produce plots.
Other
188 stars 36 forks source link

% - Percent in label #133

Closed holgerteichgraeber closed 4 years ago

holgerteichgraeber commented 4 years ago

Hi, I am trying to have the % sign in a label. However, I do not get the desired result:

using Plots
pgfplots()
using LaTeXStrings
plot(ylabel="test [%]")

My y label reads the following test [draw opacity = 0.1, line width =0.5, solid

Using \% gives an error: syntax: invalid escape sequence.

What do you recommend? Thank you already in advance Holger

DilumAluthge commented 4 years ago

Have you tried \\%

holgerteichgraeber commented 4 years ago

Nice, that works, thank you!