Tag Info

New answers tagged

5

The xyz coordinate system can be configured, by specifying xy canvas vectors for x, y, and z. The examples defines the style yzx with a different mapping for the coordinate components: \documentclass{article} \usepackage{tikz} \tikzstyle{yzx} = [ x={(-.385cm, -.385cm)}, y={(1cm, 0cm)}, z={(0cm, 1cm)}, ] \begin{document} ...


0

Another solution with a cross out shaped node from shapes.misc library. In next code, mycross style already fixes node contents={} and uses at={#1} option for setting node's center coordinate. And, as usual, if default settings doesn't like, change them according particular needs. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.misc} ...


6

You can use a pic path and define the command: \documentclass{article} \usepackage{tikz} \tikzset{ myex/.pic = { \draw (-5mm,-5mm) -- (5mm,5mm) (-5mm,5mm) -- (5mm,-5mm); } } \newcommand\MyEx[1][(0,0)]{\pic at #1 {myex};} \begin{document} \begin{tikzpicture} \draw[gray] (-5,-5) grid (5,5); \draw[line width =2pt] % x- and y-axes ...



Top 50 recent answers are included