texlive[51650] Master/texmf-dist: pst-plot (16jul19)

commits+karl at tug.org commits+karl at tug.org
Tue Jul 16 23:13:16 CEST 2019


Revision: 51650
          http://tug.org/svn/texlive?view=revision&revision=51650
Author:   karl
Date:     2019-07-16 23:13:16 +0200 (Tue, 16 Jul 2019)
Log Message:
-----------
pst-plot (16jul19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/pst-plot/Changes
    trunk/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf
    trunk/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex
    trunk/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex

Modified: trunk/Master/texmf-dist/doc/generic/pst-plot/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-plot/Changes	2019-07-15 23:53:49 UTC (rev 51649)
+++ trunk/Master/texmf-dist/doc/generic/pst-plot/Changes	2019-07-16 21:13:16 UTC (rev 51650)
@@ -1,4 +1,5 @@
 ----- pst-plot.tex
+1.92  2019-05-16  - fix for missing position test of special labels
 1.91  2018-08-31  - fix for showorigin and triglabels
 1.90  2018-03-28  - fix for showoriginfalse and yAxis=false
 1.89  2018-02-18  - fix for trailing space in loglines=all

Modified: trunk/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex	2019-07-15 23:53:49 UTC (rev 51649)
+++ trunk/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex	2019-07-16 21:13:16 UTC (rev 51650)
@@ -1,4 +1,4 @@
-% $Id: pst-plot-doc.tex 799 2018-08-31 16:27:35Z herbert $
+% $Id: pst-plot-doc.tex 1056 2019-05-17 07:39:59Z herbert $
 \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings
     headexclude,footexclude,oneside,dvipsnames,svgnames]{pst-doc}
 \listfiles
@@ -205,7 +205,8 @@
 
 \begin{BDef}
 \Lcs{psplot}\OptArgs\Largb{$x_!\min@$}\Largb{$x_!\max@$}\Largb{function}\\
-\Lcs{parametricplot}\OptArgs\Largb{$t_!\min@$}\Largb{$t_!\max@$}\Largb{x(t) y(t)}
+\Lcs{parametricplot}\OptArgs\Largb{$t_!\min@$}\Largb{$t_!\max@$}\Largb{x(t) y(t)}\\
+\Lcs{parametricplot}\OptArg{algebraic,...}\Largb{$t_!\min@$}\Largb{$t_!\max@$}\Largb{x(t) | y(t)}
 \end{BDef}
 
   \Lcs{psplot} can be used to plot a function $f(x)$, if you know a little
@@ -227,7 +228,8 @@
 \end{LTXexample}
 
 \Lcs{parametricplot} is for a parametric plot of $(x(t),y(t))$. \Larg{function} is the PostScript
-code or algebraic expression for calculating the pair $x(t)$ $y(t)$.
+code or algebraic expression for calculating the pair $x(t)$ $y(t)$. For an algebraic expression they must be
+devided by a vertical rule.
 
 For example,
 \begin{LTXexample}[wide,width=4cm]
@@ -251,6 +253,20 @@
 \end{LTXexample}
 
 
+\begin{LTXexample}[wide,width=6.5cm]
+\begin{pspicture}[showgrid,algebraic](-3,-3)(3,3)
+\psframe[dimen=m](-3,-3)(3,3)
+  \pscustom[fillstyle=hlines]{%
+  \psplot{-3}{3}{-x^2/3}
+  \psparametricplot{-3}{3}{t^2/3 | t}
+  \psplot{3}{-3}{x^2/3}
+  \psparametricplot{3}{-3}{-t^2/3 | t}
+}
+\end{pspicture}
+\end{LTXexample}
+
+
+
 The number of points that the \Lcs{psplot} and \Lcs{parametricplot} commands
 calculate is set by the
   \LKeyset{plotpoints=<value>}
