Graphics, Figures & TablesPSTricks | Undesired Axes Label Position

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

PSTricks | Undesired Axes Label Position

Post by svend_tveskaeg »

Hi all.

Consider the following MWE:

Code: Select all

\documentclass{article}

\usepackage{auto-pst-pdf,pstricks-add}

\begin{document}

\begin{figure}
 \centering
  \begin{pspicture}(9,7.3)
    \psaxes[comma,Dx=2,dx=1,Dy=0.10,dy=1]{->}(0,0)(-0.5,0.5)(8.3,-7.3)[$x$~(\si{\promille}),0][$y$~(\si{\degreeCelsius}),270]
    \psgrid[gridlabels=0pt,subgriddiv=10](0,0)(8,-7)
    \psplot[algebraic,linecolor=red]{0}{6.5}{-0.054*20*x}
  \end{pspicture}
\end{figure}

\end{document}
As can be seen, the labels are beow the axes. I would like them to be above the axes.

How do I do this?

It has probably something to do with where I define the axes from and to but I am a bit confuse as to how I fix it.

Thank you in advance!
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

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

PSTricks | Undesired Axes Label Position

Post by localghost »

For this you have to consult the pst-plot manual to learn more about the options for the \psaxes command. Add xlabelPos=top and you will get the labels on the abscissa in the desired position.


Thorsten
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

PSTricks | Undesired Axes Label Position

Post by svend_tveskaeg »

localghost wrote:For this you have to consult the pst-plot manual to learn more about the options for the \psaxes command.
This is on PSTricks manual I did not look at; thank you for pointing me to it.
localghost wrote:Add xlabelPos=top and you will get the labels on the abscissa in the desired position.
Perfect.

Thank you.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply