[pstricks] bug in pst-infixplot?

Salvatore Vassallo salvatore.vassallo at unicatt.it
Tue Oct 12 12:05:20 CEST 2004


Hi,
I'm playing with pst-infixplot, but I found the following problem.

If you take this file:

\documentclass[11pt,a4paper]{article}
\usepackage[italian]{babel}
\usepackage{graphicx}
\usepackage{color}
\usepackage{pst-all}
\input{pst-plot.tex}
\input{pst-infixplot.tex}
\usepackage[T1]{fontenc}
\usepackage[cp1252]{inputenc}
\begin{document}

\psset{unit=1cm}
\begin{pspicture}(-1,-7)(10,6)
\psgrid
\psPlot[plotpoints=2000,linecolor=red]{.05}{9}{ln(x)}
\psaxes[linecolor=green]{->}(0,0)(-1,-7)(10,6)

\rput(-.5,.5){\(O\)} \rput(9.8,-.3){\(x\)}\rput(-.3,5.8){\(y\)}
\end{pspicture}
\end{document}

the y-axis is shifted on the right (as one can see using the grid) and
the graph of $ln x$ cuts the axis.

But if you take the same file and exchange the two lines:

\psPlot[plotpoints=2000,linecolor=red]{.05}{9}{ln(x)}
\psaxes[linecolor=green]{->}(0,0)(-1,-7)(10,6)

the graph is correct.

Is this a bug or I have to put the \psaxes command before the others?

TIA

Salvatore Vassallo





More information about the PSTricks mailing list