@@ -276,6 +292,7 @@
 \begin{BDef}
 \Lcs{psplot}\OptArgs\Largb{x0}\Largb{x1}\OptArg{PS commands}\Largb{function}\\
 \Lcs{psparametricplot}\OptArgs\Largb{t0}\Largb{t1}\OptArg{PS commands}\Largb{x(t) y(t)}\\
+\Lcs{psparametricplot}\OptArg{algebraic,...}\Largb{t0}\Largb{t1}\OptArg{PS commands}\Largb{x(t) | y(t)}\\
 \Lcs{psaxes}\OptArgs\OptArg*{\Largb{arrows}}\coord0\coord1\coord2\OptArg{Xlabel,Xangle}\OptArg{Ylabel,Yangle}
 \end{BDef}
 
@@ -1005,7 +1022,8 @@
 
 
 \begin{LTXexample}[width=.4\linewidth]
-\begin{psgraph}[Dx=2,Dy=2](0,0)(-4,-2.2)(4,2.2){.5\textwidth}{!}
+\begin{psgraph}[Dx=2,Dy=2,showorigin=false]%
+  (0,0)(-4,-2.2)(4,2.2){.5\textwidth}{!}
   \psxTick[linecolor=red,labelsep=-20pt]{45}(1.25){x_0}
   \psyTick[linecolor=blue](1){y_0}
 \end{psgraph}
@@ -3286,7 +3304,7 @@
 %--------------------------------------------------------------------------------------
 With the setting \Lkeyset{plotstyle=ybar} the graph is set with horizontal bars instead
 of vertical. For \Lkeyword{yLabels} see section~\ref{yLabels}.
-.
+
 \begin{center}
 \savedata{\data}[1 1  1 2  1 3  2 4  3 5 4 6  4 7  6 8  6 9  7 10  25 11 30 12 32 13]
 

Modified: trunk/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex	2019-07-15 23:53:49 UTC (rev 51649)
+++ trunk/Master/texmf-dist/tex/generic/pst-plot/pst-plot.tex	2019-07-16 21:13:16 UTC (rev 51650)
@@ -1,4 +1,4 @@
-% $Id: pst-plot.tex 798 2018-08-31 14:47:43Z herbert $
+% $Id: pst-plot.tex 1056 2019-05-17 07:39:59Z herbert $
 %%
 %% BEGIN pst-plot.tex
 %%
@@ -23,8 +23,8 @@
 \ifx\PSTFPloaded\endinput\else   \input pst-fp.tex  \fi
 \ifx\MultidoLoaded\endinput\else \input multido.tex \fi
 %
