# Stupid question

Denis Girou Denis.Girou at idris.fr
Mon Jun 30 10:39:27 CEST 1997

-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

Ulrich.Dirr> I have a silly question concerning \psaxes.
Ulrich.Dirr> In Germany the decimal delimiter is a comma and not a point.
^^^^^^^ (in France too!)
Ulrich.Dirr> Now if you have axes with a range say from -2.5 to 4.5 the
Ulrich.Dirr> labeling is with decimal points.
Ulrich.Dirr> Is there an easy way to change the _output_ to commata?

Of course, it is not a specific PSTricks question. But for labels of axes,
you have to redefine the macros \pshlabel and \psvlabel (notice that there is
a typo in PSTricks documentation page 51, refering to \psxlabel and \psylabel,
typo reported in pst-doc.err). Something like:

\documentclass{article}

\usepackage{pst-plot}

% To change decimal points by virgules in axes labels
\makeatletter
\def\pshlabel#1{\expandafter\LabelVirgule#1..\@nil}
\def\psvlabel#1{\expandafter\LabelVirgule#1..\@nil}
\def\LabelVirgule#1.#2.#3\@nil{%
\ifx#1\@empty0\else#1\fi
\ifx#2\@empty\else,#2\fi}
\makeatother

\begin{document}

\psset{unit=2}

\begin{pspicture}(-3,-1.5)(3,1)
\psaxes(0,0)(-3,-1)(3,1)
\end{pspicture}

\begin{pspicture}(-3,-1.5)(3.5,1)
\psaxes[Dx=0.5,Dy=0.5](0,0)(-3,-1)(3,1)
\end{pspicture}

\begin{pspicture}(-3,-1.5)(3,1)
\psaxes[Dx=0.5,Dy=0.2](0,0)(-3,-1)(3,1)
\end{pspicture}

\end{document}

D.G.

-----------------------------------------------------------------------------
To [un]subscribe to this list, send mail to pstricks-request at mail.tug.org
Leave the subject line blank and in the body put the line