Questions tagged [tikz-graphdrawing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
12
votes
3answers
4k views

Can I reproduce this in Latex

Is there an easy way to reproduce the following image in latex?
0
votes
1answer
46 views

Draw colorful patterns on the coordinates

Is there some easy way to draw this figure on LaTex using any method? https://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/SO10.svg/2560px-SO10.svg.png Many thanks to share any comments.
2
votes
1answer
69 views

Draw an array of clocks and a sinusoidal wave

What is the simple way to draw this figure? I am attempting to draw this using tikz. But I cannot easily match the sinusoidal wave with the arrows... I decide to use a Keynote (outcome below), and ask ...
3
votes
2answers
55 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 ...
1
vote
1answer
42 views

How to correctly set x,y of nodes within a custom lua layout

I am trying to understand how I can place nodes within lua at correct x and y coordinates. I have this code mainly from the pgf/tikz manual: -- This is the file RectangleTreeLayout.lua local declare ...
0
votes
2answers
63 views

Hyperedges graph with TikZ

I would like to generate the attached graph by latex. It is also a hyperedges graph. Could you help me, please? The colours may be skipped. Thanks in advance.
0
votes
0answers
43 views

Draw a surface and its normal vector

Draw the surface and its normal vector. I want to insert a similar image in latex, how should I draw such a schematic? What tools should I use to draw similar diagrams? It may be used frequently in ...
2
votes
2answers
90 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
419 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
66 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
60 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
68 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
59 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
375 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 ...
-1
votes
2answers
62 views
3
votes
1answer
54 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
222 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{...
1
vote
3answers
188 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
55 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
119 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
24 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
83 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 ...
2
votes
3answers
342 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)))*...
4
votes
1answer
53 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
67 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] \...
9
votes
3answers
612 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 ...
1
vote
1answer
54 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 ...
1
vote
1answer
60 views

Specific feynman diagram [closed]

I am very new to TeX and wanted to draw these diagram using Tikz-Feynman or some package.
8
votes
3answers
493 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{...
0
votes
1answer
77 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,...
2
votes
0answers
102 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
72 views

Complicated curves intertwined in the link figures (II) [closed]

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
136 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
80 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
108 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
99 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
1answer
51 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
66 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
887 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
40 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[...
0
votes
1answer
57 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} \...
4
votes
1answer
58 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. \...
0
votes
1answer
91 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
57 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
234 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
264 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
146 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
202 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
168 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!
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 ...