Questions tagged [tikz-graphdrawing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
14
votes
3answers
5k views

Can I reproduce this in Latex

Is there an easy way to reproduce the following image in latex?
11
votes
2answers
621 views

TikZ Make a graphical balance for equations

I'd like to be able to draw a white = inside of the triangle, be able to rotate the balance and the equation and place the equations symmetrical yet not to close to the edge. It's quite hard for me. \...
11
votes
1answer
3k views

How to draw this graph using the tikz `graphdrawing` library?

I tried many times but failed to draw the graph below using the tikz graphdrawing library. I am quite confused, especially by its "layouts" concepts. Problem: How to draw the graph below using ...
9
votes
3answers
737 views

Drawing a function without knowing its definition

I don't know TikZ in depth so I barely can play with it. The following is a transfer characteristic of an inverter gate. I have researched on the Internet to find the function's explicit definition ...
9
votes
1answer
229 views

Why does a perfectly-identical repetition of a drawing command given within an earlier loop 𝘯𝘰𝘵 produce exactly the same line?

Question. Why does the following code produce a line from vertex 0 to vertex 1 which does not perfectly coincide with the analogous line drawn earlier (by way of the foreach-loop)? \begin{...
9
votes
3answers
406 views

How can I create a diagram in tikz that contains both images, blocks of text and tikzpictures, which are all connected by arrows?

I would like to draw a diagram that contains both an image, two blocks of text and a tikzpicture. More precisely, it should look as follows Image -> Rectangle with text -> Tikzpicture -> ...
8
votes
3answers
5k views

How to Draw a Bloch Sphere?

Is there any good way of drawing a bloch sphere as shown below? In particular, I am looking for a transparent sphere. I am aware there is a blochsphere package but it is opaque.
8
votes
2answers
555 views

Division of curved edges in tikz

I need to divide an edge into a number of equal parts. I have the following way to do this for straight edges: \begin{tikzpicture} [very thick, transform shape, scale=.2, rect/....
8
votes
1answer
1k views

Fresh install of TL2018: no tikz graph drawing libraries found

On a fresh install of TL 2018, on Linux, no tikz graph drawing libraries can be found. The files, e.g. texlive/2018/texmf-dist/tex/generic/pgf/graphdrawing/tex/pgflibrarygraphdrawing.trees.code.tex ...
8
votes
3answers
700 views

Drawing an isosceles trapezoid with perpendicular diagonals

I need to draw an isosceles trapezoid with perpendicular diagonals, but I am not sure where to start. Here is my code for a square with perpendicular diagonals (if it is even helpful). \begin{...
8
votes
2answers
754 views

How to horizontally align child nodes with the graphdrawing library of TikZ 3.0?

I want to left align the "2222" node with the other nodes on the same level (see MWE below). Is this possible using the graphdrawing library of TikZ 3.0? I could not work it out so far. \...
8
votes
1answer
2k views

Algorithmic graph drawing with TikZ & PGF

I'm trying out the algorithmic graph drawing capabilities of TikZ/PGF and initially I was very exited. However, now I am stuck. My example is below. I think the graph would look better if node "J" ...
7
votes
3answers
263 views

How to draw the following Mongolian calligraphy?

I want to draw a work of Mongolian calligraphy below. There are some problems when I scaled it as follows. Here is my attempt with TikZ. \begin{tikzpicture}[xscale=0.5,yscale=0.5] \draw[fill,black] (...
7
votes
2answers
1k views

How to draw this picture with tikz?

I have a figure that I would like to draw in beamer and tikz. Here is the figure: I start by doing something, but I am not progressing well. Any help? \documentclass{beamer} \usepackage{tikz} \...
6
votes
2answers
2k views

Drawing Directed Graph in TIKZ with labelled edges and no intersections

I am drawing a digraph to represent a matrix. \begin{figure} \begin{tikzpicture}[roundnode/.style={circle, draw=black!60, fill=black!5, very thick, minimum size=7mm}] %Nodes \node[roundnode] (...
6
votes
2answers
950 views

Nodes overlapping with TikZ graphdrawing library

I'm trying to redesign the below (ugly) picture using LaTeX with tikz and chemfig. I already can draw the chemical molecules that's no problem, I was placing them manually but then I though maybe the ...
5
votes
5answers
1k views

How to a draw branch of a backpropagation neural network?

I need exactly this diagram drawn in LaTeX but frankly, I have absolutely no idea how to do it. I would greatly appreciate if anyone can draw it out in latex for me or could point me to a tool where I ...
5
votes
2answers
625 views

Drawing color tiles using Tikz

Hi good people of StackExchange, I want to draw a colored tile using Tikz. Roughly to represent the percentage three kind of things have in comparison to their total. The picture I want can be ...
5
votes
2answers
685 views

How to draw boxes around graph nodes by default

I am making some not so simple flow diagrams with the graphdrawing package and I want to draw a box around each node. Is this possible while preserving the simple syntax? If so, how? MWE \...
5
votes
2answers
629 views

Is there a way to automatically draw curved edges using tikz's algorithmic graph drawing?

I can easily draw automatically-laid out trees in tikz, but with straight edges between nodes. I'd like for edges to be automatically curved similar to this tree drawing software: https://mindnode.com....
5
votes
1answer
591 views

Tikz, graphdrawing: How to use \foreach variables to set edge node labels?

I wanna create and label edges using a \foreach loop to avoid having to write every single node/edge when creating large graphs. It works fine when I use it to create nodes, but when I try to label ...
4
votes
1answer
4k views

Drawing waves in Tikz

I'm currently transcribing my Chemistry notes into LaTeX (GitHub) and I keep coming across wave drawings which really help with understanding, but which I do not know how to do in LaTeX. I could use ...
4
votes
1answer
2k views

How to draw big circles around selected nodes of a tree with tikz?

I have drawn the following tree using tikz with the following code. My question is: How can I draw one big circle enclosing all the „A“ nodes, one for all „B“ nodes and so on (maybe with different ...
4
votes
2answers
447 views

Two chain graph with tikz

This is what I'm trying to draw: I was able to draw this graph (code below): But I am not able to create another change above the first one, nor "labeling" the nodes with other nodes. Any ideas? ...
4
votes
2answers
210 views

Viviani curve with no self intersection

I was trying to make the following in TiKz which I made using Mathematica, which is the intersection of a sphere and cylinder similar to the Viviani's curve. . I want to highlight the shaded region ...
4
votes
1answer
582 views

How to make a 2D surface grid in Tikz?

I want to do something like this: And this is what I have done so far: \documentclass[a4paper, 11pt, oneside]{article} \usepackage{tikz} \usepackage{pstricks} \usetikzlibrary{scopes} \usetikzlibrary{...
4
votes
1answer
567 views

Creating interactive scheme in LaTex

We want to create a scheme and it should be: horizontal multi-level easily editable it must be the connecting line (but no cross-links) grouping of nodes (the block may contain more than 10 lines ) ...
4
votes
1answer
628 views

US Patent LaTeX Template Drawing scaling

I found this LaTeX template online on this link https://www.sharelatex.com/templates/other/us-patent However, I could not find any way to add my TikZ diagrams into the drawing section. Also, I am not ...
4
votes
1answer
302 views

Implement unique nodes of the same name in Tikz Trees?

I am attempting to make a binary tree representation of a scheme expression. However, I noticed that I cannot repeat the word "cons" as a unique node. The tree will simply tie all subsequent nodes ...
4
votes
1answer
138 views

Drawing a polygon

How to use the tikz package to achieve the following. I looked at but still couldn't get it done. Any help is much appreciated.
4
votes
1answer
65 views

Draw arrows with multiple lengths

I'm currently facing a problem with drawing arrows in a diagram. I have currently a few arrows in online, I want a second arrow below which spans over all the objects in the line above. My code looks ...
4
votes
1answer
137 views

strange unalignment between plot of waves and other graphical elements

I tried to make a picture of some waves with arrows on top. I am surprised to see that the arrows don't really appear on top, but rather slightly below. I don't even know why this happens. The ...
4
votes
1answer
101 views

Adding a background to tikz layered graph with sublayouts

I have the following code sample with sublayouts to properly set the nodes within my graph. The problem is that I can't seem to find a way to add a background node fitting all the inner nodes. \...
3
votes
3answers
461 views

I need help with latex tiKz code for drawing the graph

I need some help with drawing this graph in LaTeX. The learning curve is quite steep!
3
votes
1answer
628 views

How can I draw this figure using latex?

How can I draw this figure using LaTex ?
3
votes
3answers
919 views

The Tikz Code of a Digraph

I have the following adjacency matrix: $ A= \left[ \begin {array}{cccccccc} 1&1&0&0&0&0&0&0\\ 0&0&1&0&0&0&0&0\\ 0&0&1&1&0&...
3
votes
2answers
506 views

Drawing timeline with tikz

I am trying to draw the following picture in tikz by myself because I need other labels. Is there a smart way of drawing? Thanks for your answers. :)
3
votes
2answers
175 views

area between triangle minus circle

\documentclass[border=3mm,tikz]{standalone} \usepackage{pgfplots} \usepackage{epstopdf} \usepackage{pgf,tikz,tkz-euclide} \usetikzlibrary{calc,patterns,angles,quotes,arrows} \usetikzlibrary{...
3
votes
1answer
416 views

How to draw a Curvilinear system in Tikz/PStricks?

Can someone help me draw this coordinate system? Source: https://en.wikipedia.org/wiki/File:General_curvilinear_coordinates_1.svg What I Have Done So Far: \documentclass{article} \usepackage{tikz}...
3
votes
2answers
171 views

Draw communication network in LaTeX

I am trying for writing Latex code the following picture but I am not getting how to draw it. I have searched some related examples, but it's hard to accept them. Can someone help me? I would be ...
3
votes
2answers
72 views

Vertical Plots in Vertical Triangle

So I want to have several vertical curves in a vertical triangle, like . I tried several things, but simple three point arcs cross the boundary of the triangle. Plotting a sine (which is still ...
3
votes
2answers
1k views

Creating large star graph

I'm trying to create a star graph in Latex. My graph may have an arbitrary large number of vertices, so I'm trying to incorporate this fact in the drawing. This is what I have done so far: %My Macros:...
3
votes
1answer
56 views

Tikz graph library with no node text

I'm trying to use the TikZ graph library to draw graphs, but I'm having trouble figuring out how to draw graphs without text on the nodes. Here's a MWE. \documentclass{article} \usepackage{amsthm, ...
3
votes
1answer
2k 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 ...
3
votes
1answer
87 views

TikZ graph node wobble

Is there a way to align nodes by baseline in TikZ graphs? \documentclass[tikz]{standalone} \usetikzlibrary{graphdrawing} \usegdlibrary{trees} \begin{document} \begin{tikzpicture}[tree layout] \...
3
votes
1answer
233 views

surface of revolution in Tikz 3D

I'm trying to make a nice picture from a simple surface of revolution. Here my text: \documentclass[a4paper,11pt]{article} \usepackage{ifthen} \usepackage{tikz, tkz-euclide} \usepackage{tikz-3dplot} \...
3
votes
2answers
368 views

tikz-graph last level of tree circled only

How can I have only the last level (leaves) of the tree circled (not everyone)? \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{graphdrawing} \usetikzlibrary{graphs} \usegdlibrary{...
3
votes
1answer
607 views

How to make a parabola-like shape + color overlay in TikZ?

So I am trying to produce a figure similar to this to this This is what I have so far: How can I make the parabola-like shape (blue one)? How can I make color overlay? \documentclass[tikz,...
3
votes
2answers
624 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
3answers
157 views

How do I get this scope on top of my other lines?

Yo \begin{tikzpicture} \draw (0,0) -- (0,3cm); \draw (0.5cm,0) -- (0.5cm,3cm); \draw (3cm,0) -- (3cm,3cm); \draw (3.5cm,0) -- (3.5cm,3cm); \draw (0,0) arc (0:180:-1.75cm); \draw (0.5cm,0) arc (0:180:-...