von stefa » Fr 15. Jun 2012, 18:54
ich habe ein problem, ich habe dieses datei verfasst
\documentclass[12 pt]{article}
\usepackage{amssymb,amsthm,amsmath, pstricks, pst-node, pst-tree,pst-plot, pstricks-add, pgfplots,filecontents, graphicx}
\begin{document}
This should be the graph
\begin{figure}[!htb]
\centering
\psset{llx=-1.2cm,lly=-1cm,xAxisLabel={$N$},xAxisLabelPos={c,-8},yAxisLabel={$c(N)$},yAxisLabelPos={-50,c}}
\begin{psgraph}[Dx=100,Dy=5](0,0)(400,60){10cm}{7cm}
\fileplot[plotstyle=curve,showpoints=true]{cN.txt}
\end{psgraph}
\caption{This is the graph of $c(N)$}
\end{figure}
does it work?
\end{document}
und es gibt dieses datei cN.txt in dem gleichen folder
10.0000 4.4063
20.0000 7.9144
30.0000 10.7714
40.0000 13.3236
ich bekomme als error message
! File ended while scanning use of \pst@@@altreadfile
was ist falsch?
danke!
ich habe ein problem, ich habe dieses datei verfasst
[code]\documentclass[12 pt]{article}
\usepackage{amssymb,amsthm,amsmath, pstricks, pst-node, pst-tree,pst-plot, pstricks-add, pgfplots,filecontents, graphicx}
\begin{document}
This should be the graph
\begin{figure}[!htb]
\centering
\psset{llx=-1.2cm,lly=-1cm,xAxisLabel={$N$},xAxisLabelPos={c,-8},yAxisLabel={$c(N)$},yAxisLabelPos={-50,c}}
\begin{psgraph}[Dx=100,Dy=5](0,0)(400,60){10cm}{7cm}
\fileplot[plotstyle=curve,showpoints=true]{cN.txt}
\end{psgraph}
\caption{This is the graph of $c(N)$}
\end{figure}
does it work?
\end{document}[/code]
und es gibt dieses datei cN.txt in dem gleichen folder[code]
10.0000 4.4063
20.0000 7.9144
30.0000 10.7714
40.0000 13.3236
[/code]
ich bekomme als error message
! File ended while scanning use of \pst@@@altreadfile
was ist falsch?
danke!