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/
198 stars 34 forks source link

standalone + latex create full pages #128

Open pgf-tikz-bot opened 8 years ago

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/128/ Author: tuusis Timestamp: 2016-08-25 20:39:10.897000

I am generating .eps figures using pgfplots + latex. After updating to the newest version I noticed that using for example

\documentclass{standalone}
\usepackage{pgfplots}
\begin{document}
%
Test
%
\end{document}

creates a full page (probably in the default page size?), not only the content. Commenting out PGFPlots removes the empty page leaving only the content the way it should be.

The problem is that this problem propagates to the externalized graphs:

\documentclass{standalone}
\usepackage{pgfplots}
\usepgfplotslibrary{external}
\tikzexternalize[shell escape=-enable-write18]
\tikzset{external/system call={latex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource" && dvips -o "\image".eps "\image".dvi}}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\end{axis}
\end{tikzpicture}
\end{document}

compiling the above with latex -shell-escape ... leads to an EPS figure with the size being a full page.

pdflatex, etc. produce the correct PDF results as expected in both cases. I'm using MiKTeX 2.9 32 bit, PGFPlots 1.14 is dated 2016-08-12 21:38:10.

Thank you for the continuing effort for this great package!

Regards, Topi

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/128/#cc31 Author: tuusis Timestamp: 2016-08-26 07:52:57.399000

This works normally in Texlive 2015.20160320-1 under Ubuntu 16.04.