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 [graphs]

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

2
votes
2answers
31 views

Draw a cyclical graph with nicely aligned edges using nodes in tikz

I would like to draw a cyclical graph in tikz using nodes and edges as hassle free and with as little code repetition as possible. However, the resulting edges do not align nicely with respect to the ...
3
votes
4answers
393 views

How to illustrate the Mean Value theorem?

What packages can I use and what code to draw these functions?
4
votes
1answer
71 views

Tangent Plane on a surface

I'm trying to graph the tangent plane on the unit sphere at the point (1, \pi/3,\pi/4). I'm new to tikz, so I'm unsure how to edit the graphs other users have made with the planes for each point. Here'...
0
votes
0answers
23 views

label and caption the graphs

Here in the picture has $3$ figures I want to caption them differently and label them differently. Can you please suggest what should I do. \begin{figure} \begin{tikzpicture}[scale=3, every loop/....
0
votes
1answer
26 views

How to draw hierarchical overlapping models

I am trying to draw hierarchical models with overlapping nodes. I am able to use Use tikz to draw a hierarchical model (mult-level model from statistics) to make hierarchical models, but I am not able ...
0
votes
3answers
111 views

2d Grid with Tikz and Nodes

I'd like to create the following graph: But I can't figure it out. I'm pretty new to Tikz and nodes in general, so a simple solution is appreciated. Here is another grid but I can't figure out how ...
0
votes
1answer
40 views

How to create a graph for Gaussian brackets in LaTeX

I'm just getting started in LaTeX and have never created a plot there (only have some experience of plotting in R). Now my task is to create a graph for f(x) = x-[x] wherein [] is a Gaussian bracket ...
-1
votes
2answers
75 views

How to draw a quiver in latex like this? [duplicate]

How can I draw a quiver in latex? Even if a simple one like this:
0
votes
1answer
50 views

How to draw the following graph in Latex

I am trying to draw the following graph in LaTeX. But I have not been able.
0
votes
1answer
39 views

tikz: Label number of edges

In the following picture there are multiple edges between two vertices. But I am able to draw single edge. So I want to label the number of edges. How can I do it? For example there are $3$ edges ...
2
votes
1answer
52 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 ...
1
vote
1answer
37 views

Automatically draw nodes at all intersections (for graph crossings)

I use TikZ to draw (undirected) graphs, but sometimes I would like to be able to mark where all the intersections/crossings are automatically. I understand that the TikZ intersections library has the ...
0
votes
1answer
30 views

Including a LaTex citation in a GraphViz graph

I am trying to generate a graph showing the relationships among papers in a bibliography. I use GraphViz inside a LaTex document to generate the graph. So far, so good: the graph is generated ...
-1
votes
1answer
78 views

tikz: azeotropic graph [closed]

Do you know an example, even a minimal one, in order to draw the graph of an azeotropic mixture with tikz? Thanks in advance
-2
votes
1answer
65 views

Cylinder. OXYZ. 3D Cylinder . cylinder with dots [duplicate]

i whant help with drowing cylinder in 3d with dots(p1,p2,...pn) on both side cylinder
6
votes
3answers
559 views

How to draw/optimize this graph with tikz

I would like to know if is there a way to optimize the code that I use to draw the next graph: I do it using this: \documentclass[11pt]{article} \usepackage{tikz} \begin{document} \begin{figure}[h]...
0
votes
1answer
45 views

How can I export an xmgrace graphic to Latex?

I´ts basically that, but I don´t want to be an PNG or JPEG format, because when I scaled it becomes ugly.
2
votes
1answer
31 views

Trying to recreate a graph using Tikzpicture and Pgfplots, doesn't turn out the way I want it to

Trying to recreate this graph: however mine turns out like this: Issues that I am having: The curve doesn't look very smooth and even. Nothing I try to draw (\draw) appears in the figure, I'm ...
0
votes
1answer
32 views

tikz picture: unit instead of penultimate number of the axis

Is there a way to insert the unit instead of the penultimate number of the axis like this? 0 1 2 3 m 5 Thats something my university wants to see in my Bachelor thesis... But after searching ...
0
votes
0answers
29 views

Variational Auto-encoder illustration

I'm using the neuralnetwork package to add a neural network illustration to my text. The neural network is of variational auto-encoder and as you know the middle layer of this type of network is made ...
3
votes
1answer
36 views

Effective way to plot values with a vast difference between them

Here's a nice simple bar graph. It's effective when the plotted values are in the same kind of ballpark, but when there's an outlier, it can put things out of wack. For instance, I want to plot some ...
0
votes
1answer
31 views

LaTeX Tree Diagram

I'm trying to recreate the diagram on this website: http://www.njohnston.ca/2013/04/the-minimal-superpermutation-problem/ and am finding difficulty with joining all the nodes in the third row to a ...
1
vote
1answer
10 views

Changing the position of scaling

when i run this code, I get a 10^4 on the bottom right, which seem strictly false. I would like to get rid of this one. And on the top left I have the scaling for the y-axis. I would either like it to ...
4
votes
2answers
235 views

pgfplots: How to draw exponential graph with 60° start angle?

I want to draw a simplified Michaelis-Menten kinetic (monod-function) to compare it with a linear function. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots} \...
1
vote
1answer
31 views

