von Klaus » Di 17. Dez 2013, 10:05
Hallo Johannes,
here we go:
%
% mb.tex
%
\documentclass{scrartcl}
\usepackage{pstricks,pstricks-add}
\usepackage{pst-plot}
\usepackage{xcolor}
\usepackage{filecontents}
\begin{filecontents}{data.dat}
86.5 46299.5
85.3 46167.9
81.6 46333.9
67.8 46663.1
\end{filecontents}
\pagestyle{empty}
\begin{document}
\readdata[nStep=1]{\data}{data.dat}
\begin{pspicture}(0,0)(12cm,12cm)
\psset{llx=-2cm,lly=-2cm}
\begin{psgraph}[ylogBase=10,Oy=-1,Dx=10]{->}(0.0,-1)(110.0,5.1){12cm}{7cm}
\pstScalePoints(1,1){}{ dup 0 gt { log }{ pop 1.0e-1 log } ifelse }
\listplot[linecolor=red,linewidth=1pt,%
yEnd=100000,dotstyle=o,showpoints=true,fillcolor=red,dotscale=2,plotstyle=LineToXAxis]
{\data}
\end{psgraph}
\end{pspicture}
\end{document}
%
% End of File
%
Gruß,
-- Klaus.
Hallo Johannes,
here we go:
[code]
%
% mb.tex
%
\documentclass{scrartcl}
\usepackage{pstricks,pstricks-add}
\usepackage{pst-plot}
\usepackage{xcolor}
\usepackage{filecontents}
\begin{filecontents}{data.dat}
86.5 46299.5
85.3 46167.9
81.6 46333.9
67.8 46663.1
\end{filecontents}
\pagestyle{empty}
\begin{document}
\readdata[nStep=1]{\data}{data.dat}
\begin{pspicture}(0,0)(12cm,12cm)
\psset{llx=-2cm,lly=-2cm}
\begin{psgraph}[ylogBase=10,Oy=-1,Dx=10]{->}(0.0,-1)(110.0,5.1){12cm}{7cm}
\pstScalePoints(1,1){}{ dup 0 gt { log }{ pop 1.0e-1 log } ifelse }
\listplot[linecolor=red,linewidth=1pt,%
yEnd=100000,dotstyle=o,showpoints=true,fillcolor=red,dotscale=2,plotstyle=LineToXAxis]
{\data}
\end{psgraph}
\end{pspicture}
\end{document}
%
% End of File
%
[/code]
Gruß,
-- Klaus.