summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-11-04 23:16:30 +0000
committerKarl Berry <karl@freefriends.org>2011-11-04 23:16:30 +0000
commitfd9207757778f50d33798ab934b0c2da5d1849a1 (patch)
tree310a030db2980ceab83a93750f26c28bf2692155 /Master/texmf-dist/tex/generic
parente8ebecb6ccc3bdfe30c9ead5e953a3feb398a503 (diff)
pst-plot (4nov11)
git-svn-id: svn://tug.org/texlive/trunk@24493 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r--Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex21
1 files changed, 14 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex b/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex
index 3a3a7488a93..809ac605698 100644
--- a/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex
+++ b/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex
@@ -1,4 +1,4 @@
-% $Id: pst-plot.tex 592 2011-10-31 18:10:30Z herbert $
+% $Id: pst-plot.tex 598 2011-11-03 12:58:47Z herbert $
%% BEGIN pst-plot.tex
%%
%% plotting functions and data with PSTricks.
@@ -20,8 +20,8 @@
\ifx\PSTFPloaded\endinput\else \input pst-fp.tex \fi
\ifx\MultidoLoaded\endinput\else \input multido.tex \fi
%
-\def\fileversion{1.32}
-\def\filedate{2011/10/31}
+\def\fileversion{1.33}
+\def\filedate{2011/11/02}
\message{ v\fileversion, \filedate\space (tvz,hv)}
%
\edef\TheAtCode{\the\catcode`\@}
@@ -1996,8 +1996,12 @@ D\space##1%
\fi%
\else
\pst@cnta=#1\relax% % Distance (in sp) to end.
- \divide\pst@cnta\psk@dx\relax% % Number of ticks/labels
- \multido{\nA=#3+1}{\pst@cnta}{\uput{\psxlabelsep}[-90]{\pst@xLabelsRot}(\nA,\psxlabelsep){\psPutXLabel{\nA}}}%
+ \pstFPdiv\pst@tempA{\the\pst@cnta}{\psk@dx}
+ \pstFPadd\pst@tempA{0.55}{\pst@tempA} % to prevent rounding errors
+ \edef\pst@tempB{\pst@int{\pst@tempA}}
+% \divide\pst@cnta\psk@dx\relax% % Number of ticks/labels
+ \multido{\nA=#3+1}{\pst@tempB}{\uput{\psxlabelsep}[-90]{\pst@xLabelsRot}(\nA,0)%\psxlabelsep)
+ {\psPutXLabel{\nA}}}%
\fi%
}
% Knows \pst@dimb and \pst@cnta
@@ -2038,8 +2042,11 @@ D\space##1%
\fi%
\else%
\pst@cnta=#1\relax% % % Distance (in sp) to end.
- \divide\pst@cnta\psk@dy\relax% % Number of ticks/labels
- \multido{\nA=#3+1}{\the\pst@cnta}{\uput{\psylabelsep}[180]{\pst@yLabelsRot}(\psylabelsep,\nA){\psPutYLabel{\nA}}}%
+ \pstFPdiv\pst@tempA{\the\pst@cnta}{\psk@dy}
+ \pstFPadd\pst@tempA{0.55}{\pst@tempA} % to prevent rounding errors
+ \edef\pst@tempB{\pst@int{\pst@tempA}}
+% \divide\pst@cnta\psk@dy\relax% % Number of ticks/labels
+ \multido{\nA=#3+1}{\pst@tempB}{\uput{\psylabelsep}[180]{\pst@yLabelsRot}(0,\nA){\psPutYLabel{\nA}}}%
\fi%
}
% \pst@dima: the width between two labels in pt