# Tag Info

2

As already mentioned by @DG, remove the axis environment \documentclass[10pt]{article} \usepackage{tikz} \usepackage{mathrsfs} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm] \draw [->,line width=2.pt] (5,3.6)node[below]{$O$} --node[above left]{$\overrightarrow{OP}$...

2

the angles library explicitly puts some part of the code in the background and some other the foreground. You could write your own pic based on the code: \documentclass[border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{angles,backgrounds} \makeatletter \tikzset{ pics/backangle/.style = { setup code = \tikz@lib@angle@parse#1\pgf@stop, ...

1

A simplified example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[->, xshift=1cm, local bounding box=x] (0, 0) -- (1, 1); \draw[blue, dashed] (x.south west) rectangle (x.north east); \end{tikzpicture} \end{document} In PGF 3.1.5b, the latest released PGF in Jun 2020, \pgf@path@size@hook is executed ...

1

This is not the answer, just some examples to show the problem. teal box: local bounding box brown box: current bounding box Problem First path with arrow seems to extend the local bounding box. \documentclass[tikz, border=5cm]{standalone} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture} \begin{scope}[scale = 1, shift = {(3 ,1)}, local bounding ...

1

I do not know the definition of \cm in your code, so I remove it. You can use label to place another node around original node. See pgfmanual sec 17.10.2 The Label Option. \documentclass[tikz, border=1cm]{standalone} \begin{document} \begin{tikzpicture}[level/.style={sibling distance=80mm/#1}] \node[circle,draw,label={[red]above:{1}}](z){$50$} child {...

1

You need to wrap the text which contains special characters such as blank space, [ or ] ect. with parentheses {...}. \documentclass[tikz, border=1cm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \begin{document} \begin{tikzpicture} \begin{axis}[ ybar, bar width=20pt, % nodes near coords, nodes ...

Top 50 recent answers are included