diff options
author | Karl Berry <karl@freefriends.org> | 2009-02-18 17:29:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-02-18 17:29:19 +0000 |
commit | 580735009eac6952e6ce112bd3c6f00fade80c3f (patch) | |
tree | f30360f712a94d2d7fb524989a55fd6a97ccda9e /Master/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex | |
parent | 55304cf473fbdece6b5392aac6cfb75671e34189 (diff) |
pgfplots update (17feb09)
git-svn-id: svn://tug.org/texlive/trunk@12180 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex b/Master/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex index cd0cc44dff3..d953f779f01 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/pgfplotsticks.code.tex @@ -252,6 +252,70 @@ \pgfplots@show@ticklabel@{#1}{#2}% \begingroup \pgftransformshift{\pgfplotspointonorientedsurfaceab{#3}{#4}}% +% +%-------------------------------------------------- +% \iffalse +% %\iftrue +% % The following code is experimental and contains automatically +% % aligned tick labels (especially for 3D axes). It's not quite +% % finished. +% % +% %\tracingmacros=2\tracingcommands=2 +% \message{HIER}% +% \if x\pgfplotspointonorientedsurfaceB +% \if y\pgfplotspointonorientedsurfaceN +% \def\pgfplotspointonorientedsurfbN##1##2{\pgfplotsqpointxyz{##1}{##2}{0}}% +% \else% N == z: +% \def\pgfplotspointonorientedsurfbN##1##2{\pgfplotsqpointxyz{##1}{0}{##2}}% +% \fi +% \else +% \if y\pgfplotspointonorientedsurfaceB +% \if x\pgfplotspointonorientedsurfaceN +% \def\pgfplotspointonorientedsurfbN##1##2{\pgfplotsqpointxyz{##2}{##1}{0}}% +% \else% N == z: +% \def\pgfplotspointonorientedsurfbN##1##2{\pgfplotsqpointxyz{0}{##1}{##2}}% +% \fi +% \else +% % B == z +% \if y\pgfplotspointonorientedsurfaceN +% \def\pgfplotspointonorientedsurfbN##1##2{\pgfplotsqpointxyz{0}{##2}{##1}}% +% \else% N == x: +% \def\pgfplotspointonorientedsurfbN##1##2{\pgfplotsqpointxyz{##2}{0}{##1}}% +% \fi +% \fi +% \fi +% %\message{a == \pgfplotspointonorientedsurfaceA, b == \pgfplotspointonorientedsurfaceB, N == \pgfplotspointonorientedsurfaceN. zeug=\meaning\pgfplotspointonorientedsurfbN.}% +% \if0\pgfplots@ticklabelside +% % this means : the 'b' axis of the surface is on the lower axis +% % limit. Since we want tick labels OUTSIDE of the axis, we need +% % sign = -1. +% \def\pgfplots@loc@TMPa{-}% +% \else +% % in this case, we the OUTSIDE area requires a plus sign - the b +% % axis already points to the outside. +% \def\pgfplots@loc@TMPa{}% +% \fi +% \if0\pgfplotspointonorientedsurfaceabsetupfor@fixedsymbol +% % same as before: the N axis is on the lower axis limit. +% % So: sign -1 +% \def\pgfplots@loc@TMPb{-}% +% \else +% \def\pgfplots@loc@TMPb{}% +% \fi +% \pgfmathparse{\csname pgfplots@\pgfplotspointonorientedsurfaceB @inverseveclength\endcsname * \pgfplots@loc@TMPa 0.2cm}% +% \let\pgfplots@loc@TMPa=\pgfmathresult +% \pgfmathparse{\csname pgfplots@\pgfplotspointonorientedsurfaceN @inverseveclength\endcsname * \pgfplots@loc@TMPb 0.2cm}% +% \let\pgfplots@loc@TMPb=\pgfmathresult +% %-------------------------------------------------- +% % \pgfpathmoveto{\pgfqpoint{0pt}{0pt}}% +% % \pgfpathlineto{\pgfplotspointonorientedsurfbN{\pgfplots@loc@TMPa}{\pgfplots@loc@TMPb}}% +% % \pgfusepath{stroke} +% %-------------------------------------------------- +% \pgftransformshift{\pgfplotspointonorientedsurfbN{\pgfplots@loc@TMPa}{\pgfplots@loc@TMPb}}% +% \tikzset{every node/.append style={anchor=center}}% +% \fi +%-------------------------------------------------- +% \node at (0pt,0pt) {\csname pgfplots@#1ticklabel\endcsname};% \endgroup \fi @@ -408,6 +472,14 @@ \let\pgfplots@tick@beg@a=\pgfmathresult \pgfmathsubtract@{\pgfplots@tick@beg@a}{#2}% \let\pgfplots@tick@end@a=\pgfmathresult% + \else + % FALL BACK + % (\pgfplots@xcoordminTEX-\pgfplots@tick@offset, \pgfplots@tmpa) -- ++( #2, 0pt); + \edef\pgfplots@tick@beg@a{\csname pgfplots@\pgfplotspointonorientedsurfaceB min\endcsname}% + \pgfmathsubtract@{\pgfplots@tick@beg@a}{\pgfplots@tick@offset}% + \let\pgfplots@tick@beg@a=\pgfmathresult + \pgfmathadd@{\pgfplots@tick@beg@a}{#2}% + \let\pgfplots@tick@end@a=\pgfmathresult \fi }% |