Questions tagged [tikz-graphdrawing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
2answers
61 views

using '\foreach' loops to draw tikz figures

I am using \usepackage{tikz} to draw something using xyz coordinates. I have a bunch of coordinates named (xyt) such as (000) (001) (020)...(001)(011) etc, they are created by: \coordinate (ijk) at (...
5
votes
2answers
248 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 ...
0
votes
1answer
52 views

how to plot function from multiple points

Actually wanted to draw and plot Optical and acoustic branch but don't know it what's the command to draw a function like this ? Thanks for the help
1
vote
2answers
50 views

Drawing parabola shape using Tikz

I had like to draw a general curve shape (kind of parabola) using Tikz. I have managed to draw half circle as follows (black line): \begin{figure}[htbp] \centering \begin{tikzpicture}[...
0
votes
0answers
50 views

TikZ Graph with Graphdrawing and Layered Layout: Nested Nodes do not work at all

I am using TikZ with the libraries graphs and graphdrawing together with the grid layout to generate graphs where the nodes are placed automatically by libraries. Everything, except one thing, works ...
1
vote
1answer
50 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?
2
votes
1answer
108 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
41 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] \...
9
votes
1answer
217 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{...
2
votes
3answers
307 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)))*...
1
vote
3answers
108 views

Drawing Ellipse and Half-Ellipse in LaTeX

how can I draw some ellipses being "cut" by a half-ellipse like in the image (and also being able to write some labels on the ellipses)? And also, what should I do if I want to have a circle/ellipse ...
2
votes
1answer
53 views

Package to draw graphs (not graphics) by mathematical desciptions

Is there any latex package to draw graphs by its descriptive relations. Lets say: \draw_graph_complete{5}{1} Or \draw_graph{u,v,x,y,z}{{u,v}{v,x}{x,z}{y,z}} I don't want to deal with placement ...
2
votes
2answers
61 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 ] ] ...
1
vote
0answers
22 views

How can you change the appearance of a line (edge) with a tikz graph drawing algorithm written in Lua?

In my graph drawing algorithm (written in Lua for LuaLaTeX), I'd like to change a solid line to a dashed line. I use a Digraph with some vertices and arcs between them. On page 499 of the Tikz & ...
1
vote
1answer
55 views

pgfplots: How to control and align legend items precisely above each other?

The user marmot has posted a really nice approach of adding legend items into one single box below a multigraph diagram by placing them inside a \node. Based on this initial situation I have tried to ...
9
votes
3answers
593 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 ...
4
votes
1answer
47 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 ...
2
votes
2answers
62 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] \...
0
votes
1answer
53 views

Specific feynman diagram [closed]

I am very new to TeX and wanted to draw these diagram using Tikz-Feynman or some package.
1
vote
1answer
37 views

Drawing multiple overlapping components of a graph

I am new with tikzpicutre and related drawing utilities of Latex. I have tried very hard to figure out how to draw the graphs in the attached figure. I will be very thankful if someone can help me ...
8
votes
3answers
456 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{...
2
votes
0answers
87 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 ...
0
votes
1answer
74 views

sign scheme diagram in latex

I tried to draw a following diagram using tikz. I used the following commands \draw [black, very thick] (0,0) -- (9,0); \draw [black, very thick] (3,1/4) -- (3, -1/4); \draw [black, very thick] (6,...
1
vote
1answer
310 views

Cryptocode package question, protocol with 4 players

I am using cryptocode package to make a protocol of 4 players. \fbox{ \procedure{name}{% \textbf{Alice} \< \textbf{Verisign} \< \textbf{Eve} \< \textbf{Bob} \\ \sendmessageright{top=\...
1
vote
1answer
66 views

Complicated curves intertwined in the link figures (II)

This is a more advanced question following an earlier one. I am struggled to draw these types of figures: There is a package called the knot library. So I am going to try the knot library out. But ...
3
votes
1answer
118 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} \...
0
votes
1answer
76 views

Drawing similar picture with tikz

Is it possible to make something like this in tikz? How to? :) f(t) can be literally any curve, this arrow pointing it is just a comment, not a part of a drawing
2
votes
2answers
91 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?
4
votes
1answer
86 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.
1
vote
2answers
293 views

Graph with parallel multi-edges with designated anchor points

Consider following graph created with the GUI tool LaTeXDraw: I want to create a similar graph with tikz. This is how far I got: %! TEX program = lualatex \documentclass{article} \usepackage{tikz} \...
0
votes
1answer
54 views

Draw a graph using graphdrawing and sublayouts, wherein nodes are properly aligned among each other

I have the following code producing a graph with the graphdrawing algorithms of tikz and sublayouts to properly set my nodes. \RequirePackage{luatex85} \documentclass{standalone} \usepackage{tikz} \...
5
votes
5answers
966 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 ...
1
vote
1answer
45 views

How to cover certain area of included pdf pages with white rectangle?

I have a bunch of handwritten notes that I'd like to integrate with my other notes typesetted with latex. And to give the integrated notes a clear structure, I am wishing to typeset the section ...
1
vote
1answer
50 views

How to add a vertex vertically in this template (or with tkz-graph )

Please help me draw a graph like this(see hand-drawing pic) in Latex ? I have found a template which has clean Latex in it. I am trying to add some vertices vertically without any success, Here is ...
8
votes
1answer
822 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 ...
2
votes
1answer
33 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[...
4
votes
1answer
51 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. \...
1
vote
3answers
1k views

drawing circles and squares with TikZ

I am trying to recreate the following sketch using tikz. I found this example to draw circle but combining it with a grid to generate the following picture is a bit difficult. How can I generate ...
0
votes
1answer
79 views

How can I write the linear scheme in the signal processing system tool?

Hello Tex friends I am trying to draw the linear scheme for the signal processing tool. I am testing the Signal processing library. However, I can not get the figure like that. This library: http://...
0
votes
1answer
48 views

How can I fix weird font behavior in IEEEtran when using TikZ graphdrawing library?

I have the following MWE: \documentclass{IEEEtran} \usepackage{tikz} \usetikzlibrary{graphdrawing} % needs luatex! \usepackage{lipsum} \begin{document} \title{Title} \author{Author} \maketitle \...
0
votes
4answers
212 views

drawing relationships between mathematical sets in latex

I have the sets products (p), subgroups (S), groups (G) and categories (C). Each product belongs to a subgroup. Each subgroup belongs to a group. Each group belongs to a category. The image below ...
5
votes
1answer
205 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 ...
2
votes
3answers
143 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:...
1
vote
1answer
183 views

Drawing a Cylinder on a plane using tikz

I would like to draw a tilted cylinder on the plane \alpha. Can I draw this using latex tikz?
1
vote
1answer
141 views

How to plot the 5th roots of a complex number [duplicate]

I want to draw the roots of z^5=1-i. I am totally novice to latex and really have no idea about drawing. Thanks for helping!
3
votes
3answers
265 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&...
2
votes
0answers
58 views

How to add options to a graph from within a Lua layout algorithm

I'm working on a graph layout algorithm for use with the graphdrawing library in TikZ, and part of what I'd like to do is use the length of an edge label in calculating edge lengths. If the label is ...
8
votes
2answers
331 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/....
3
votes
2answers
135 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{...