[pstricks] dividing label units
Patrick Drechsler
patrick.drechsler at gmx.net
Sun Jun 6 19:56:38 CEST 2004
Hi,
is it possible to divide x- and/or y-label units by 10?
So far I've only managed to get the result by setting the label
by hand (using multido).
Any help appreciated,
Patrick
--8<------------------------schnipp------------------------->8---
\documentclass{article}
\usepackage{pstricks-add,multido}
\begin{document}
\def\dataA{%
0.0000000e+00 0.0000000e+00
7.3000000e+01 -1.2000000e+04
7.3014999e+01 -1.2000000e+04
1.9100000e+02 -1.2000000e+04
1.9100000e+02 -1.2000000e+04
1.9300000e+02 -8.0000000e+03
1.9600000e+02 0.0000000e+00
}
% Var. 1 (doesn't work):
% \renewcommand{\pshlabel}[1]{\psplot{#1}{10}{div}
% \renewcommand{\pshlabel}[1]{#1 10 div}
% Var. 2 (doesn't work):
% \renewcommand{\pshlabel}[1]{\tiny%
% \multido{\n=#1/10,\nPos=0+20}{10}{%
% \uput[-90](\nPos,-0.5){\n}}}
\psset{xunit=0.5mm,yunit=0.001mm}
\begin{pspicture}(0,-15000)(210,20000)
% this works...:
\multido{\n=0+2,\nPos=0+20}{11}{%
\uput[-90](\nPos,-0.5){\n}}
\psaxes[Dx=20,Dy=5000,tickstyle=bottom,labels=y]{<->}(0,0)(0,-15000)(210,15000)
\listplot[plotstyle=line]{\dataA}
\end{pspicture}
\end{document}
--8<------------------------schnapp------------------------->8---
--
We are sorry, but the number you have dialed is imaginary.
Please rotate your phone 90 degrees and try again.
More information about the PSTricks
mailing list