这是我做的图,我想在坐标轴原点画一个向外的箭头点来表示x轴,但是这个图中向外的箭头点太细了,我想加粗点的大小和圆的粗细,怎么办?
其中 $x$ 距离坐标原点很远,我想让它位于原点的左下方,我该怎么办,这是我的代码
\documentclass[tikz,border=2pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{xparse}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[x={(10cm,0)},y={(0,1cm)}]
\draw [-stealth](0,0) --++ (0,1.5cm) node [left] {$y$};
\draw [-stealth](0,0) --++ (1.5cm,0) node [below] {$z$};
\node (123) at (0,0) {$\odot$};\node [ below left=of 123] {$x$};
\end{tikzpicture}
\end{document}
答案1
要控制点的大小,请在原点处放置一个实心圆,并使用minimum size
设置其大小。与圆类似(现在draw
代替fill
),并使用例如thick
获得更粗的线条。
\documentclass[tikz,border=2pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{xparse}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[x={(10cm,0)},y={(0,1cm)}]
\draw [-stealth](0,0) --++ (0,1.5cm) node [left] {$y$};
\draw [-stealth](0,0) --++ (1.5cm,0) node [below] {$z$};
\draw [-stealth](0,0) --++ (-1.0cm,-1.0cm) node [right] {$x$};
\node[circle,draw, thick, inner sep=0pt,minimum size= 10pt] at (0,0){};
\node[circle, fill, inner sep=0pt, minimum size= 4pt] at (0,0) {};
\end{tikzpicture}
\end{document}
由于节点为空,因此可以使用形状获得类似的结果:
\draw[line width=0.8pt, inner sep=0pt] (0,0) circle [radius=5pt];
\draw[fill,inner sep=0pt] (0,0) circle [radius=1.5pt];
更新后续问题之后:文本 $x$ 位于原点的左下方。
\documentclass[tikz,border=2pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{xparse}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[x={(10cm,0)},y={(0,1cm)}]
\draw [-stealth](0,0) --++ (0,1.5cm) node [left] {$y$};
\draw [-stealth](0,0) --++ (1.5cm,0) node [below] {$z$};
\node(cir)[circle,draw, line width=0.5pt, inner sep=0pt,minimum size= 8pt] at (0,0){};
\node [circle, fill, inner sep=0pt, minimum size= 3pt] at (0,0) {};
\node[below left=0pt and 0pt of cir, anchor= north east] at (0,0) {$x$};
\end{tikzpicture}
\end{document}