Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 8650

TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.

5 votes

How to build parallel paths between nodes?

I have used postactions to draw two aditional lines, and shortened them to make the endpoints fit. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \tikzstyle{block} = …
hpekristiansen's user avatar
1 vote
Accepted

align image at the top right corner

\documentclass[tikz, border=1cm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[draw, red, align=right, inner sep=0pt, text width=400pt, text depth=200pt] {\includegraphics[w …
hpekristiansen's user avatar
4 votes
Accepted

How to draw a bar (a filled rectangle of a very small height, just like a node of shape "lin...

The inner sep node option is a node padding, that insures space between node text and node border. By setting it to zero, you can control the node height with minimum height as wished. This code: \t …
hpekristiansen's user avatar
3 votes

What does "$ (b)!1cm!270:(a) $"mean?

P.151 in the manual: ⟨coordinate⟩!⟨dimension⟩!⟨angle⟩:⟨second coordinate⟩ When you write ⟨a⟩!⟨dimension⟩!⟨b⟩, this means the following: Use the point that is distanced ⟨dimension⟩ from ⟨a⟩ on the str …
hpekristiansen's user avatar
2 votes

Remove fixed width

\pgfmathsetlengthmacro{\MyAxisW}{10cm} is removed. Inside the axis all references to \MyAxisW is replaced with \pgfkeysvalueof{/pgfplots/width}. After the axis, \MyAxisW is then defined with \path …
hpekristiansen's user avatar
4 votes
Accepted

Surround numbers with a frame

\documentclass[tikz, border=1cm]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \node (n) {13}; \draw let \p1=(n.east), \p2=(n.center), \n1={veclen(\x2-\x1,\y2-\y1)} in (\p1) a …
hpekristiansen's user avatar
3 votes
Accepted

Drawing a custom neural network using tikz

\documentclass[tikz, border=1cm]{standalone} \usetikzlibrary{positioning, calc, arrows.meta} \begin{document} \begin{tikzpicture}[ state/.style={draw, circle, minimum size=0.8cm, inner sep=0pt}, arrow …
hpekristiansen's user avatar
1 vote

How to adjust the size of the subscript

It has nothing to do with the tikzpicture. You should use e.g. \scriptstyle instead of \tiny for math - see e.g. Reducing font size in equation \documentclass{article} \usepackage{tikz} \begin{documen …
hpekristiansen's user avatar
1 vote

tikz: How to position adjacent (node) boxes with variable widths?

This solution does not use kerning or ligatures. For a tight box, use inner sep=0pt. Everything here is in one tikzpicture \documentclass[tikz, border=1cm]{standalone} \begin{document} \begin{tikzpict …
hpekristiansen's user avatar
4 votes

Draw L-Shaped Half Cylinder

\documentclass[tikz, border=1cm]{standalone} \usepackage{tikz-3dplot} \tdplotsetmaincoords{70}{130} \begin{document} \begin{tikzpicture}[tdplot_main_coords] \draw[fill=cyan!50, canvas is xy plane at z …
hpekristiansen's user avatar
10 votes

TikZ - Is it possibe to drape an image on face of a solid?

\documentclass[tikz, border=1cm]{standalone} \begin{document} \begin{tikzpicture}[inner sep=0pt, outer sep=0pt, line join=bevel] \node[draw, ultra thick, anchor=north east, yslant=-0.5] {\includegraph …
hpekristiansen's user avatar
2 votes
Accepted

Improve flowchart (aequidistant boxes, endposition/bend of arrows)

\documentclass[tikz, border=1cm]{standalone} \usepackage{amsmath} \usetikzlibrary{shapes, calc, arrows.meta} \begin{document} \tikzset{ block1/.style ={rectangle, rounded corners, minimum width=3cm, …
hpekristiansen's user avatar
11 votes
Accepted

Plot intersection point of two curves

You need to draw it in one curve to have a line join=miter(default) that looks good. Then you might as well close the curve, so you can fill it. So you do not need fillbetween. You are also not really …
hpekristiansen's user avatar
8 votes

Creating nonclassical shape in Latex

\documentclass[tikz, border=1cm]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \clip (0,0) circle[radius=2]; \foreach \i in {0,...,5}{ \fill[blue!40!black, rotate=\i*360/6] ( …
hpekristiansen's user avatar
9 votes
Accepted

How to draw a rectangle minus a circle using tikz

\documentclass[tikz, border=1cm]{standalone} \usetikzlibrary{shadows} \begin{document} \begin{tikzpicture}[very thick] \newcommand{\myr}{0.5 cm} \newcommand{\myx}{4 cm} \newcommand{\myy}{3 cm} \fill[w …
hpekristiansen's user avatar

1
2 3 4 5
33
15 30 50 per page