# tikz-pgf's questions - English 1answer

19.420 tikz-pgf questions.

### 2 Finish an image

0 answers, 19 views tikz-pgf tikz-arrows
I have this image: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,patterns,decorations.pathmorphing,decorations.markings} \begin{document} \tikzstyle{spring}=[thick,decorate,...

### 1 TikZ: Partially dashed curved line

I would like to draw a semi-dashed curved line similar to the line corresponding to \theta_b in the figure below. I used the shorten option there which unfortunately modifies the shape of curved ...

### 3 movie creation using tikz

1 answers, 77 views tikz-pgf loops
I would like to create a movie using tikz images, but it seems a lot of work without some sort of automation. I have a background mesh of triangles, and a red line crossing them. At each of the ...

### 12 Inverting a colormap in pgfplots

1 answers, 2.623 views tikz-pgf pgfplots
I am trying to obtain an inverted version of a given colormap to use in the colorbar of a plot. The code below achieves this specifically for the blackwhite colormap. However, I was looking for a ...

### 11 Clipping a path using a node

I've searched, but I can't find a previous question sufficiently close to this one to find an answer. At the same time, this problem seems like it must have been solved by someone before now, so ...

How can I fade out from a specific point on an object? Consider this MWE: \documentclass[tikz,margin=5pt]{standalone} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture} \fill [red] (0,0) ...

### 4 TikZ draw a line through a point to the intersection of another line

I want to draw a line that goes from A to the point where a line from C in the direction of B would intersect a line parallel to A--B, but some distance away from it (on the opposite side to point C). ...

### 6 Creating a relational database schema

3 answers, 2.856 views tikz-pgf tables database
A database systems book at our school depicts a relational schema like this : I've been trying to recreate a similar schema using LaTeX, so far I use a whole bunch of single-row tabular environments ...

### 17 Tikz: decoration at path end disappears at high bend angles

3 answers, 191 views tikz-pgf tikz-decorations
When I place a decoration at the end of a to path with "bend left=..." or "bend right=...", the decorations disappear at high bend angles: \documentclass[border = 2mm]{standalone} \usepackage{tikz} \...

### Page numbering gone missing after inserting tikz graphics

0 answers, 22 views tikz-pgf labels
I used tikz to draw a diagram in share latex, the diagram that I made saved in a file named net.tex. I have inserted this diagram into a chapter by using \input{net}. The graphics got inserted ...

### 2 Change line style when passing through node (TikZ)

Is it possible to automatically change line style for a portion of a line, if that portion of a line passes through a node? I'm trying to recreate this diagram: Notice how when the arrows pass ...

### 1 node above tikz path does not works with “--” but not “to”

0 answers, 25 views tikz-pgf positioning
I am struggling with the positioning of a node above a tikz path. The path is curved and connects two nodes with "to". Here is a MVE: \documentclass[a4paper,twoside,11pt]{book} \usepackage{tikz} \...

### 2 How to draw a third connecting line in Flow Chart

1 answers, 32 views tikz-pgf flow-charts
I have the following code: \documentclass{article} \usepackage{rotating} \usepackage{tikz} \begin{document} % Define block styles \usetikzlibrary{shapes.geometric, arrows} \tikzstyle{startstop} = ...

### 1 Vertical Line in TikZ Picture

How do I create a vertical line at (0,0) that the graph below loops around? \documentclass{article} \RequirePackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[view={rad(60)}{rad(30)},...

### 5 TikZ: trapezium angle with two text lines

How can I obtain the same angle of an trapezium node with one and two text lines? When I write two lines of text, it always results in a different angle according to the figure below. MWE: \...

### 2 Drawing Multiple Graphs Bolded Point

How can I draw multiple functions on one chart and put a bold point at their intersection? I'd like to add an x^3 in the chart created below and put a bold point at (1,1). \documentclass{article} \...

### 2 Drawing an Arrow

How can I draw an arrow to a specific point on a chart? I'd like an arrow pointing to (1,1) in the chart built in the code below. I found this that specifically looks at a table cell, but I can't get ...

### 2 3D Network Perspective

1 answers, 64 views tikz-pgf 3d
I would like to create an image with a 3d side view style like the one below. My objective is to demonstrate the network architecture with an example input and example output image. How do I get a ...

### 4 Tikz Figure with Adjusted Bounding Box Does Not have Correct Spacing

2 answers, 44 views tikz-pgf spacing tikz-node bounding-box
The \DrawBoundingBox macro draws bounding box around a figure with a 1pt border. In the first figure, produced with \MyNode\MyNode, no tweaks are done to tikz's bounding box. Due to the control ...

### 6 Draw a commutative diagram - compiling error

3 answers, 202 views tikz-pgf flow-charts
I have seen this post for writing commutative diagrams, needed for a chemistry purpose. When trying that latex returns an error. I couldn't get what's going on. Below there is a MWE \documentclass[...

### 1 Nodes on the ends of arrows

1 answers, 36 views tikz-pgf tikz-arrows
I'd like to put some text on the start and end of some arrows, like in the following image (but less ugly): Is there any way to do this without hardcoding the angles or similar?

### 107 Cool Text Highlighting in LaTeX

7 answers, 40.838 views tikz-pgf highlighting
LaTeX has soul. ConTeXt, of course, has beautifully marked up "sharpie" highlighting, where you can put sweet hightligher under your text for free! In the pictured example, you can see highlights ...

### 8 Graph of a matrix for a 2D grid using certain discretization scheme

2 answers, 98 views tikz-pgf tikz-matrix grids
I have a 2D grid which will result in a sparse matrix when discretized with 2nd order central difference scheme using finite difference method (5 point stencil). Is there a way to generate a matrix ...

### 5 Draw rounded lines with tikz

I have drawn a Feynman diagram by tikz using this script \documentclass[tikz,border=3.14pt]{standalone} \usepackage[compat=1.1.0]{tikz-feynman} \usetikzlibrary{backgrounds,calc} \usepackage{tikz} \...

### 3 Separation in nodes in diagram

3 answers, 94 views tikz-pgf tikz-trees forest
I have this nodes diagram. \documentclass[tikz, border=5pt]{standalone} \usepackage{forest} \begin{document} \begin{forest} for tree={ circle, draw } [A [B [...

### 8 Drawing street curve

I have a problem. In order to use a special picture in my seminar paper i need to draw the following picture: The car and the arrows can be neglected but the curvy road exceeds my abilities. Tried to ...

### 3 Tikz drawing problem

I am trying to draw two planes one above the other and a diagonal above them. Currently, I am even unable to draw the two planes one above the other. Here is what I'm doing \begin{figure} \...

### 7 Setting west, east, north, south to position with tikzmark

3 answers, 1.126 views tikz-pgf positioning tikzmark
I'm using the library tikzmark with usetikzlibrary(tikzmark). The following code \newcommand{\DrawCircle}[1]{% \begin{tikzpicture}[overlay,remember picture] \draw[color=red] (pic cs:#1) circle ...

### 3 Negative mathematical expression coordinates

1 answers, 320 views tikz-pgf pgfplots
I only create this: With this: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ axis x line=bottom, axis y line=left, ultra thick, y ...

### Draw a graph with vertex pairs

I want to draw in LaTex a Petersen Graph using Kneser graph K(2,5) notation. And i'll do the same with the hypercube. Like this exemple: How can i do it please ?

### 4 How to recover intersection times?

1 answers, 62 views tikz-pgf decorations
When we use intersections library we can get all intersection positions by naming them. But how can we recover the corresponding intersection times on the "sort by" path ? I know that the ...

### 3 pgfplots - filldraw disappears after adding plot

0 answers, 41 views tikz-pgf pgfplots plot
I have some plots in my graph and want to mark a special area with a square. Here's what the plot looks like: \begin{tikzpicture} \begin{axis}[axis lines = left, xlabel = {Player 1}, ylabel = {...

### 1 draw pentagon graph and labels

I am attempting to generate the following graph. who draw graphs? \documentclass[border=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{shapes.geometric} \begin{...

### 1 Drawing a (4x4)-grid in TikZ using \foreach - riding the wave of \foreach fun

0 answers, 44 views tikz-pgf foreach
How do I draw a 4x4 grid over the following TikZ diagram using \foreach? Is it preferable to do so with one \foreach command? \documentclass{amsart} \usepackage{mathtools} \usepackage{tikz} \...

### 1 fill cylinder in latex

0 answers, 49 views tikz-pgf fillbetween fill
I want to fill the below cylinder same as picture And my code \begin{tikzpicture} \def\a{1} % bán trục lớn = bán kính trụ \def\b{0.3} % bán trục nhỏ \def\h{3} % chiều cao trụ \shadedraw[left ...

### 1 Using TikZ in a browser like MathJax [on hold]

0 answers, 42 views tikz-pgf mathjax
I'm guessing this has been done in a thread before, but I've just spent two hours reading various threads and cannot get my head around a very basic question. Long story short: I'm trying to create ...

### 5 Anchor at the baseline of the last line for a tikz node

1 answers, 55 views tikz-pgf tikz-node
I'd like to place a node with multi-line text using as anchor the eastmost point at the baseline of the last line, without having to manually break the lines. Specifying the node text width breaks ...

### 1 Suset codes in venndiagram package

1 answers, 38 views tikz-pgf venn-diagrams
Looking for ways of doing the following: Drawing set A inside set B; Coloring different sets differently.

### 1 Draw rectangle on absolute coordinates

1 answers, 56 views tikz-pgf coordinates draw
I want to draw some rectangles on my pages. For example a rectangle will be drawn Start from top 5cm, left 4 cm End in 3 cm from right, 2.5 cm from bottom I tried tikzpicture package, but it draw ...

### 1 dot2texi package

0 answers, 44 views tikz-pgf miktex dot2texi
I'm doing some tests with dot2texi and have the following example from the package documentation: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,shapes} \usepackage{dot2texi} \begin{...

### 11 How do I draw an LSTM cell in Tikz?

I am a newcomer to Tikz and have been trying to draw an recurrent neural network Long-Short Term Memory (LSTM) cell in Tikz, but have trouble correctly aligning the boxes I need inside the cell. The ...

### 2 how draw graph in tikz

Based on draw pentagon graph and labels by marmot (Edit Manuel Kuehner) I want to be drawn diagonally from all nodes in the same way as an image. \documentclass[border=1mm]{standalone} \usepackage{...

### 1 pgfplot: Labels on two sides of an axis

1 answers, 37 views tikz-pgf pgfplots
I am attempting to visualize responses of a questionnaire study in which respondents have answered a group of semantic differentials. As such I want to label both ends of each response category, which ...

### tikz node online is not aligned with text nearby [duplicate]

Why does text made by tikz node not align with other text on the same line? That is to say, they are not on the same baseline. And how to solve this? Hereafter is the example code: \documentclass{...

### 5 Forest: What is causing the misalignment?

1 answers, 76 views tikz-pgf forest
\RequirePackage{luatex85} \documentclass[border=1cm]{standalone} \usepackage{fontspec} \usepackage[american]{babel} \usepackage{libertine} \usepackage[edges]{forest} \begin{document} \begin{forest} ...

### Designing a timeline in latex

I'd like to have a timeline like the image in my latex presentation. Can you please help me to do this in latex. Thank you Chana

### 1 Two figures next to each other (Tikz)

1 answers, 62 views tikz-pgf positioning
I have read a couple of questions that are quite close to mine, but I have no idea how to incorporate them in my code. I have two figures and I would like to have them side by side. Could you give me ...

### 8 TikZ callouts with multiple pointers, shadows, opacity and overlay

I would like to have callouts with multiple pointers. These callouts should have an opacity that is different from 1 and drop a shadow. Further, ideally they should come as overlays. There are two ...

### 2 Is pgf/TiKZ “feature complete”? [duplicate]

The last version of TiKZ was 3.0.1, released on 2015-08-29. From what I understand from the code repository here, development is not active at all. I understand this to be a great thing and to mean ...

### 4 How are quadratic Bezier curves drawn by TikZ?

1 answers, 113 views tikz-pgf bezier
I'm trying to understand how exactly Bezier curves are drawn by TikZ. According to wikipedia, the parametrization of a quadratic Bezier curve is given by B(t) = (1 - t) ((1 - t) P0 + t P1) + t ((1 - t)...