
私は初心者なので、答えはおそらく非常に簡単です。
以下のコードがありますが、2 つの問題が発生します。
x 軸と y 軸のラベルがランダムな場所にありますか?
指定された座標は正しい座標でレンダリングされません。
修正:
- 指定された座標は、間違った座標でレンダリングされません。
アドバイス、ヘルプ、ヒントなどありましたら、ぜひお願いします。
ありがとう。
\psset{xAxisLabel=LABELX,yAxisLabel=LABELY, xAxisLabelPos={c,-0.8},yAxisLabelPos={-0.06,c},xunit=40cm,yunit=0.1cm}
\begin{pspicture}(0,70)(0.0,10.0)
\psgrid[subgriddiv=1, gridcolor=white,griddots=10,gridlabels=0pt]
\psaxes[Dx=0.05, Dy=10, labelFontSize=\scriptscriptstyle](0,0)(0,0)(0.251,100.0)
\begin{psgraph}[](0.25,0.9){5cm}{1cm}
\psline[linewidth=1.0pt, showpoints=true, dotstyle=o, fillcolor=cyan](0.240608234,0)(0.209576383,1)(0.206539843,2)(0.190312769,3)
\end{psgraph}
\end{pspicture}
答え1
\documentclass[11pt]{article}
\usepackage{pst-all}
\begin{document}
\psset{xAxisLabel=Similarity score,yAxisLabel=Number correct, xAxisLabelPos={c,-10},yAxisLabelPos={-0.03,c},xunit=40cm,yunit=1cm}
\begin{psgraph}[Dx=0.1,Dy=10](0,0)(0,0)(0.25,100){10cm}{10cm}
\psline[linewidth=1.0pt](0.240608234,0)(0.209576383,1)(0.206539843,2)
\end{psgraph}
\end{document}
答え2
答えはこうです:
\documentclass[11pt]{article}
\usepackage{pst-all}
\usepackage{pst-plot,filecontents}
\begin{document}
\psset{xAxisLabel=Similarity score,yAxisLabel=Number correct, xAxisLabelPos={c,-10},yAxisLabelPos={-0.06,c},xunit=40cm,yunit=1cm}
\begin{pspicture}
\psgrid[subgriddiv=1, gridcolor=white,griddots=10,gridlabels=0pt]
\begin{psgraph}[Dx=0.1,Dy=10](0,0)(0,0)(0.25,100){10cm}{10cm}
\psline[linewidth=1.0pt, showpoints=false, dotstyle=o, fillcolor=cyan](0.240608234,0)(0.209576383,1)(0.206539843,2)
\end{psgraph}
\end{pspicture}
\end{document}