[pstricks] listplot

Poul Riis poul.riis at skolekom.dk
Sat Jul 1 23:10:18 CEST 2017


Graphics with PSTricks <pstricks at tug.org> writes:
>give a _complete_ example!
Here is one (data file attached):

\documentclass{article}
\usepackage[ansinew]{inputenc}
\usepackage[danish]{babel}
\usepackage[T1]{fontenc}
\usepackage[dvips,x11names]{xcolor}
\usepackage{pst-tools}
\usepackage{pstricks-add}
\usepackage{multido}
\usepackage[top=2cm,bottom=2cm,left=2cm,right=1.5cm]{geometry}

\thispagestyle{empty}

\begin{document}
\readdata{\data}{simon.dat}
\psset{xAxisLabel=Time (minutes),yAxisLabel=Load
(W),xAxisLabelPos={c,-10},yAxisLabelPos={-5,c}}%

\begin{psgraph}[axesstyle=frame,xticksize=0 110,yticksize=0
100,Dx=10,Dy=10,xsubticks=5,subticksize=1](0,0)(100,110){15cm}{11cm}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Here is the beginning of what I want:
\psline[linecolor=Red1,fillcolor=Cornsilk1,fillstyle=solid,linewidth=1pt](0,0)(0,30)(4,30)(4,0)(4,40)(8,40)(8,0)(8,50)(12,50)(12,0)(12,60)(16,60)(16,0)(16,70)(20,70)(20,0)(20,80)(24,80)(24,0)(24,100)(25,100)(25,0)%(x1,0)(x1,y2)(x2,y2)(x2,0)(x2,0)(x2,
y3)(x3,y3)(x3,0)....
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% But of coarse it is cumbersome to type all the data manually...
%...compared to a listplot that can be done automatically with data from
file:
\listplot[linecolor=Blue1, linewidth=2pt]{\data}

\psline[arrows=->](0,0)(100,0)
\psline[arrows=->](0,0)(0,110)
\end{psgraph}
\end{document}


But as I mentioned earlier I would like more generally to be able to get
the coordinates of point no. i from the data in postscript format.

Poul Riis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20170701/384e1ae8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simon.dat
Type: application/octet-stream
Size: 289 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20170701/384e1ae8/attachment.obj>


More information about the PSTricks mailing list