I copied an example code from the TeXample website. After compiling, I get a plot on the top of the PDF page but not a full page plot like in the example output.
Any ideas, how I can get a full page big plot like in the example

thanks
-Fawad
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
article
class with standalone
.Code: Select all
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{10pt}%
standalone
class would be easier and would save a few lines, but not everybody has this class installed, and it's pretty new. The visible code doesn't require standalone
or preview
to be compilable.Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis