Questions tagged [tikz-pgf]

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.

-1
votes
1answer
50 views

How to draw following figure in tikz? [duplicate]

How to draw this using tikz??????
6
votes
2answers
219 views

Draw a line with an isolated and accumulation point in \mathbb{R}

I would like to draw a line where 0 is an fixed accumulation point in \mathbb{R} where the points thicken near it and leave a small trace where you can see the shift to the left of the points. Point ...
3
votes
3answers
59 views

Minimal page size for 2 tikzpictures

I am trying to prepare a graph for a colleague to use. I have created the graph but wanted to crop the white space surrounding it. I have tried to use the standalone document class but this results ...
3
votes
2answers
153 views

Writing exercices in a specific style

Addendum: I've written exercises with a simple box but I want to turn in the picture below style.Here's the code: \documentclass[11pt]{book} \usepackage[top=2cm, bottom=2.5cm, left=2.5cm, right=2....
2
votes
2answers
42 views

Align content in fitted TikZ node

I have a TikZ node positioned between two other nodes using fit: \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \pagestyle{empty} \usepackage{parskip} \newcommand{\mybox}[1]{ \...
1
vote
1answer
23 views

Draw something from a relative coordinate, then return to the coordinate and draw something else

I often want to draw several things relative to one specific coordinate which was reached while drawing a path with TikZ. Is there a way to open up a "scope" from the current position, draw something ...
2
votes
1answer
30 views

Adding brackets below Tikz picture

I currently made the following timeline/picture in Tikz: Which corresponds to the following code: \begin{figure} \caption{Scaling approach} \noindent\begin{tikzpicture} \matrix (M) [ ...
3
votes
1answer
42 views

Pullback diagram of moduli spaces

I asked this question before. Now, I want to enrich the diagram a bit more. I want to draw the pullback family using egreg's answer, but the arrow above looks weird. I just modify his answer: \begin{...
2
votes
3answers
126 views

How to draw this in Latex using Tikz? [duplicate]

How to draw this using Tikz????
2
votes
1answer
44 views

Unable to add multiline in the text box in flowchart

% flowchart drawing \documentclass[a4paper, 12pt]{report} \usepackage{caption} \usepackage{subcaption} \usepackage{float} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} \tikzstyle{rect} =...
2
votes
2answers
221 views

How to extend shading in this figure?

The following figure is meant to be a contour graph. How can I extend the current shading out to the rest of the figure, so that there is shading between all of the lines? Here is the the figure and ...
3
votes
1answer
59 views

Putting Two Tikz Pictures in an Align Environment

I want to put two tikz pictures together like an equation. Here is what I have so far: \documentclass{article} \usepackage{amsmath} \usepackage{pgfplots} \usetikzlibrary{matrix} \usepackage[x11names]{...
8
votes
1answer
74 views

Dihedral action on regular n-gon in tikz

I'm trying to represent the action of the dihedral group(D_{2n} on the regular n-gon in tikz, specifically the action of D_10 on the pentagon. I am hoping to do this by having a labelling and ...
3
votes
1answer
59 views

adding a plot with arrows and marks in pgfplots

edit (14/06): Thanks to the hint of marmot, and based on this answer. I define \markopts in scatter/@pre marker code/.code like this: scatter/@pre marker code/.code={ \pgfmathtruncatemacro{\...
4
votes
1answer
47 views

Why do my branches appear above my nodes in forest?

I'm using forest to draw decision trees, and, if a node has two branches, everything displays as it should. However, once a node has three, the top two branches display above the node. Here's an ...
2
votes
2answers
60 views

Drawing sets with elements

I'm using the following tex to draw some elements in a set using relative positioning: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \...
2
votes
1answer
32 views

Setting default value of zref abspage to avoid arithmetic overflow error while computing rotation of tikz picture logo (picture on every page)

Combing answers from this question: How to use \pageref{foo} as a number? Positioning TikZ picture on page background to be on each page of twosided document I was able to create picture of my logo ...
3
votes
1answer
49 views

Formatting of TikZ matrix

I would like to use TikZ in order to format a table. My goal is to get a table of 4 columns whose overall width is \texwidth (I managed to get almost this by setting the minimum length to 0.25\...
1
vote
1answer
39 views

Quantikz side by side and titles

I have these 3 quantum circuits and want to put the three side by side. Is there a way to do it? I'm using the quantikz package. Is there also a way to put titles in the circuits? \begin{quantikz} &...
1
vote
0answers
33 views

How to draw straight line in a tikz diagram? [duplicate]

I need to draw line from my central node to every other node. I know how to draw from point to point: \draw[darkblue2, thick](virt-manager)--(libVIRT); I know also that I can specify where ...
0
votes
0answers
23 views

Drawing an integration path with Tikz [duplicate]

I have never used Tikz, but I need to draw this contour integration path: I'll sincerely appreciate any help on this.
0
votes
0answers
23 views

tikzposter w/ page break

Is it possible to have page break in a tex poster? I want to be able to add content spanning over multiple A0 posters. Another use would be to smoothly switch between poster sizes and booklet size so ...
1
vote
1answer
40 views

how to combine features of tikz-picture with tikz-cd

I drew a diagram in tikz-cd using the following \begin{tikzcd} & A \arrow[r] & B\arrow[loop above] & C\arrow[l]\\ D\arrow[r] & E\arrow[loop above] & & F\arrow[ul]\\ ...
2
votes
1answer
24 views

2D plot markers TikZ

I am trying to get the same markers as on the picture but they are not the same: \documentclass[tikz,border=3.14pt]{standalone} \usetikzlibrary{calc} \usepackage{pgfplots} \usepackage{pgfplotstable} \...
2
votes
2answers
45 views

fancyhdr in page margins

I want to print text as you would a header on a page but rotated in the left/right margins of the page following a typical book format (print right on odd pages and print left on even pages) using ...
3
votes
2answers
313 views

How to draw a Technology Radar?

How to draw a Technology Radar? Situation and Problem A friend of mine, who is not really into LaTeX has to create a diagram which they call "techonology radar". Apparently there are no best ...
1
vote
1answer
35 views

How to pass position arguments correctly from pic to new command in tikz?

I am currently trying to draw an cannibals and missionaries diagram, so far I have gotten to , but some of my code is inefficient, in particular is there any way to functionize the positioning for the ...
1
vote
1answer
33 views

How to edit the arrow in TIKZ?

How to edit the arrow on the WME to be like the attached image (to have an inclined angle at the corner)? \documentclass[border=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \...
3
votes
1answer
88 views

Is there a template for making memes?

Memes are trivial to generate online. I was wondering however if there is a simple, elegant template for doing it with Latex. I haven't found anything on this. I'm thinking on two ways. One is just a ...
0
votes
0answers
28 views

tikzpicture not showing up

I have this code: \documentclass{article} \usepackage[table]{xcolor} \usepackage{graphicx} \usepackage{tikz} \usepackage{multicol} \usepackage{colortbl} \usepackage[labelformat=empty]{caption} \...
4
votes
3answers
241 views

How to draw this diagram with tikzcd or other packages

I just could draw the one with four arrows up parallel with one longer down also with appropriate spacing: .
1
vote
0answers
24 views

TikZ picture not rendering in different environment

I successfully constructed a TikZ diagram with the following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata, positioning, arrows, shapes} \begin{document} \tikzset{...
1
vote
1answer
47 views

TiKZ drawing / structure like the following one

I need to create the following structure in TiKZ, but I don't know what would be the best approach. Any help/recommendation?
0
votes
1answer
29 views

Arrow in spectral sequence oriented wrongly

I have a spectral sequence make in Tikz, but the arrowhead is oriented strangely, and all the different options I have tried won't correct this. The code is included below: \begin{tikzpicture}\label{...
2
votes
1answer
72 views

How do I draw a simple recurrent neural network with Goodfellow's style?

I need to draw a recurrent neural network that has the same architecture has the following one In other words, a RNN with one input, one single hidden and recurrent unit and one output. However, I ...
2
votes
1answer
38 views

Is there a way to dynamically scale a watermark?

I've done quite a bit of research of trying to scale a watermark based on the text given. The issue is that if I enter a longer string, the text runs off the page. I've tried various packages ...
5
votes
1answer
78 views

Lindenmayer systems in TikZ

Good evening, I am trying to understand how the TikZ library lindenmayersystems works, more precisely I have some problems with the following code, that I tried to make as clear as possible : \...
1
vote
1answer
42 views

TikZ node coordinates (nodeName.number??)

In the following example code: ... \node (naveq) [naveqs] {Navigation equations}; \path (naveq.140)+(-\blockdist,0) node (gyros) [sensor] {Gyros}; ... what does naveq.140 means?
3
votes
1answer
32 views

How can I make diagonal arrows using TikZ for a compartment model flow diagram?

I am trying to create this diagram using TikZ (to make it neater). So far I have the following code. \documentclass[tikz,margin=2mm]{standalone} \usepackage[utf8]{inputenc} \usetikzlibrary{arrows,...
2
votes
2answers
88 views

Title page in book class using tikz

I am trying to design a title page in book class. I want the title page exactly to look like the image attached. It is easily possible to create an array of rectangles in tikz. However I am having ...
5
votes
1answer
56 views

Beamer and `forest`: Dynamically highlight a path from the root to a node in a tree

I would like in a Beamer document to dynamically highlight a path leading from the root of a tree (defined using the forest package) to a specific node by defining a forest style. Below is a minimum ...
2
votes
1answer
67 views

Select color of a bar plot from table value

I'm trying to select the color of a stacked bar plot based on the value of a cell in the line. \documentclass{article} \usepackage{pgfplots, pgfplotstable} \usepackage[utf8]{inputenc} \begin{...
1
vote
1answer
88 views

How to draw network diagrams with lua and tikz?

I was reading this article on drawing with lua and tikz. On page 45 of the article, the author's given an example code demonstrating the way to do so. Here's his lua code: -- File SimpleDemo.lua ...
6
votes
1answer
64 views

TikZ random steps decoration “along a grid”

I'm trying to create certain TikZ-images in which I have random paths from one point to another, such that these random paths follow a square grid. More precisely, I would like to adjust the following ...
3
votes
2answers
372 views

erasing a part of a plot

How is it possible to erase the line (keep it short) that goes up to infinity and use an infinity symbol to indicate so? (Do not touch the rest of the plot and the inserted numbers please if possible.)...
1
vote
1answer
60 views

Tableau proof with boxes

How do I draw a tableau proof like the one in the following picture? I would like to have the boxes with their table-like structure: The numbers on the left side The formulas in the center The other ...
1
vote
0answers
51 views

Trying to draw circle with Radius 30, is 30 pt and not matching with coordinates

I currently have this: \draw[line width = 2mm] (0,0) circle (30 pt); This should be a circle with radius 30. But this is not the case. Indeed, when I want to go from a point on a circle to another ...
1
vote
1answer
19 views

Trying to place text on specific coordinate?

Using tikz, I would like to place a math symbol directly onto a coordinate. I am unsure of how to do this, since it does not appear that I can use the \coordinate command as you need to label it ...
7
votes
1answer
249 views

Deformation of rectangular plot

Can I deform a rectangular plot to a curved plot like \documentclass[tikz, border=0.5cm]{standalone} \begin{document} \begin{tikzpicture} \draw[red] (0,0) grid (5,5); \draw[->, black] (0,...
3
votes
1answer
47 views

Dynamic bar plot from file

I need to draw a bar chart based on the data from the file. The data looks something like this \begin{filecontents*}{tls.dat} Name Abbreviation percentage Bod-Kin LS1 60 Intraper LS2 40 ...