Graphics, Figures & Tablespst-plot | Labels and Ticks on wrong Side Of Axes

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Christian
Posts: 2
Joined: Sat Sep 08, 2012 3:51 pm

pst-plot | Labels and Ticks on wrong Side Of Axes

Post by Christian »

I just tried an example of \psaxes from the »The LaTeX Graphics Companion«, second edition, bottom of page 320:

Code: Select all

\documentclass[11pt]{article}
\usepackage{pstricks,pst-plot}

\begin{document}
\begin{pspicture}(-0.5,0.5)(3,-2)
\psaxes[tickstyle=bottom]{->}(3,-2)
\end{pspicture}
\end{document}
The axes I obtain not only differ from the book but are wrong: the x labels and the ticks are set under the x axis, instead of above, so 0 is over the y axis (directed downwards). Any idea why? The log file is clean (see attachment).
Attachments
phi.log
(2.62 KiB) Downloaded 152 times
Last edited by localghost on Sat Sep 08, 2012 4:09 pm, edited 1 time in total.

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pst-plot | Labels and Ticks on wrong Side Of Axes

Post by localghost »

LaTeX packages are undergoing a continuous development. In the meantime there have been some changes to the syntax.

Code: Select all

\documentclass[11pt]{standalone}
\usepackage{pst-plot,pstricks-add}

\begin{document}
  \begin{pspicture}(-0.5,0.5)(3,-2)
    \psaxes[xlabelPos=top]{->}(3,-2)
  \end{pspicture}
\end{document}
Take a look at the pst-plot manual of the current package version.


Best regards and welcome to the board
Thorsten
Attachments
The resulting output.
The resulting output.
pst-plot-axis-labels.png (1.33 KiB) Viewed 1880 times
Christian
Posts: 2
Joined: Sat Sep 08, 2012 3:51 pm

Re: pst-plot | Labels and Ticks on wrong Side Of Axes

Post by Christian »

Thank you for your help and your warm welcome.
I will be more attentive to the formatting in the future.
Post Reply