-\def\fileversion{1.91}
-\def\filedate{2018/08/31}
+\def\fileversion{1.92}
+\def\filedate{2019/05/16}
 \message{ v\fileversion, \filedate\space (tvz,hv)}
 %
 \edef\TheAtCode{\the\catcode`\@}
@@ -714,8 +714,8 @@
       \ifPst at valuesStar
       Str stringwidth pop /yS \psk at fontscale def /xS ED 
       gsave newpath 
-        xO \ifPst at xvalues \pst at number\pslabelsep add \fi
-        yO \ifPst at xvalues\else \pst at number\pslabelsep add \fi 
+        xO \ifPst at xvalues \pst at number\pslabelsep add \fi 
+        yO \ifPst at xvalues \psk at fontscale 4 div sub \else \pst at number\pslabelsep add \fi 
         moveto \ifx\psk at rot\@empty\else\psk at rot rotate \fi
         xS 0 rlineto 0 yS rlineto xS neg 0 rlineto 0 yS neg rlineto 
         closepath  1 setgray fill stroke 
@@ -722,7 +722,7 @@
       grestore 
       \fi
       xO \ifPst at xvalues \pst at number\pslabelsep add \fi
-      yO \ifPst at xvalues\else \pst at number\pslabelsep add \fi 
+      yO \ifPst at xvalues \psk at fontscale 4 div sub \else \pst at number\pslabelsep add \fi 
       moveto \ifx\psk at rot\@empty\else\psk at rot rotate \fi 
       Str show 
       grestore } repeat 
@@ -934,11 +934,11 @@
 \def\psplot{\def\pst at par{}\pst at object{psplot}}
 \def\psplot at i#1#2{\@ifnextchar[{\psplot at x{#1}{#2}}{\psplot at x{#1}{#2}[]}}
 \def\psplot at x#1#2[#3]#4{%
-  \pst at killglue%
-  \begingroup%
-    \use at par%
+  \pst at killglue
+  \begingroup
+    \use at par
     \@nameuse{beginplot@\psplotstyle}%
-    \ifPst at polarplot%
+    \ifPst at polarplot
       \addto at pscode{
         \psplot at init
         #3 
@@ -1005,16 +1005,16 @@
       /xy { x \pst at number\psxunit mul F at pstplot \pst at number\psyunit mul
 %       \ifPst at algebraic F at pstplot \else #4 \fi \pst at number\psyunit mul
       } def}%
-    \fi%
+    \fi
     \gdef\psplot at init{}%
     \ifx\pslinestyle\psls@@symbol
       \psplot at iii
     \else
-      \@pstfalse%
+      \@pstfalse
       \@nameuse{testqp@\psplotstyle}%
-      \if at pst\psplot at ii\else\psplot at iii\fi%
-    \fi%
-  \endgroup%
+      \if at pst\psplot at ii\else\psplot at iii\fi
+    \fi
+  \endgroup
   \ignorespaces}
 %
 \def\psplot at ii{%
@@ -1228,7 +1228,15 @@
   \edef\psk at dy{\number\pst at dimg}}
 \psset[pst-plot]{dy=0}
 %
-\define at boolkey[psset]{pst-plot}[]{showorigin}[true]{}
+\define at boolkey[psset]{pst-plot}[]{showXorigin}[true]{}
+\define at boolkey[psset]{pst-plot}[]{showYorigin}[true]{}
+\define at boolkey[psset]{pst-plot}[]{showorigin}[true]{%
+  \ifshoworigin
+    \showXorigintrue\showYorigintrue
+  \else
+    \showXoriginfalse\showYoriginfalse
+  \fi
+}
 \psset[pst-plot]{showorigin=true}
 %
 \long\def\psrotatebox#1#2{%
@@ -2016,7 +2024,7 @@
     \ifPst at xAxis
       \SpecialLabelsDonefalse
       \begingroup
-      \ifdim\pst at dimb=\z@\else\ifPst at xtrigLabels\else\showoriginfalse\fi\fi
+%%%      \ifdim\pst at dimb=\z@\else\ifPst at xtrigLabels\else\showoriginfalse\fi\fi
       \ifnum\psk at dx=\z@
         \pst at dimg=\psk at Dx\psxunit
         \ifdim\pst at dimg<\p@ 
@@ -2481,8 +2489,14 @@
 	\ifdim\pst at pmtempb pt < \z@ \def\pst at pmtempe{\pst at int{\pst at pmtempc}}\else\def\pst at pmtempe{\pst at int{\pst at pmtempd}}\fi
 	\multido{\nA=0+1,\rA=#3+\psk at Dy}{\pst at pmtempe}{%
 	  \ifdim \nA pt < \z@ \def\nB{-\nA}\else \def\nB{\nA}\fi
-          \uput{\psylabelsep}[180]{\pst at yLabelsRot}(0,\rA){%
-            \strut\expandafter\psvlabel\expandafter{\psPutYLabel{\nB}}}}%
+	  \ifnum\psk at ylabelPos=0
+            \uput{\psylabelsep}[180]{\pst at yLabelsRot}(0,\rA){%
+              \strut\expandafter\psvlabel\expandafter{\psPutYLabel{\nB}}}%
+          \else
+            \uput{\psylabelsep}[0]{\pst at yLabelsRot}(0,\rA){%
+              \strut\expandafter\psvlabel\expandafter{\psPutYLabel{\nB}}}%
+          \fi
+        }%  
       \SpecialLabelsDonetrue
     \fi
   \fi



More information about the tex-live-commits mailing list