[pstricks] dotstyle against dashed line

Herbert Voss Herbert.Voss at FU-Berlin.DE
Tue Dec 22 15:47:48 CET 2009


Am 17.12.2009 16:19, schrieb mathias legrand:

> would the follwoing feature be implemented sometimes soon in pstricks?
> 
> Let's say you get a numerical result with 2000 ponts and want to plat it
> as follows:
> 
> \dataplot[plotstyle=line,showpoints=true,dotstyle=triangle,]{\mydata}
> 
> You will get 2000 triangles, correct?
> 
> The feature in question would be to define more dashed lines possibly
> involving
> triangles, squares or circles where the pattern would be independent of
> the number of points
> (triangles would be regularly spaced along the final line)

with the pstricks.tex from
http://archiv.dante.de/~herbert/PSTricks-TDS/tex/generic/pstricks/
you can use "linestyle=symbol" and "symbol=a". It uses the dingbats
symbols
http://www.nefec.org/upm/sdbps.htm
letter a is the char065

For a plot you have to use "plotstyle=line,linestyle=symbol"

Other valid optional arguments with their defaults are
symbolStep=20pt
symbolWidth=10pt

here is the code for the attaches example:

\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{pstricks-add}%
\input{pstricks-add-doc.dat}

\begin{document}

\pspicture(6,4)
\psline[linestyle=symbol,linecolor=red](0,0)(0,4)(6,4)(6,0)(0,4)
\endpspicture

\vspace{1cm}
\readdata{\data}{demo2.data}%
\readdata{\dataII}{demo3.data}%
\psset{llx=-1cm,lly=-1.25cm,urx=0.5cm,ury=0.1in,xAxisLabel=Year,%
   yAxisLabel=Whatever,xAxisLabelPos={c,-0.4in},%
   yAxisLabelPos={-0.4in,c}}
\pstScalePoints(1,1){1989 sub}{}

\begin{psgraph}[axesstyle=frame,Ox=1989,
  subticks=2](0,0)(12,6){0.8\linewidth}{2.5in}%
\psset{linestyle=symbol,symbolStep=10pt,symbolWidth=7pt}
\listplot{\data}%
\listplot[symbol=v]{\dataII}%
\listplot[symbol=H,yunit=0.5]{\dataII}%
\end{psgraph}

\fontencoding{U}\fontfamily{pzd}\selectfont
ABCDEFGHIJKLMNOPQRSTUVWXYZ\\
abcdefghijklmnopqrstuvwxyz
\end{document}

Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xx.png
Type: image/png
Size: 44128 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20091222/e7a1bc05/attachment-0001.png>


More information about the PSTricks mailing list