[pstricks] problem in psgraph when x and y axes are with negative numbers only

Patrice MÉGRET Patrice.MEGRET at umons.ac.be
Wed May 18 16:11:24 CEST 2016


Dear Herbert,

I want to make a graph with only negative values for x and y axes using the environment psgraph .

With \psaxes(-5,-6)(-3,-1), I have to use the keys xlabelPos=bottom,ylabelPos=left to correctly place the labels.

With \begin{psgraph}(-5,-6)(-3,-1){9cm}{5cm}\end{psgraph}, I get the same result as\psaxes(-5,-6)(-3,-1),  but the keys keys xlabelPos=bottom,ylabelPos=left to correct the label positions do not work, so I can never obtain a correct with a frame.


ð  There is probably a small problem in psgraph as it works for psaxes.

The code below shows an example of the problem.

\documentclass{report}
\usepackage{pstricks}
\usepackage{pst-plot}

\begin{document}

\begin{pspicture}[showgrid=false](-5,-7)(5,0)
\psaxes[axesstyle=frame,tickstyle=inner,Ox=-5,Oy=-6](-5,-6)(-3,-1)
\end{pspicture}
\begin{pspicture}[showgrid=false](-5,-7)(5,0)
\psaxes[axesstyle=frame,tickstyle=inner,Ox=-5,Oy=-6,xlabelPos=bottom,ylabelPos=left](-5,-6)(-3,-1)
\end{pspicture}


\begin{psgraph}[axesstyle=frame,Ox=-5,Oy=-6](-5,-6)(-3,-1){9cm}{5cm}
\end{psgraph}

\vspace{1cm}

\begin{psgraph}[axesstyle=frame,xlabelPos=bottom,ylabelPos=left,Ox=-5,Oy=-6](-5,-6)(-3,-1){9cm}{5cm}
\end{psgraph}
\end{document}

Best regards,
Patrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20160518/49344221/attachment-0001.html>


More information about the PSTricks mailing list