我想用直线绘制这个坐标...你能帮我一个忙吗?
答案1
尝试这个快速解决方案:
\documentclass[12pt,border=0.125cm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[line width=0.7pt,p/.style={circle,fill,inner sep=1.5pt}]
\draw (1,0)node[yshift=-1cm]{$\mathcal{R}(A)$} -- (9,0)node[yshift=1cm,left]{$Ax_{1s}$} (5,4)--(5,-4) (1,-2)--(9,2);
\draw [dashed](7,1)node[p]{}--node[right]{$r$} ++(-7mm,14mm)node[p,label=left:$y$]{};
\end{tikzpicture}
\end{document}
输出:
答案2
PSTricks 的免费答案。编译为xelatex
方便您使用或为latex->dvips->ps2pdf
方便我使用。
选项1
\documentclass[pstricks,border=12pt,12pt]{standalone}
\usepackage{pst-eucl}
\begin{document}
\begin{pspicture}(-5,-5)(5,5)
\psline(-5,0)(5,0)
\psline(0,-5)(0,5)
\pstGeonode[PointName=none,PointSymbol=none](5;-150){A}(5;30){B}
\psline(A)(B)
\pstGeonode
[PointName={none,default},PosAngle=180,CurveType=polyline,linestyle=dashed]
([nodesep=7]{B}A){temp}([offset=1,nodesep=7]{B}A){y}
\rput([nodesep=1,offset=1]{B}A){$\mathcal{R}(A)$}
\rput([nodesep=8,offset=-1]{B}A){$Ax_{1s}$}
\end{pspicture}
\end{document}
选项 2
未加载任何包。
\documentclass[pstricks,border=12pt,12pt]{standalone}
\begin{document}
\begin{pspicture}(-5,-5)(5,5)
\psline(-5,0)(5,0)
\psline(0,-5)(0,5)
\rput{40}(0,0){%
\psline(-5,0)(5,0)%
\qdisk(2,0){2pt}%
\qdisk(2,1){2pt}%
\psline[linestyle=dashed](2,0)(2,1)%
\rput[0]{*0}(2.25,0.5){$r$}%
\uput[180]{*0}(2,1){$y$}%
}
\rput(-4,-2){$\mathcal{R}(A)$}
\rput(3,1){$Ax_{1s}$}
\end{pspicture}
\end{document}