Code:
\listfiles
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{pst-all}
\usepackage{pstricks-add}
\usepackage{auto-pst-pdf}
\begin{document}
\begin{figure}
\begin{postscript}
\newlength\xlength \setlength\xlength{13cm}
\newlength\ylength \setlength\ylength{8cm}
\def\xmin{500}
\def\xmax{3000}
\def\ymin{0}
\def\ymax{5}
\makeatletter
\def\myxunit{
\pst@number\xlength \pst@number\ylength sub
}
\makeatother
\psset{
xAxisLabelPos={c,-0.9cm},
yAxisLabelPos={-1.2cm,c},
xAxisLabel=Kanal \(\pi\),
yAxisLabel=Ereignisse
}
\begin{psgraph}[
axesstyle=frame,
comma=true,
ylogBase=10,
logLines=y,
Dx=500,
Dy=1,
Ox=500,
Oy=0,
showorigin=true,
linewidth=1pt,
ticks=all,
tickstyle=inner,
ysubticks=10,
xsubticks=5,
xticksize=5pt,
% xticklinestyle=dotted,
yticksize=5pt,
subticksize=0.5,
tickwidth=1pt,
linecap=1,
subtickcolor=black,
subtickwidth=1pt,
labels=all
](\xmin,\ymin)(\xmax,\ymax){\xlength}{\ylength}
\psgrid[
xunit=2.6cm,
yunit=1.6cm,
griddots=20,
subgriddiv=0,
gridlabels=0pt,
gridwidth=0.5pt,
gridcolor=black
](1,0)(6,5)
\readdata[nStep=10]{\data}{Daten_Caesium_test.txt}
\pstScalePoints(1,1){}{dup 0 gt {log} if}
\listplot[
plotNoMax=1,
plotNo=1,
nStep=1,
plotstyle=dots,
dotstyle=*,
dotsize=1pt,
linecolor=black,
linewidth=0.5pt,
showpoints=true,
xStart=\xmin,
xEnd=\xmax
]{\data}
\rput[tl](3cm,7.5cm){
\psframebox[linewidth=0.3pt,fillcolor=white,fillstyle=solid]{
\psset{unit=1cm}
\begin{pspicture}(2,0.2)
\psdot[dotsize=1pt,linecolor=black](0,0.1)
\uput[r](0,0.1){Messdaten}
\end{pspicture}
}
}
\end{psgraph}
\end{postscript}
\caption{Image done with pstricks.}
\end{figure}
\end{document}
Lesezeichen