[pstricks] PostScript numbers

Denis Vergès denis.verges at wanadoo.fr
Sat Sep 2 10:55:06 CEST 2017


Hello,

In this code :

%%%%%%%%%
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{fp}
\usepackage{pstricks,pst-all,pst-func,pst-plot,pstricks-add}
\begin{document}
\newcommand\f[1]{#1 2 exp 4 div}
\newcommand\ordon[1]{\psdots(!#1 \space \f{#1})	
\uput[90](!#1 \space \f{#1})%
{\psPrintValue{\f{#1} 1000 mul round 1000 div}}}
\begin{center}
%\psset{comma=true]
\begin{pspicture}(-2,-1)(5,8)
\psaxes{->}(0,0)(-2,-1)(5,7)[$x$,-90][$y$,180] 
\psplot[linecolor=red]{-2}{5}{\f{x}}
\multido{\i=-2+2}{4}{ \ordon{\i}}
\ordon{3.5}
\end{pspicture}
\end{center}
\end{document}
%%%%%%%%%%
(!#1 \space \f(#1)) are the coordinate in PostScript notation.
How can I transforme this numbers in cartesian coordinate for write this numbers in french notation with the comma 
decimal separator ans possibility to use \np{}.
Thanks
Denis


More information about the PSTricks mailing list