Graphics, Figures & Tables\pspicture always appears on new page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Sagil
Posts: 20
Joined: Tue Mar 24, 2009 1:15 am

\pspicture always appears on new page

Post by Sagil »

I've tried to embed some pictures into a document, but find that they always appear on a separate page, in the bottom left corner. E.g. for the following simple document:

Code: Select all

\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture}[unit=2mm](0,0)(18,18)
\psaxes[Dx=2,Dy=2]{->}(18,18)
\psdots(4,7)(5,5)(7,4)
\end{pspicture}
\begin{pspicture}[unit=2mm](0,0)(18,18)
\psaxes[Dx=2,Dy=2]{->}(18,18)
\psdots(8,14)(10,10)(14,8)
\end{pspicture}
\end{document}
the two pictures appear on different pages. Anything wrong with the parameters I provide?

Edit: Nevermind, I got it - (18,18) parameters seem to indicate 18x18 cm, regardless of unit size..

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post Reply