summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex')
-rw-r--r--Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex30
1 files changed, 17 insertions, 13 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 718777c2663..d3e473e8867 100644
--- a/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex
+++ b/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex
@@ -19,8 +19,8 @@
\ifx\PSTFPloaded\endinput\else \input pst-fp.tex \fi
\ifx\MultidoLoaded\endinput\else \input multido.tex \fi
%
-\def\fileversion{1.55}
-\def\filedate{2013/11/21}
+\def\fileversion{1.56}
+\def\filedate{2013/11/22}
\message{ v\fileversion, \filedate\space (tvz,hv)}
%
\edef\TheAtCode{\the\catcode`\@}
@@ -2051,22 +2051,24 @@ D\space##1%
\fi%
}
%
-\def\psk@EndAngle{360}% be sure that it isn't undefined
-\define@key[psset]{pst-plot}{quadrant}[4]{%
- \ifcase#1 \or
- \def\psk@EndAngle{90}\or
- \def\psk@EndAngle{180}\or
- \def\psk@EndAngle{270}\else
- \def\psk@EndAngle{360}%
- \fi}
-\psset[pst-plot]{quadrant=4}
+%\def\psk@EndAngle{360}% be sure that it isn't undefined
+%\define@key[psset]{pst-plot}{quadrant}[4]{%
+% \ifcase#1 \or
+% \def\psk@EndAngle{90}\or
+% \def\psk@EndAngle{180}\or
+% \def\psk@EndAngle{270}\else
+% \def\psk@EndAngle{360}%
+% \fi}
+%\psset[pst-plot]{quadrant=4}
\def\psxs@polar{% (rx,ry) % all other values are ignored
\pst@killglue
\begingroup
\edef\pst@dimC{\strip@pt\pst@dimc}% RadiusX
\pstFPDiv\pstR@dius{\pst@dimC}{\strip@pt\psxunit}% in cm and as integer
- \addbefore@par{Dy=30}% for the angle step
+ \edef\pst@dimD{\strip@pt\pst@dimd}% RadiusX
+ \pstFPDiv\psk@EndAngle{\pst@dimD}{\strip@pt\psyunit}% in cm and as integer
+ \ifnum\psk@EndAngle=0 \def\psk@EndAngle{360}\fi
\use@keep@par
\pstFPDiv\pstN@lpha{\psk@EndAngle}{\psk@Dy}% No. of (int) main lines
\pstFPdiv\pstd@lpha{\psk@Dy}{\psk@ysubticks}% sub dAlpha
@@ -2099,10 +2101,12 @@ D\space##1%
\Pst@xAxisfalse\Pst@yAxisfalse%
}
%
+\def\@polar{polar}
\define@key[psset]{pst-plot}{axesstyle}[axes]{%
\@ifundefined{psxs@#1}%
{\@pstrickserr{Axes style `#1' not defined}\@eha}%
- {\def\psk@axesstyle{#1}}}
+ {\def\psk@axesstyle{#1}%
+ \ifx\psk@axesstyle\@polar\psset{Dy=30}\fi}}
\psset[pst-plot]{axesstyle=axes}
\define@key[psset]{pst-plot}{xLabels}[]{\def\psk@xLabels{#1}}
\define@key[psset]{pst-plot}{xLabelsRot}[0]{\pst@getangle{#1}\pst@xLabelsRot}