# [pstricks] pstrick-add: spacing in labels

Patrice Mégret Patrice.Megret at umons.ac.be
Fri Oct 9 17:42:41 CEST 2009

Dear Herbert,

As I write some of my lectures in French, I use comma=true in psgraph. By default, mathLabel is true, meaning that the spacing between the unit and decimal parts in numbers is wrong. One easy way to avoid this is to use mathLabel=false, so the numbers are written in standard mode and the spacing is correct.
Nevertheless, would it be possible to have the correct spacing even with mathLabel=true because it is then possible to use xlabelFactor with a comma in French?

The sample file  below illustrates my concern:

\documentclass[11pt,a4paper]{book}
\usepackage{xcolor}
\begin{document}

\psset{llx=-0.9cm,urx=0.5cm,lly=-0.5cm,ury=0.5cm,xAxisLabel=$t/T$,yAxisLabel=$u_R(t)/K_E E_0$,mathLabel=true}
\begin{psgraph}[labels=all,xsubticks=10,ysubticks=10,xticksize=1 0,yticksize=8 0,subticksize=1,axesstyle=frame,Dy=0.5,comma=true](0,0)(8,1){10cm}{3cm}
\psline[linecolor=orange,linewidth=1.5pt](0,0.83)(8,0.83)
\psline[linecolor=blue,linewidth=1.5pt](0,0)(1,0)(1,0.5)(3,0.5)(3,0.7)(5,0.7)(5,0.78)(7,0.78)(7,0.82)(8,0.82)
\end{psgraph}

\psset{llx=-0.9cm,urx=0.5cm,lly=-0.5cm,ury=0.5cm,xAxisLabel=$t/T$,yAxisLabel=$u_R(t)/K_E E_0$,mathLabel=false}
\begin{psgraph}[labels=all,xsubticks=10,ysubticks=10,xticksize=1 0,yticksize=8 0,subticksize=1,axesstyle=frame,Dy=0.5,comma=true](0,0)(8,1){10cm}{3cm}
\psline[linecolor=orange,linewidth=1.5pt](0,0.83)(8,0.83)
\psline[linecolor=blue,linewidth=1.5pt](0,0)(1,0)(1,0.5)(3,0.5)(3,0.7)(5,0.7)(5,0.78)(7,0.78)(7,0.82)(8,0.82)
\end{psgraph}

\psset{llx=-0.9cm,urx=0.5cm,lly=-0.5cm,ury=0.5cm,xAxisLabel=$t/T$,yAxisLabel=$u_R(t)/K_E E_0$,mathLabel=true,ylabelFactor=\cdot 10^6}
\begin{psgraph}[labels=all,xsubticks=10,ysubticks=10,xticksize=1 0,yticksize=8 0,subticksize=1,axesstyle=frame,Dy=0.5,comma=true](0,0)(8,1){10cm}{3cm}
\psline[linecolor=orange,linewidth=1.5pt](0,0.83)(8,0.83)
\psline[linecolor=blue,linewidth=1.5pt](0,0)(1,0)(1,0.5)(3,0.5)(3,0.7)(5,0.7)(5,0.78)(7,0.78)(7,0.82)(8,0.82)
\end{psgraph}

\end{document}

Best regards,

Patrice Mégret

________________________________
Important notification: In the context of the creation of the University of Mons, FPMs email address policy is changing from '@fpms.ac.be' to '@umons.ac.be' (or @student.fpms.ac.be to @student.umons.ac.be), please update your contact list accordingly.

Note importante: Dans le cadre de la création de l'Université de Mons, la stratégie d'adresse de courrier électronique de la FPMs change de '@fpms.ac.be' à '@umons.ac.be' (ou @student.fpms.ac.be to @student.umons.ac.be), merci de mettre à jour votre liste d'adresses en conséquence.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20091009/d01c5e1a/attachment.html>