Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
35 views

Drawing a ribbon graph

Given a graph like the one on the right side of the picture below, I want to draw a ribbon graph (that is, a "thickened" version of the graph) like the one on the left. I already drew the graph using ...
1
vote
1answer
17 views

pgfplots: Using “x filter” to decrease point density of plot

The user esdd has posted a nice approach on how to increase point density for a certain range of data points while the remaining plot keeps low point density by using x filter. Minimum Working ...
1
vote
1answer
29 views

How to make a simple line with two sided arrow? [duplicate]

\documentclass[aps,amsmath,article,amsfonts,11pt]{revtex4} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{epsfig,graphicx} \usepackage[english]{babel} \usepackage{amsfonts} \usepackage{...
1
vote
1answer
92 views

How to draw this diagram/graph using tikz?

I have this diagram, and I have tried to draw it doing every dot and line, but I was wondering, is there a way to do it with foreach cycles or something like that? thanks.
1
vote
1answer
26 views

Adding Labels and arrows in Tikz graph

I'm trying to do something similar to this epsilon-delta graph I've found. Specifically, I'd like to copy the placements and arrows, like the L+e and L-e coming out of L. Same thing with the x0 + d ...
1
vote
1answer
29 views

Modifying arcarrow

I have found this PDCA cycle (plan, do, check, act) here http://www.texample.net/tikz/examples/pdca-cycle/ % PDCA cycle % Author: tikzanfaenger, Helmut, and Bartman \documentclass[tikz,border=10pt]{...
0
votes
0answers
36 views

Stata, Python, MS office logos (wordmark/typeset) in LaTeX list or TikZ?

Curious if anyone has built Stata, Python, or MS Office logos/wordmarks/typeset in LaTeX or TikZ? For example, this has been nicely done for R here: New R Logo with Tikz Similar to hologo and dtk-...
5
votes
1answer
98 views

Draw 4 of the same figure in the same tikzpicture

I want to draw this: I have managed to do one of the Hexagons using this code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture}[scale=2,cap=round,>=...
4
votes
1answer
261 views

Drawing spherical mirrors

What is the best way to draw 3D spherical mirrors like these on tikz?
1
vote
0answers
21 views

Evaluate/round a mathematical expression using \input

I want to evaluate a mathematical expression using a number from a different latex document. In this case, number.tex consists of a single number (e.g., 40) that has been exported from a statistical ...
3
votes
1answer
51 views

How do I recreate this two-column TOC layout with chapter goals on the left and TOC on the right

Recently I have been looking through Till Tantau's (the creator of TikZ) script on logic (see here). He uses a beautiful layout at each beginning of a chapter. So I want to recreate the little "...
1
vote
1answer
22 views

How to remove Tikz pgfplot ticks from the top, bottom and right borders?

I am creating a histogram, which I've managed to do with the following code: \begin{tikzpicture} \centering \begin{axis}[ ymin=0, ymax=50, minor y tick num = 2, axis background/.style={...
2
votes
3answers
114 views

Dyck paths with extra diagonals from valleys (Laser construction)

I would like to create a Dyck path in Latex with two additional features. First, I would like to number all the East step except(!) for the last one. Secondly, for each valley (that is, an East step ...
1
vote
1answer
18 views

How to change the label format on x-axis of Tikz pgfplot?

I am trying to make a nice looking histogram of my data, and have managed to produce the following so far: \begin{tikzpicture} \centering \begin{axis}[ ymin=0, ymax=8000, minor y tick num = 2,...
1
vote
1answer
45 views

Mindmap diagram in Beamer

What is the proper way to include a mindmap in Beamer like the following one (adapted from here http://www.texample.net/tikz/examples/computer-science-mindmap/)? Should insert with includegraphics ...
0
votes
1answer
32 views

Modifying a timeline in beamer

I have found the code in this selected answer of this questions How can I make a standard timeline? and I modified it to achieve what I want. \documentclass[svgnames]{beamer} \usepackage[french]{...
5
votes
3answers
79 views

Matrices and TikZ : positioning a table

The idea is to reproduce the figure identically. I played to find the positioning of the blocks of text: is there a more elegant way ? \documentclass[border=10pt]{standalone} \usepackage{tikz} \...
3
votes
2answers
89 views

draw dynamic circle around node and edges

How do I add the red circle as shown in below image but with dashed line circle. I want it to follow the path structure. So far, this is my code: \begin{forest} [$root : s_0$ [$a: s_*$ [$d: s_*$] [$...
6
votes
3answers
492 views

How to draw/optimize this graph with tikz

I would like to know if is there a way to optimize the code that I use to draw the next graph: I do it using this: \documentclass[11pt]{article} \usepackage{tikz} \begin{document} \begin{figure}[h]...
5
votes
1answer
125 views

I want to complete my figure

This is my very simplest MWE, I honestly say that I haven't done anything new. \documentclass{article} \usepackage{tkz-euclide} \begin{document} \begin{figure}[h] \begin{tikzpicture} ...
0
votes
0answers
27 views

My figures has disappeared after using tikz picture in overleaf [on hold]

I have been writing notes to my Calculus I course. These notes include some figures that I constructed using Geogebra, then I upload to my overleaf account. This week I decided to learn more about ...
1
vote
2answers
50 views

Creating an environment

I'm trying to create an environment. The code below performs something similar to what I want. My difficulty is in adjusting the content that will stay within the environment. I would like to reduce ...
0
votes
1answer
59 views

Intersecting a sphere with a line

I would like to replicate the following image in Tikz. Would anybody be able to help me? I've heard that drawing spheres and lines with good coordinate systems are hard...
1
vote
1answer
64 views

Grid in pattern in TikZ

Referring to the answer in How do I fill this area with inclined parallel lines , the pattern is generated with grid lines as well. I am not able to understand the behavior. \documentclass{article} \...
2
votes
1answer
65 views

Direction of Arrows in TikZ

The following TikZ code is for the preparation of flowchart. \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{shapes,shadows,arrows} \usepackage{lscape} \begin{document} \tikzstyle{...
1
vote
1answer
27 views

Two parallel lines between nodes of arbitrary size and position

I would like to draw two parallel arrows between two nodes in TikZ. The difficulty is that the nodes can be of any size and can be arranged in any order. Related: The question Parallel arrows ...
2
votes
1answer
58 views

Square-tiling a torus

I want to use tikz to draw something similar to this: https://www.youtube.com/watch?v=O7qsB5boS7s That is, we tile the tore with squares, we cut it open, twist it and then glue it back again. The ...
0
votes
0answers
13 views

Removing ticks from top, bottom and right-hand side of column chart and rename x-axis labels

I am trying to make a nice looking histogram of my data, and have managed to produce the following so far: \begin{tikzpicture} \centering \begin{axis}[ ymin=0, ymax=8000, minor y tick num = 2,...
1
vote
1answer
26 views

arrow across two tree Tikz

How do i add the dash line between two tree as in image below, \begin{center} \begin{tabular}{p{4cm}p{4cm}} \tikzset{my dbl/.style={double,double distance=2pt}} \centering \begin{forest} for tree={...
2
votes
1answer
34 views

How do I fill this area with inclined parallel lines

I have achieved the following: with the below code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (A) at (0,0); \coordinate (B) ...
1
vote
1answer
28 views

Text positioning in tikz arrow

I'm trying to place correctly some kind of legend below or above an arrow in a circuit. My intention is representing an external stimulus with an arrow and that text. However the only way I've found ...
0
votes
3answers
62 views

Semicircle from a circle in TikZ

Referring to the \clip answer in Drawing a semicircle in TikZ, I wanted to draw a semicircle. But the approach doesn't work here. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \...
1
vote
1answer
39 views

How to label a Huffman Tree with the code given here

\begin{frame} \frametitle{\textbf{Huffman Coding}} \begin{figure} \centering \scalebox{0.6}{ \begin{tikzpicture} \tikzstyle{iv}=[draw,fill=red!50,circle,minimum size=20pt,inner sep=0pt,text=black] \...
0
votes
1answer
27 views

Use of \@next doesn't match its definition

I get the error: Use of \@next doesn't match its definition With the following TikZ code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (A) at (0,0); ...
1
vote
1answer
29 views

Summation of matrix elements / table cells

Using the following code \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usetikzlibrary{calc, fit, matrix} \begin{document} %begin matrix autofit ...
1
vote
1answer
45 views

Unexpected error message (Undefined control sequence. l.18 \xwm@secstopagerange)

The following basic TikZ code is throwing the compilation error via PDFLaTeX: ("C:\fakepath\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/frontendla yer/tikz/libraries\tikzlibrarytopaths.code.tex"...
8
votes
1answer
540 views

Old style “caution” boxes

Technical manuals from the 1960s and 1970s sometimes had eye-catching CAUTION boxes surrounded by wavy or curly lines. My best attempt at re-creating this is not ideal as I can't get the snake to ...
1
vote
1answer
39 views

How to draw a line on a ball?

Basically I want to draw a line from the tip of the z-axis vector to the tip of the red vector. I do not quite know how to do this. This is the code I have so far, I hope someone has an idea on how to ...
1
vote
1answer
22 views

Aligning a rightarrow with path between images in tikzpicture

I would like to know if there is a better way to align the right arrow between Fig 1 and Fig 2. Currently I was able to do it with node[right=2cm]. I wonder why I wasn't able to use the node[midway] (...
1
vote
1answer
20 views

draw arbitrary domain with different colors on the domain boundary

I want to draw an arbitrary domain in tikz with different colors on the boundary. I have managed to draw an arbitrary domain but I am not able to color the boundary properly. here's a picture of how ...
1
vote
1answer
97 views

How to draw small a triangle mesh using tikz?

My question is simple but I haven't been able to find any answers. How can I draw a small a small triangle mesh (4-5) triangles using tikz and label each node and triangle face? This is a diagram ...
2
votes
1answer
26 views

Trying to recreate a graph using Tikzpicture and Pgfplots, doesn't turn out the way I want it to

Trying to recreate this graph: however mine turns out like this: Issues that I am having: The curve doesn't look very smooth and even. Nothing I try to draw (\draw) appears in the figure, I'm ...
2
votes
2answers
34 views

Double line edge using TikZ

How do I draw such tree like this where the some of the edges are double lines using TikZ or any other package? Here is the code: \Tree [.root [.a (i want here to have double edge line)b [.b c ] ] ...
2
votes
1answer
48 views

Setting transparency of background picture in Latex

I am currently creating a short advertisement in Latex. I would like to include a pretty transparent background image for that. Including the background image per se is not the problem, I have ...
4
votes
2answers
177 views

Matrices and TikZ : arrows inside the matrix

In the example below, the arrows fit inside the matrix but I would like them to stop at the limit of the delimiters. \documentclass[border=5pt]{standalone} \usepackage{tikz} \...
0
votes
1answer
28 views

tikz picture: unit instead of penultimate number of the axis

Is there a way to insert the unit instead of the penultimate number of the axis like this? 0 1 2 3 m 5 Thats something my university wants to see in my Bachelor thesis... But after searching ...
2
votes
0answers
33 views

Plot Velocity field having three components with Quiver pgfplots

I am stuck into plotting velocity field having three components. My data file contains velocity values on a plane y=0. My data is in the form. x z u v w where x and z are coordinates on y plane ...
0
votes
1answer
35 views

Changing a tikz figure to have more blocks

I have the following figure: which is generated using the following code: \tikzset{% block/.style = {draw, thick, rectangle, minimum height = 3em, minimum width = 8em, fill=white, text width=...
2
votes
1answer
53 views

Draw an X through a figure

How can I draw a line through Figure 2? I was thinking of trying to draw two lines that cross the figure out, but don't know how I can identify the 4 corners of the figure to do that \documentclass[...
3
votes
2answers
206 views

How to align text above triangle figure

I managed to align my hypotenuse text with the hypotenuse side of my triangle, but I feel like it was done inefficiently using a lot of ~~~~~~ in this line node[above] {$\sqrt{1+x^2}$~~~~~~~} (B) --. ...