Hi Wenbo, The problem is known and has already been fixed in PGF: it is an incompatibility between PGF's driver code and the standalone package.
According to the PGF changelog, it has been fixed with 2014-01-08 Christian Feuersaenger <cfeuersaen...@users.sourceforge.net> - fixed bug in latex/plain tex shipout routines for xdvipdfmx and xelatex: combination of shadings and standalone package failed to work. Workarounds are: 1. embed the shading into another document class and check if that works (article works) 2. use another driver (like pdftex) for the picture in question 3. download an unstable build of PGF. The unstable build provided on http://pgf.sourceforge.net/ appears to contain the bugfix. This needs quite some manual work until it works. Kind regards Christian Am 28.09.2014 08:45, schrieb shengwenbo: > Hello all, > > I meet a problem about the colorbar in pgfplots. The test codes are > just from the first example in section 4.9.12 of the manual (page 226): > > \documentclass[tikz]{standalone} > \usepackage{pgfplots} > \pgfplotsset{width=7cm,compat=1.11} > > \begin{document} > > \begin{tikzpicture} > \begin{axis}[colorbar] > \addplot[mesh,ultra thick] {x}; > \end{axis} > \end{tikzpicture} > > \end{document} > > The problem is that the colorbar is not completed and there's some > blank inside, as shown in the attached file (.tex, .log and .pdf files). > > Enviroment: Ubuntu14.04+texlive2014(updated on 2014/09/27)+pgfplots > version 1.11 > > Many thanks for any help! > > Best Regards > > Wenbo > > > > > ------------------------------------------------------------------------------ > Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer > Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports > Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper > Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer > http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk > > > _______________________________________________ > Pgfplots-features mailing list > Pgfplots-features@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pgfplots-features ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features