I'm using tikz-3dplot to draw a 3d coordinate system and would like to draw dots (small spheres).
With the 2d method I normally use (\draw (0,0) circle (2pt) ), the output is a circle in the xy-plane (an ellipse). Not what I want.
Anyone any idea how to solve that?
Code: Select all
Code, edit and compile here:
\documentclass{standalone}\usepackage{pgf,tikz}\usepackage{tikz-3dplot}\begin{document}\tdplotsetmaincoords{70}{110}\begin{tikzpicture}[scale=.7, tdplot_main_coords]% grid and axes\foreach \i in {1, 2, 3, 4, 5, 6}{\draw[gray] (\i,6,0)--(\i,0,0)--(\i,0,6)(6,\i,0)--(0,\i,0)--(0,\i,6)(6,0,\i)--(0,0,\i)--(0,6,\i);}\draw[thick,->] (0,0,0) -- (6,0,0) node[anchor=north east]{$x$};\draw[thick,->] (0,0,0) -- (0,6,0) node[anchor=north west]{$y$};\draw[thick,->] (0,0,0) -- (0,0,6) node[anchor=south]{$z$};\coordinate (A) at (3,3,0); \coordinate (B) at (2,0,2);\coordinate (C) at (2,0,4); \coordinate (D) at (0,4,3);\foreach \n in {A, B, C, D}\fill[red] (\n) circle(0.15);\end{tikzpicture}\end{document}