Here is my code:



\tikzfading[name=fade down,
     top color=transparent!30,
     bottom color=transparent!0]

\begin{axis}[axis x line*=bottom,
             axis y line*=left, blur shadow] 
  \addplot[yshift=-2pt,ybar, blue, fill,path fading=fade down, rounded corners=2pt]
       coordinates{(1,2.9) (2,1.7) (3,4.2) (4,5.1) (5,4) (6,2.2)};

when I compile the code use pdflatex, the PDF is display correct. but when I compile using xelatex, in the generated pdf, the shadows became to black color.

why? how to fix it?

pdflatex output

xelatex output

  • Welcome to TeX.sx! – Peter Jansson Apr 24 '13 at 20:28
  • Which version of PGF are you using? With the CVS version then I get the same output with xelatex as with pdflatex. – Loop Space Apr 24 '13 at 20:29
\def\pgfsysdriver{pgfsys-dvipdfmx.def}%%%% the correct driver for xelatex

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.