pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
200 stars 35 forks source link

XeLaTex with pgfplots displays wrong color? #225

Open pgf-tikz-bot opened 5 years ago

pgf-tikz-bot commented 5 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/225/ Author: san03 Timestamp: 2019-08-15 08:01:10.241000

https://sourceforge.net/p/pgfplots/bugs/225/attachment/Xelatex.png I'm using XeTex for Truetypefonts.

It appears as if the color output in pgfplots is not correct. Is that a bug? Or do I have some misconfiguration?

For other colors than black (e.g. red for the axis line color) it actually works as expected...

My pgfversion: 3.0.1a

MWE:

\documentclass{scrartcl}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{axis line style=black}
\color{green}
\begin{document}
    \begin{tikzpicture}
        \begin{axis}
         \addplot {x*x};
        \end{axis}
    \end{tikzpicture}
\end{document}
pgf-tikz-bot commented 5 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/225/#6f1a Author: san03 Timestamp: 2019-08-15 08:03:57.906000

https://sourceforge.net/p/pgfplots/bugs/_discuss/thread/7a9ccfda15/6f1a/attachment/Pdflatex.png Expected behaviour with pdflatex looks like this: