# How to using Japanese characteristic in plot

**URL:** <https://discourse.julialang.org/t/how-to-using-japanese-characteristic-in-plot/27613>\
**Category:** New to Julia\
**Tags:** plotting, juliabox\
**Created:** [August 16, 2019, 11:46am UTC](https://discourse.julialang.org/t/how-to-using-japanese-characteristic-in-plot/27613 "2019-08-16T11:46:13Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [August 18, 2019, 9:12am UTC](https://discourse.julialang.org/t/how-to-using-japanese-characteristic-in-plot/27613/7 "2019-08-18T09:12:30Z")

</div>

I had an example here for PGFPlotsX which could be modified:

> [@Why in plots，plot can't correctly display chinese](https://discourse.julialang.org/t/why-in-plots-plot-cant-correctly-display-chinese/19511/6):
>
> Someone who knows more about CJK in LaTeX may be able to simplify this: using PGFPlotsX # run this just once, to setup PGFPlotsX PGFPlotsX.latexengine!(PGFPlotsX.PDFLATEX) push!(PGFPlotsX.CUSTOM\_PREAMBLE, raw"\usepackage{CJKutf8}", raw"\newcommand{\zh}[1]{\begin{CJK}{UTF8}{gbsn}#1\end{CJK}}") # the actual plot p = @pgf Axis({title = raw"\zh{图形}" }, Plot(Coordinates(enumerate(rand(10))))) # we also save it pgfsave("/tmp/test.pdf", p)

Incidentally, if someone happens to be using pgfplots with CJK characters, contributing an example at

> **[GitHub - KristofferC/PGFPlotsX.jl: Plots in Julia using the PGFPlots LaTeX...](https://github.com/KristofferC/PGFPlotsX.jl)**
>
> Plots in Julia using the PGFPlots LaTeX package. Contribute to KristofferC/PGFPlotsX.jl development by creating an account on GitHub.

would be appreciated.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-using-japanese-characteristic-in-plot/27613)._
