
我是新手,所以答案可能很簡單。
我有下面的程式碼,它給了我兩個問題:
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}