[pstricks] lsm
Poul Riis
Poul.Riis at skolekom.dk
Thu Apr 9 11:30:53 CEST 2009
Oh, sorry, I looked - but not carefully enough.
However, the xStart and xEnd works in the semilog but not in the doublelog
case below (error message from ghostview).
Poul Riis
\documentclass{article}
\usepackage{filecontents}
\usepackage[dvips,svgnames,x11names]{xcolor}
\usepackage{pstricks-add}
\usepackage{geometry}
\topmargin=-2cm
\textheight=27cm
\begin{filecontents*}{semilog.dat}
80 340
160 450
320 550
640 1150
\end{filecontents*}
\begin{filecontents*}{doublelog.dat}
10 100
20 150
40 225
80 340
160 570
320 765
640 1150
\end{filecontents*}
\begin{document}
\readdata{\semilogdata}{semilog.dat}
\readdata{\doublelogdata}{doublelog.dat}
\pstScalePoints(1,1){}{log}
\psset{llx=-0.5cm,lly=-0.5cm}
\psgraph[ylogBase=10,Dx=100](0,2)(800,4){12cm}{8cm}
\psaxes[logLines=y,ylogBase=10,tickcolor=Blue4,subtickcolor=Blue1,tickwidth=1pt,ysubticks=10,labels=none,dx=100,xsubticks=10,xticksize=0
2,subticksize=1](0,2)(800,4)
\listplot[linecolor=red, linewidth=2pt,
showpoints=true,linestyle=none]{\semilogdata}
\listplot[plotstyle=LSM,linecolor=green,xStart=0,xEnd=800]{\semilogdata}
\endpsgraph\\[1cm]
\pstScalePoints(1,1){log}{log}
\psset{llx=-0.5cm,lly=-0.5cm}
\psgraph[xylogBase=10](1,2)(3,4){10cm}{10cm}
\psaxes[logLines=all,tickcolor=Red2,subtickcolor=Orange,tickwidth=1pt,ysubticks=10,labels=none,xsubticks=10,xticksize=0
2,yticksize=0 2,subticksize=1](1,2)(3,4)
\listplot[linecolor=Blue2, linewidth=2pt,
showpoints=true,linestyle=none]{\doublelogdata}
\listplot[plotstyle=LSM,linecolor=green,xStart=1,xEnd=3]{\doublelogdata}
\endpsgraph
\end{document}
More information about the PSTricks
mailing list