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-graphdrawing]

The tag has no usage guidance.

11
votes
2answers
424 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. \...
9
votes
3answers
565 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
2k 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 ...
8
votes
2answers
303 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
734 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
423 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{...
7
votes
2answers
844 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} \...
7
votes
1answer
951 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
2answers
525 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. \...
6
votes
2answers
1k 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] (...
5
votes
5answers
929 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
3answers
3k 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.
5
votes
2answers
431 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
622 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
1answer
82 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.
5
votes
1answer
173 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
1k 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
329 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....
4
votes
2answers
358 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
1answer
501 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
314 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
412 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
205 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
43 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
105 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
47 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
228 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
127 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
337 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
728 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
93 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
187 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
460 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
0answers
75 views

Wrong direction of vertices in tikz-feynman remains under macOS, using PGF 3.1 and luatex 1.07 [duplicate]

This question is originally from the discussion under github issue CTeX-org/forum#4. The similar problems raised by questions Fresh install of TL2018: no tikz graph drawing libraries found, and ...
2
votes
3answers
140 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:...
2
votes
3answers
153 views

Tune the coordinates of this arc

I want to make a hyperbola that will host the points that have the same distance from two circles. Not really interested in accuracy, but in rather a figure that will give students the idea. Here is ...
2
votes
3answers
269 views

Drawing the Möbius band and the Klein bottle

I have this: \begin{tikzpicture} \begin{axis}[hide axis, unit vector ratio=1 1 1, view={-30}{45}] \addplot3 [surf, domain=0:360, y domain=-1:1] ( {(10+y*cos(3*x/2)))*cos(x)}, {(10+y*cos(3*x/2)))*...
2
votes
1answer
2k 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 ...
2
votes
2answers
658 views

Arrow not showing consistently in tikz \draw

I would like to have a figure, where every edge has an arrow. When I \draw edges with tikz, something strange happens: The "same" code yields different results. Code \begin{tikzpicture}[->,>=...
2
votes
2answers
72 views

A diagram with matrices

I want to draw the following diagram which contains two matrices (2x2 on left and 4x4 on right) and a box. Could someone help?
2
votes
2answers
60 views

How to optimize this codes of graphs with tikz

I am trying to learn Tikz and I want to know if there is a way to optimize this 2 graphs. Thanks. \documentclass[11pt]{article} \usepackage{tikz} \begin{document} \begin{figure}[ht] \...
2
votes
1answer
802 views

Tikz, how to draw concentric circles with radii and something more

I am a beginner with Tikz, I'm reading some tutorials (by the way, if you want to link me some more, I'll be happy about!) and I'm trying to understand how it works. But I need a "kick" for that: I ...
2
votes
1answer
29 views

How to scale brackets in Tikz

I am trying to draw a line with a closed interval indicated by square brackets super imposed on top of it. Here is my current code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[...
2
votes
1answer
47 views

How can I set bend right=0 for all edges in a tikz graph?

Consider following graph %! TEX program = lualatex \documentclass{article} \usepackage{tikz} \usepackage[graphics, active, tightpage]{preview} \PreviewEnvironment{tikzpicture} \usetikzlibrary{graphs,...
2
votes
2answers
209 views

TikZ/CircuiTikZ Power Splitter symbol

I would like to draw a Power Splitter symbol for CircuiTikZ like the one here below but I don't really know where to start. Maybe such a symbol (even not with the "circles" at the input/output) alredy ...
2
votes
1answer
112 views

Help in recreating a graph in tikz

Can someone help me in recreating the following diagram using TikZ. EDIT:: I draw it using the following code. However, I have the following issues: 1) drawing the dots between container 3 and ...
2
votes
1answer
243 views

Putting grid behind the figure [duplicate]

Can someone please tell me how to put a grid [(-6,-6) to (6,6)] in the figure I drew using the following code. Also, if you notice the arrowheads near labels 'y1' and 'y2', those are really small so ...
2
votes
1answer
103 views

How to draw the following FSA?

I tried to draw the following FSA to the best of my abilities, but still certain edges are not showing well (because they are not curvy) and state 1 is not aligned with the rest. Is it possible to: ...
2
votes
1answer
96 views

Arrows within text

I was wondering how to add some arrows inside the text, like in the following picture: I know that there's tikz, but I do not know how to insert this specific kind of arrows. If you could point me ...
2
votes
1answer
447 views

Creating Intervals graphs

I'm trying to create the following figures using tikz: Can anyone point me to the right way to do it? This what I have done so far: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \...