2022 Developer Survey is open! Take survey.

Questions tagged [graphs]

Graphs are (1) graphs of functions or (2) sets of nodes and edges.

Filter by
Sorted by
Tagged with
0 votes
0 answers
68 views

Help for drawing graphs in LaTeX

How do I graph something like that in LaTeX? This is the code I've got so far. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{...
user avatar
0 votes
2 answers
92 views

How can I replicate this question in Latex?

Does anyone know how I could replicate this exam question in Latex? It doesn't have to be exact, just something close to this format. Any help is greatly appreciated!
user avatar
0 votes
1 answer
71 views

Smooth curve with tikz

This graph shows the effect of catalysts on activation energy \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[full]{textcomp} \usepackage[greek,italian]{babel} \...
user avatar
0 votes
1 answer
42 views

Tikz: Standard subgraph with n=5 without all edges

I know there is a way of using "graphs.standard" and "subgraph k_n" to obtain a five node graph looking like a full star, like in the attached image. But is there a possibility to ...
user avatar
  • 350
0 votes
0 answers
30 views

TikZ-pgf and using graph drawing algorithm by referencing existing nodes

I want to use the graphs library in TikZ together with the graphdrawing algorithms to create a graph with many nodes, and connections that I will make and label later. I have a more complicated ...
user avatar
0 votes
1 answer
42 views

How to draw a linear graph in LaTeX using tikzpicture for the equation (22-x)/2?

