
저는 초보자이기 때문에 대답은 아마도 매우 간단할 것입니다.
아래 코드가 있는데 두 가지 문제가 발생합니다.
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}