Grouped bar chart in pgfplots from file selecting certain rows

I want to create a bar chart from the following data, using the column difficulty to select rows from kappa. I hope to avoid having to type out the contents of the csv file in a series of add plot ...
7
votes
2answers
288 views

pgfplots: How to draw a tangent graph below two others?

Assumed I want to draw three simple graphs based on the following illustration: How can I plot those three graphs? I've tried to create something like this: Minimum Working Example (MWE): \...
1
vote
1answer
46 views

Convert TikZ to GraphML format

I want to convert TikZ graphs into GraphML format. Since libraries like networkxx and igraph have functions to read and write different formats like: GraphViz GML GraphML Pajek format Pickled graph ...
1
vote
1answer
46 views

different colours and customizations for individual vertices/nodes for a tikz graph

So I draw my graphs like \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \tikzset{Bullet/.style={fill=black,draw,color=black,circle,minimum size=3pt,...
5
votes
1answer
309 views

Asymptote: 3d graph over a disc

Is there a straightforward way to draw a 3D graph over a disc domain? Say z=x^2-y^2 for x^2+y^2<1. [I just started to use asymptote; this page explained me how to do it for a rectangular domain. I ...
0
votes
1answer
41 views

multiple edges reach to a node without any bending

I am trying to use tikz library to generate graphs where some nodes have multiple input edges and I would like they would be separated when they hit the node but I have failed so far. This is an ...
1
vote
0answers
27 views

Tikz force node in specific layers in layered graph

I'm trying to use layered graph layouts to generate Directed Acyclic Graphs where all nodes are partitioned into layers. The following code produces a near-perfect result. \RequirePackage{luatex85} \...
6
votes
2answers
97 views

Drawing a Decision Diagram with Tikz and layout manager

I'm trying to draw decision diagrams (DD) in an automated fashion. A DD is a DAG, where all nodes are partitioned in layers. Edges typically go from a node in layer l to another node in layer l+1. ...
4
votes
1answer
57 views

adding edge label to tikz and bayesnet library

I want to generate similar graph as follows using bayesnet library but I do not know how I can add labels for edges This is my code so far \documentclass{article} \usepackage{amsmath} \usepackage{...
1
vote
1answer
124 views

Plotting point on a graph

I would like to draw the curve shown below including the marked points and the name of the curve. Using the code \begin{center} \begin{tikzpicture}[scale=0.8,domain=-2:20] \begin{axis}[ height = 11....
5
votes
2answers
269 views

Generating adjacency matrices from isomorphic graphs

Here are some isomorphic graphs and their corresponding adjacency matrices. I can draw the graphs with tikz. But I'm not sure the best way to draw the matrices. Is it possible to generate one from ...
0
votes
0answers
32 views

Automatical graph layout with high number of connections using TikZ package

While learning to work with LaTeX, I have found out (also in this question) that TikZ is able to create very good automatic graph layouts. In my work, I had assignment to create pretty large ...
2
votes
1answer
74 views

Drawing step functions

How would I represent a one dimensional potential step such as the one shown in the attached figure? I've managed to get as far as defining my x and y axis but I'm not sure how to draw the function ...
0
votes
1answer
99 views

How to draw animated isomorphic graphs?

I saw a nice question & answer over here, about creating an animation to demonstrate graph isomorphism. I'd like to do the same for these two examples: These two are isomorphic: These two aren't ...
0
votes
0answers
45 views

How to put a graph in front of another graph in Tikz

\begin{tikzpicture} \begin{axis}[ymax=17,ymin=-1] \addplot [color=red, domain=-4:4, samples=50]{x^2}; \node[label={180:{(1,5)}},circle,fill,inner sep=1.5pt] at (axis cs:1,5) {}; \...
5
votes
1answer
76 views

Tikz, issue with applying style to nodes

I am a beginner in LaTeX, especially in TikZ package. I want to draw Peterson graph with some styles. My code \documentclass{article} \usepackage{tikz} \usepackage{caption} \usepackage{graphicx} \...
0
votes
0answers
78 views

What to use in latex to create graphs, charts, tables?

I made my research and I found out that you can do this customly by giving commands in Latex. Since I'm new to this environment, is there any good online tools that could be used, and allow this ...
-1
votes
1answer
118 views

How to draw this graph in LaTeX [duplicate]

I would like help drawing a specific graph in LaTeX
1
vote
1answer
55 views

How to have different types of edges based on values in foreach loop?

I am trying to draw a Knodel graph using TikZ. The graph I am trying to reproduce has different style edges for each "dimension". I would like to have different edges for the different values of Delta ...
1
vote
2answers
50 views

Defining TikZ function to produce Knodel graphs

I am trying to define a function that will produce a Knodel graph (examples pictured below). I'm not completely sure how the code works for TikZ to do a for loop using a range, and how to compute ...
2
votes
1answer
67 views

Combine multiple coordinate systems in one tikz/pgfplot

I need two or three distinct coordinate systems in "one tikz environment". The systems are very similar (some linear functions, some labels, the same axis scale). A horizontal shift or minipage are ...
1
vote
1answer
28 views

How to eliminate the arrows on this Cayley Graph

I am trying to do the next graph, but without using arrows: \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{lindenmayersystems,arrows.meta} \newcount\quadrant \...
5
votes
4answers
430 views

TikZ graph edges not drawn nicely

I am still new to using Tikz... I am trying to draw a wheel-like graph using TikZ. I have the basic graph done, but it is not turning out how I expected it to. The edges in my graph aren't centered/...
1
vote
1answer
34 views

Illustrate segments along a function in tikz

What is a good way to illustrate certain intervals along a curve? I start a MC-curve. Between SR and LR there should be one additional line-segment. Finally a third line starts at LR on MC. All in ...
0
votes
1answer
58 views

How to make certain nodes have no circle around it using tkz-graph?

I'm trying to draw a simple hierarchical structure using tkz-graph: \begin{tikzpicture} \Vertex[Math, L=\pi, x=0, y=4.5]{pi} \Vertex[Math, L=\pi^{\frac{1}{32}}, x=-4.5, y=0]{pi_32_1} \Vertex[Math, L=\...
4
votes
1answer
41 views

Joining bullets and nodes xy pics

I'm reasonably new to using xy-pics, and I'm trying to figure out how to connect bullets together. The lines I draw are only 'half connected'. This is my code: \documentclass{article} \usepackage[all]...