Questions tagged [graphs]

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

Filter by
Sorted by
Tagged with
9
votes
2answers
836 views

Programmatically Illustrating Permutations

Here's an illustration of what's known as an expansion permutation (the top half). It just means that instead of going straight through (like the bottom half aka. the identity permutation), the signal ...
1
vote
2answers
52 views

doubling up on edges in a tikz graph

I made the following diagram based on an excellent, very interesting answer to an earlier question. %%% Preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[border=9,...
2
votes
2answers
68 views

How to reveal TikZ plot with \printanswers in exam class

In the exam class, you can reveal solutions by uncommenting the command \printanswers. This allows the author to keep both question and solution in the same document, without needing to manually ...
2
votes
1answer
46 views

Pgfplots Scientific Notation 2^x

I am plotting a logarithmic graph and since the values are relatively large, pgfplots is outputting the values in the y-axis in terms of 10x . However, I'd like to output it the format 2x. I read the ...
1
vote
1answer
31 views

How can I write text above an horizontally centered line?

I am using LaTeX and I would like to write text above a line centered horizontally to write a path from graph theory like it is done in the book Graph Algorithms (2nd Edition) by S. Even. My ...
5
votes
1answer
60 views

TikZ: How to make edges jump to show they don't intersect?

I saw this and I like how the lines jump over each other to show they're not connected when they cross over: Here's the code for it. I tried to apply the same technique, without much luck: % ...
5
votes
1answer
56 views

Centered bended arrow on tikz edge

I try to rebuild a graph within tikz. This Graph has some edges which have an arrow underneath of them. Important for me is the bend which should be the same as the red edges. Not like in the ...
1
vote
1answer
41 views

How to connect points on a circle with arcs and label them

I have a "circle" or a circular region. I want some nodes on the circular region to be connected by the arcs. and I also want some nodes (like \hdots) to appear very close on the circle. and the ...
3
votes
1answer
38 views

Is there a way of generating fluid flow graphs similar to those of 3B1B?

I've just seen 3 Blue 1 Brown's video on divergence and curl and found his diagrams on fluid flow to be so beautiful, especially for an article or book. Now, I'm familiarized with TikZ and PGFPlots, ...
1
vote
1answer
58 views

TikZ Grid Paper With Node Coordinates

I suck at drawing with TikZ, and it takes forever, so I decided I need a new approach. When I use Illustrator and Inkscape, I like to start with a grid; like graph paper. So now I do this (below), so ...
4
votes
1answer
56 views

Dots at the end of a function in tikz

When using tikz to plot a function, a certain domain has to be specified. However, if the function continues outside of the specified domain, it would be nice to have the classical three dots at the ...
0
votes
0answers
52 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 ...
0
votes
0answers
43 views

How to draw Rolle's theorem function? [duplicate]

I want to draw this but using very simple code and I don't know how to write this :/ The function doesn't need to be "built" with dots,it can be a normal line.
3
votes
4answers
80 views

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

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 ...
4
votes
4answers
538 views

How to illustrate the Mean Value theorem?

What packages can I use and what code to draw these functions?
4
votes
1answer
93 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
28 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
33 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
131 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
45 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
79 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
54 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
63 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
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 ...
1
vote
1answer
41 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
47 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 ...
0
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
69 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
5
votes
3answers
576 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]...
1
vote
1answer
80 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
34 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
48 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 ...
2
votes
1answer
37 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
33 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 ...
3
votes
2answers
280 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
36 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 ...
6
votes
2answers
300 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): \...
2
votes
1answer
61 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
62 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
334 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
48 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
38 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} \...
5
votes
2answers
105 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. ...
3
votes
1answer
66 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
210 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....
4
votes
2answers
324 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
34 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 ...
1
vote
1answer
101 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 ...