This is what I have so far: \begin{tikzpicture} \begin{axis}[xmin = 0, ymin=0, xlabel={$\omega_{m}$},ylabel={T}] \addplot[red, ultra thick](x, (22-x)/2); \end{axis} \end{...
user avatar
  • 21
0 votes
0 answers
16 views

Optimize size of graphs & Reduce horizontal space between graphs

I want to put two graphs in pdf format next to each other in one row and the graphs next to each other in the row below. I have managed to reduce the vertical space between the two rows but I do not ...
user avatar
  • 1
3 votes
1 answer
58 views

Tikz Graph with disappearing edges

I have a graph on a frame in beamer, drawn with tikz and I would like to dismantle it after time. The original graph looks like this: \begin{frame}{Eksempel} \begin{tikzpicture}[node distance=1.45cm, ...
user avatar
  • 350
-1 votes
0 answers
26 views

Draw adjacent hexagons [duplicate]

I need help to draw the following figure How can I draw numbers in the hexagons? Thanks in advance!
user avatar
  • 387
0 votes
1 answer
51 views

How to create a node in the center of a edge with bend

I wish to draw a graph such that the red vertices are exactly in the center of each blue edge. The code is as follows: \begin{tikzpicture} \tikzset{pointblue/.style={fill=blue, circle, minimum width=...
user avatar
  • 160
0 votes
1 answer
52 views

How to change vertex style

I wanted final states to be the same size as non-final states. The only difference between finals and non-finals should be the existence of the double circle in the final states. Does anyone know how ...
user avatar
  • 33
0 votes
1 answer
28 views

Change the style of graph vertex

I want to change the style of the vertex. I want all the black filled vertex to be named vertices. And all the vertices with double circles are now named as well. That way: This is the output I had: ...
user avatar
  • 33
1 vote
2 answers
54 views

How to position the edges of the automaton\graph

I got this: But I would like to get that: This is the code: \begin{center} \begin{tikzpicture}[ node distance=1.5cm, every node/.style={draw, fill, circle, inner sep=1.102pt}, ...
user avatar
  • 33
0 votes
2 answers
35 views

how to change the angle between the edges of the automaton/graph

I would like to get this: but this is what i got: this is the code: \begin{center} \begin{tikzpicture}[ node distance=1.5cm, every node/.style={draw, fill, circle, inner sep=1....
user avatar
  • 33
0 votes
1 answer
42 views

How can I draw this Automata with Tikz?

I want something like the figure: But what I got is: this is my code: \begin{center} \begin{tikzpicture}[node distance=1.5cm] % position the nodes a..d \node (a) [] {$\textrm{I}$}...
user avatar
  • 33
0 votes
1 answer
34 views

How to draw Automata/graph

I'm new to LaTeX. How can I make this automaton?
user avatar
  • 33
0 votes
0 answers
41 views

Help with Graphs in LaTeX

do you know how to create these graphics? I am new to LaTeX, so I need some help.
user avatar
  • 1
2 votes
1 answer
68 views

Tikz-graph vertices with two labels(one in, one out)

I would like to create the following kind of vertex in my graph: Circular node One label inside (similar to vstyle = Normal) One label out and under (similar to Welsh) It seems that it isn't a ...
user avatar
  • 213
5 votes
2 answers
334 views

How to make edges "tuck behind" each other in TiKz?

In this directed graph, I would like to make the downward 'b' edges "tuck behind" the upward 'b' edges. Something similar to, make a vertex where the 'b' edges intersect, and fill it white, ...
user avatar
1 vote
2 answers
69 views

Drawing points with sqrt values in a graph on tikz

I am struggling with drawing the following set of coordinates: \begin{tikzpicture} \coordinate (a1) at (0,(1+{sqrt(\5)})^{2}/2); \coordinate (a2) at (0,2); \coordinate (a3) at (0,1); \...
user avatar
0 votes
1 answer
60 views

Plot directed graph from transition matrix in tikz

I would like to plot a directed graph in tikz starting from a transition matrix as the one below. A "1" in position ij indicates state i leads to state j. [0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 ...
user avatar
0 votes
0 answers
29 views

graph scaling (enlarged)

I don't understand how scaling works. Need to plot the function below on (0, 1] such that behavior near 0 is clear (I want to be able to see what x is when y=120). \documentclass[preprint,12pt]{...
user avatar
  • 181
0 votes
1 answer
34 views

Adding a vertex weight on top of a labeled vertex

I'm using tikz to draw my graph (a complete graph). I labeled the edges and the vertices and want to add the weight of each vertices on top of it. Here's what I've done: \documentclass{article} \...
user avatar
  • 1
0 votes
0 answers
132 views

Graphviz Package Don't Work Under Windows?

I use MikTeX under windows. pdflatex needs tow execution to draw the graph. LateX code: \documentclass{standalone} \usepackage[pdf]{graphviz} \ShellEscape{where dot > test.log} \begin{document} ...
user avatar
  • 151
2 votes
1 answer
36 views

Scaling nodes, grow sep, and coordinates while preserving text size

I have a drawing based on 1cm unit. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs,positioning} \begin{document} \begin{tikzpicture}[ every node/.style = { circle, very ...
user avatar
  • 1,361
1 vote
1 answer
43 views

Distributing TikZ nodes on a grid using the graph command

I would like the following 10mm nodes to be fitting a 10mm grid using the graph command. Instead, the thickness is adding up (I would like TikZ to ignore it). \documentclass{standalone} \usepackage{...
user avatar
  • 1,361
0 votes
1 answer
50 views

personality using bar graphs

I want to add in my resume. How do I do that? I want similar to this. Thx for ur help!
user avatar
  • 1
4 votes
1 answer
155 views

Weird number overlay at the bottom left of Tikzplot

I am trying to create a graph using very small numbers and I think I have it working. The problem is that at the bottom left there's an overlay of text that I cannot figure out how to remove. Help ...
user avatar
-1 votes
1 answer
55 views

System graph plotting [closed]

I want to generate the graphs with system: \begin{tikzpicture} \begin{axis}[axis equal, axis lines=middle, axis line style={->}, tick style={color=black}, xtick=\empty, ytick=\empty ] \addplot[...
user avatar
0 votes
0 answers
23 views

How can I plot the graph for a conditional equation?

I have the following equation: g(x) = \begin{cases} x + 2 & \text{if } x \ne 3 \\ \text{undefined} & \text{if } x = 3 \end{cases} how can I plot a graph that shows it's ...
user avatar
1 vote
1 answer
64 views

How to add transparent gray rectangle borders to a plot?

I saw a plotting style that I really like and I am trying to recreate it. I am having troubles getting that crisp style and am having problems with the semi-transparent gray borders. I tried to ...
user avatar
0 votes
1 answer
68 views

Increase thickness of edges in graph

Consider the following LaTeX code that create Petersen graph in latex \begin{tikzpicture}[rotate=90] \GraphInit[vstyle=Hasse] \SetVertexNormal[LineWidth=.7pt] \grPetersen[RA=2.4,RB=1.3] ...
user avatar
  • 101
0 votes
1 answer
74 views

Help me generate graph with system [duplicate]

Please help me with system I want to generate the graphs with system \begin{tikzpicture} \begin{axis}[axis equal, axis lines=middle, axis line style={->}, tick style={color=black}, xtick=\empty, ...
user avatar
0 votes
0 answers
30 views

Please help me with 2d system graph in latex [duplicate]

Please help me with 2 system i want to generate the two graphs with systems First { π‘₯ = π‘Ž βˆ™ 𝑠𝑖𝑛(𝑏 βˆ™ 𝑑) + π‘₯0 { 𝑦 = π‘Ž βˆ™ 𝑠𝑖𝑛(𝑑 βˆ™ 𝑑) + 𝑦0 Second { π‘₯ = 𝑠𝑖𝑛(𝑑) βˆ™ π‘Žsin (𝑑) + π‘₯0 { 𝑦 = ...
user avatar
0 votes
1 answer
29 views

pgfplots - Proportional axis ticks and terminating grid lines at axis

I want to have grid lines in my graph that end at the x and y axis and do not carry over to the sides. If I turn gridlines on it seems like it fills in past the edges. I'd also like to have the graph ...
user avatar
1 vote
1 answer
58 views

Flowchart graph/map to visualize the interplay of different results

Im trying to make overview graphs of my subjects. In the idea of flowcharts/mindmaps etc. where i want to visualize how different results interact with each other. I did a version with itkz-cd wich ...
user avatar
  • 13
0 votes
1 answer
73 views

Drawing a dataflow using tikz

I'm trying to draw the following dataflow diagram in tikz: Here is what I got so far: \documentclass[10pt,a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{tikz} \...
user avatar
1 vote
1 answer
85 views

How to draw a force graph with fixed clustered nodes?

How to draw a graph like the following with TikZ? In particular: It is an undirected graph. There are groups of 3 nodes that always stay close to each other and are linked by the bold edges. Some of ...
user avatar
  • 121
0 votes
2 answers
208 views

How to code a 3d graph of a cylinder. I tried a code previously suggested but it did not work as intended [closed]

I'm trying to code a cylinder of the form x^2+y^2=r^2 where h is the unknown height of the cylinder (I want it labeled as r on the axis) because in the problem the radius of the cylinder isn't given ...
user avatar
4 votes
1 answer
72 views

Simple question about drawing the real line using tikz

I have never drawn anything of LateX before, and I would like to represent intervals of the form [x,x'], with both x,x' real numbers, as I show below. I have 0 experience with tikz and altough I've ...
user avatar
  • 265
1 vote
2 answers
321 views

Tikzpicture - Draw a graph

Im trying to create this graph in latex, using tikzpicture: This is my code so far: \usepackage{tikz} \begin{tikzpicture}[node distance={15mm}, thick, main/.style = {draw, circle}] \node[main] (1) {$...
user avatar
  • 23
0 votes
0 answers
32 views

How to code these graphs in latex?

How to draw graphs like in image below in LaTex? Can you offer some basic codes or examples for me so that I can take a look?
user avatar
2 votes
1 answer
91 views

How to graph a color function relationship

I am looking for LaTeX code for coloring a rectangle based on a formula that gives the color at $(x,y)$ location via a formula $z=f(x,y)$, where $z$ is the wavelength and we want a spot of color $z$ ...
user avatar
  • 8,435
3 votes
1 answer
53 views

How to make curved arrows on graphs?

I'm trying to make a graph like this, but I have not been able to draw the curved arrow in the center. Here is what I have: \begin{figure} \centering \begin{tikzpicture} %% vertices \draw[fill=black] ...
user avatar
  • 351
1 vote
1 answer
47 views

Tree-like Graph drawing with probabilities

As the title says, I'm having trouble drawing tree-like graph in LaTeX. Using TexSE I found the library β€œTikz” and I tried to cook up something without success. A little part of the gigantic (sigh!) ...
user avatar
1 vote
2 answers
213 views

How do I fix my graph?

So I'm trying to center this graph right underneath the small paragraph shown in the image. For the graph, I'm trying to have both axes have the same scaling and my domain and range don't work. For ...
user avatar
2 votes
1 answer
71 views

Hewitt and Roberts map construction

does anyone know how to draw this map in latex ?
user avatar
2 votes
1 answer
103 views

How do I draw this decomposition in LaTex?

I am currently learning how to use Tikz in order to draw graphs. Since I am a beginner I can't seem to figure out how to draw the following graph: What's puzzling me here is the shapes encircling the ...
user avatar
2 votes
1 answer
59 views

How to draw a digraph without intersecting arcs

I am tryng to draw the following figure that is a graph with bipartition $X$ and $Y$: I'm having trouble drawing arcs so they don't intersect. Follows the my code that alreadys did: \begin{...
user avatar
  • 160
1 vote
1 answer
54 views

Graph with partition $I-J$ and $J-I$ [duplicate]

I am tryng to draw the following figure that represent a bipartite graph: Follow the code that I did: \documentclass[border=1cm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ ...
user avatar
  • 160

1
2 3 4 5
…
21