From 2ca61ccbc381d0879b2a7873b95e0d2b972a5bd7 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 9 Sep 2010 18:19:12 +0000 Subject: pst-plot 1.18 (16aug10) git-svn-id: svn://tug.org/texlive/trunk@19629 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/generic/pst-plot/Changes | 6 ++ .../doc/generic/pst-plot/more_docs/README | 3 + .../doc/generic/pst-plot/pst-plot-doc.bib | 9 +++ .../doc/generic/pst-plot/pst-plot-doc.pdf | Bin 772306 -> 781008 bytes .../doc/generic/pst-plot/pst-plot-doc.tex | 69 ++++++++++++++++++++- 5 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 Master/texmf-dist/doc/generic/pst-plot/more_docs/README (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/generic/pst-plot/Changes b/Master/texmf-dist/doc/generic/pst-plot/Changes index adbbec4cd19..b0acd0c8652 100644 --- a/Master/texmf-dist/doc/generic/pst-plot/Changes +++ b/Master/texmf-dist/doc/generic/pst-plot/Changes @@ -1,4 +1,10 @@ ----- pst-plot.tex +1.19 2010-08-17 - \def\psk@method{} + to fix a problem with \psplot +1.18 2010-08-15 - added plotstyle ybar + - added optional arguments xLabels, yLabels, + xLabelsRot, and yLabelsRot + - added plotstyle xvalues 1.17 2010-06-22 - fix bug with global setting of arguments in \readdata 1.16 2010-05-14 - allow origin when x axis is not crossing the y axis 1.15 2010-04-29 - fixed bug with double definition of tickstyle diff --git a/Master/texmf-dist/doc/generic/pst-plot/more_docs/README b/Master/texmf-dist/doc/generic/pst-plot/more_docs/README new file mode 100644 index 00000000000..efdfe42fcfd --- /dev/null +++ b/Master/texmf-dist/doc/generic/pst-plot/more_docs/README @@ -0,0 +1,3 @@ +dtk02-1.pdf : Die mathematischen Funktionen von PostScript +dtk02-2.pdf : Die Plotfunktionen von pst-plot +tugboat01-4.pdf : The plot functions of pst-plot diff --git a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.bib b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.bib index ba07f2211ce..64157b2710e 100644 --- a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.bib +++ b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.bib @@ -58,3 +58,12 @@ address = {Heidelberg/Hamburg} } +@Book{PSTricksE, + author = {Herbert Vo\ss{}}, + title = {\texttt{PSTricks} -- {G}raphics and {P}ost{S}cript for \LaTeX}, + edition = {1st}, + publisher = {UIT}, + year = {2010}, + address = {Cambridge -- UK} +} + diff --git a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf index 05e490795bc..e62656fbe01 100644 Binary files a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf and b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.pdf differ diff --git a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex index 1bf58798d87..a82d58c6601 100644 --- a/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex +++ b/Master/texmf-dist/doc/generic/pst-plot/pst-plot-doc.tex @@ -1,4 +1,4 @@ -%% $Id: pst-plot-doc.tex 314 2010-05-14 17:02:16Z herbert $ +%% $Id: pst-plot-doc.tex 369 2010-08-15 08:07:42Z herbert $ \documentclass[11pt,english,BCOR10mm,DIV12,bibliography=totoc,parskip=false,smallheadings headexclude,footexclude,oneside,dvipsnames,svgnames]{pst-doc} \listfiles @@ -474,6 +474,7 @@ An example with ticks on every side of the frame and filled areas: \end{lstlisting} + %------------------------------------------------------------------------------------------- \subsection{The new options for nxLenv{psgraph}}\label{psgraphoptions} %------------------------------------------------------------------------------------------- @@ -679,6 +680,7 @@ redefinition, then do it for \Lcs{pst@@@hlabel} and \Lkeyword{xAxisLabelPos} & (x,y) or empty & \{\Lcs{@empty}\} & \pageref{psgraphoptions}\\ \Lkeyword{xDecimals} & integer or empty & \{\} & \pageref{xydecimals}\\%ok \Lkeyword{xEnd} & integer or empty & \{\} & \pageref{nxend}\\ +\Lkeyword{xLabels} & list & \{\Lcs{empty}\} & \pageref{xLabels}\\ \Lkeyword{xlabelFactor} & anything & \{\Lcs{@empty}\} & \pageref{labelfactor}\\ \Lkeyword{xlabelPos} & \Lkeyval{bottom},\Lkeyval{axis},\Lkeyval{top} & \Lkeyval{bottom} & \pageref{labelpos}\\ @@ -703,7 +705,8 @@ redefinition, then do it for \Lcs{pst@@@hlabel} and \Lkeyword{yAxisLabelPos} & (x,y) or empty & \{\Lcs{@empty}\} & \pageref{psgraphoptions}\\ \Lkeyword{yDecimals} & integer or empty & \{\} & \pageref{xydecimals}\\%ok \Lkeyword{yEnd} & integer or empty & \{\} & \pageref{ystartend}\\ -\Lkeyword{ylabelFactor} & literal & \{\Lcs{@empty}\} & \pageref{labelfactor}\\ +\Lkeyword{yLabels} & list & \{\Lcs{empty}\} & \pageref{xLabels}\\ +\Lkeyword{ylabelFactor} & literal & \{\Lcs{empty}\} & \pageref{labelfactor}\\ \Lkeyword{ylabelPos} & \Lkeyval{left}|\Lkeyval{axis}|\Lkeyval{right} & \Lkeyval{left} & \pageref{labelpos}\\ \Lkeyword{ylogBase} & integer or empty & \{\} & \pageref{ylogbase}\\ @@ -724,6 +727,19 @@ redefinition, then do it for \Lcs{pst@@@hlabel} and } +%------------------------------------------------------------------------------------------- +\subsection{Option \nxLkeyword{xLabels}, \nxLkeyword{yLabels}, + \nxLkeyword{xLabelrot}, and \nxLkeyword{yLabelrot}}\label{xLabels} +%------------------------------------------------------------------------------------------- +\xLkeyword{xLabels}\xLkeyword{yLabels}\xLkeyword{xLabelRot}\xLkeyword{yLabelRot} +\begin{LTXexample}[pos=b] +\psset{xunit=0.75} +\begin{pspicture}(-2,-2)(14,4) +\psaxes[xLabels={,Kerry,Laois,London,Waterford,Clare,Offaly,Galway,Wexford,Dublin,% + Limerick,Tipperary,Cork,Kilkenny},xLabelsRot=45,yLabels={,low,medium,high}](14,4) +\end{pspicture} +\end{LTXexample} + %------------------------------------------------------------------------------------ \subsection{Option \nxLkeyword{yMaxValue}}\label{yMaxValue} @@ -2430,7 +2446,36 @@ total width. \end{pspicture} \end{LTXexample} -\clearpage +%-------------------------------------------------------------------------------------- +\subsection{Plot style \nxLkeyword{ybar}}\label{options:ybar} +%-------------------------------------------------------------------------------------- +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] + +\psset{llx=-1.5cm,lly=-1.5cm,xAxisLabel=\textbf{Frequency of Winning the Final}, + xAxisLabelPos={c,-1cm},yAxisLabel=,yLabels={,Kerry,Laois,London,Waterford,Clare,Offaly, + Galway,Wexford,Dublin,Limerick,Tipperary,Cork,Kilkenny}} +\begin{psgraph}[axesstyle=frame,labels=x,ticksize=-4pt 0,Dx=5](0,0)(35,14){10cm}{7cm} + \listplot[plotstyle=ybar,fillcolor=blue!20,linecolor=blue,barwidth=4mm,fillstyle=solid]{\data} + \listplot[plotstyle=xvalues,labelsep=5pt]{\data} +\end{psgraph} +\end{center} + +\begin{lstlisting} +\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] + +\psset{llx=-1.5cm,lly=-1.5cm,xAxisLabel=\textbf{Frequency of Winning the Final}, + xAxisLabelPos={c,-1cm},yAxisLabel=,yLabels={,Kerry,Laois,London,Waterford,Clare,Offaly, + Galway,Wexford,Dublin,Limerick,Tipperary,Cork,Kilkenny}} +\begin{psgraph}[axesstyle=frame,labels=x,ticksize=-4pt 0,Dx=5](0,0)(35,14){10cm}{7cm} + \listplot[plotstyle=ybar,fillcolor=blue!20,linecolor=blue,barwidth=4mm,fillstyle=solid]{\data} + \listplot[plotstyle=xvalues,labelsep=5pt]{\data} +\end{psgraph} +\end{lstlisting} + %-------------------------------------------------------------------------------------- \subsection{Plotstyle \nxLkeyval{LSM}}\label{LSM} %-------------------------------------------------------------------------------------- @@ -2576,6 +2621,24 @@ everything behind this box is not seen. \end{pspicture} \end{LTXexample} + +\subsection{Plotstyles \nxLkeyval{xvalues} and \nxLkeyval{xvalues*}}\label{xvalues} +This is similiar to the options \Lkeyval{values}, except that it plots the $x$-values +instead of the $y$-values. This maybe useful when also using the plotstyle \Lkeyval{ybar} +(see~Section\vref{options:ybar}). + +\medskip +\begin{LTXexample}[width=7cm] +\begin{pspicture}(-2.5,-.5)(2.5,5.5) + \psaxes{->}(0,0)(-2,0)(2,5.5) + \psplot{-2}{2}{x dup mul } + \psplot[plotstyle=xvalues, + plotpoints=10]{-2}{2}{x dup mul } +\end{pspicture} +\end{LTXexample} + + + \clearpage %-------------------------------------------------------------------------------------- \section{Polar plots}\label{polarplots} -- cgit v1.2.3