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

learn more… | top users | synonyms

3
votes
0answers
33 views

TikZ: wrong edge between split rectangles in graphs

Consider the following minimal example: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{graphs,graphdrawing,shapes.multipart} \usegdlibrary{trees} \begin{document} \tikz[every ...
0
votes
1answer
40 views

TikZ: using ‘node contents’ key for graph nodes

TikZ allows node contents to be set using an option: \tikz{\node[node contents=whatever];} Note the syntax, the following is not allowed: \tikz{\node[node contents=whatever] {};} and gives an ...
1
vote
2answers
56 views

Write same vertex labels with TikZ

I am writing an article on graph coloring and trying to make this type of labeled tree in TikZ. (See the attached Figure) The problem is that I have to use same color label (English letter) for many ...
3
votes
2answers
47 views

How to create 2 arrows rather than double headed arrow with Tikz

I want to display two separate arrows in this graph between nodes 1&4 and nodes 1&3. I read somewhere about bending the arrows, but I'd really like them to remain straight. Also saw there was ...
1
vote
1answer
34 views

to design three vertical Axes in beamer presentation

Would you mind helping me in drawing three vertical axes to explain that for each time t_{1}, t_{2}, ..., t_{i} there is a corresponding price p_{1}, p_{2}, ..., p_{i} and a corresponding volume ...
2
votes
0answers
23 views

How to insert a Tableau sheet into a TeX document? [closed]

I have an interactive chart in Tableau. Is it possible to import this into a LaTeX document?
1
vote
0answers
57 views

How to return a list of connected nodes? Tikz

I am building a graph with nodes and edges in Tikz. Is there any commend which returns array of connected nodes to a particular node? for example, I have 3 nodes A,B,C and only A and C are connected ...
0
votes
0answers
19 views

Tables with cross-row connections

Is it possible to create a table with two sets of rows (right and left) connected by lines as it is shown below:
-2
votes
0answers
52 views

How can I get the following diagram? [duplicate]

I was wondering what would be better ways to get the following diagram with tikz? Thanks The code : \documentclass[a4paper,10pt]{article} \usepackage[utf8]{} \usepackage{tikz} ...
4
votes
1answer
68 views

Animate dynamically generated graphs in PDF using LateX

I am new to the board and I am hoping the good folks here can help me as I have been looking all over the internet but not been able to find a solution to my particular problem. However I'm relatively ...
1
vote
1answer
37 views

Ferrer's Graph Implementation

https://en.wikipedia.org/wiki/Pentagonal_number_theorem Hello. I would like to implement the Ferrer's graphs in the Wikipedia article above into LaTex. I have tried using arrays with \bullet but I ...
1
vote
0answers
33 views

In search of automatic drawing finite state machine graphs

I am looking for some layouts or methods with which I could draw Finite State Machine graph. I have tried a lot of Tikz library layouts like: spring, necklace, electrical and so on. Main thing what I ...
2
votes
1answer
38 views

Reproducing a directed graph with labeled edges

I am trying to implement the following graph : . I came up with a MWE, but I am unable to draw the curved edges. The code is shown below: \documentclass[11pt]{scrartcl} ...
1
vote
0answers
43 views

Please help me plot this graph [closed]

How do I plot the following? Plot phi_(1)(t) vs t with the initial conditions phi(0)=0=[phi(0)]' for the equation [phi(t)]"+ 4.7124 [phi(t)]'+88.8268sin[phi(t)]-115.4749 cos(6.2832 t)=0 Plot ...
2
votes
1answer
35 views

Why my Lualatex can't find spring layout

I am trying to draw my spring layout graph, but I am getting and error, which says that spring layout is unknown. P.s. I works with all other layout for example necklace. What could be wrong my code: ...
0
votes
0answers
11 views

Loading MPS to PDF error

I am getting an error with this code: \documentclass{article} \usepackage{geometry} \geometry{ a4paper, total={210mm,297mm}, left=5mm, right=5mm, top=20mm, bottom=20mm, } \usepackage{tikz} ...
1
vote
1answer
39 views

necklace layout string(node) text insertion

How to insert node(arrow) text in the graph of simple necklace layout? my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{quotes} \usetikzlibrary{shapes} ...
0
votes
0answers
37 views

How to get normal electrical layout graph

I want to draw an electrical layout graph with 10 elements, what I am trying to do is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{quotes} \usetikzlibrary{shapes} ...
4
votes
2answers
281 views

Please, how can I get the following drawing?

I was wondering what would be better ways to get the following diagram with tikz? Thanks The code : \documentclass[a4paper,10pt]{article} \usepackage[utf8]{} \usepackage{tikz} ...
2
votes
1answer
20 views

How to align the nodes of a graph?

I am using the following codes to get my graph, \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[->,auto, node distance=3cm, ...
1
vote
1answer
40 views

Drawing graphs in latex with text-only vertices

I want to extend the implementations of the examples here to represent graphs with vertices simply represented as text as shown in the figure . I wasn't able to find similar templates/examples in ...
0
votes
0answers
41 views

Operad theory, trees and an identity

Please Ignore the stuff I am writing, it is incomplete, and I am just building a skeleton for a paper I am writing, just focus on the image. I just caught an error, m is supposed to be a. And there ...
2
votes
1answer
50 views

How to add label at center of three nodes and have it pointed to nodes respectively?

In tikz I have three nodes as following: \documentclass{article} \usepackage{pgf, tikz} \usetikzlibrary{arrows, automata} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[>= ...
3
votes
1answer
41 views

Rectangle split in tikz graphs using simple necklace layout

I am trying to split my rectangle nodes by half with rectangle split command, but I am getting compiling error for unknown command. What I am trying to do: \documentclass{article} ...
1
vote
1answer
34 views

Luatex vs Xelatex automatic graphs drawing

I have question about automatic graphs drawing with latex. So I want to use \usegdlibrary To generate my graphs layout automatically without my interruption where to put states and nodes. Is it ...
0
votes
1answer
62 views

How can I draw this population pyramid graph with pgfplots?

I'm using this code and it works fine: How can I draw a pretty population pyramid graph with pgfplots? But I want to draw the population pyramid like this in figure. Please guide me how to di it.
5
votes
2answers
132 views

Tikzpicture: draw edge from node to bent edge

I have an argumentation framework that has attacks on attacks. So basically what I would like to draw is nodes with edges and edges attacking these edges. What I got so far: ...
4
votes
3answers
120 views

Positioning of nodes relative to edges in tikz

Earlier I asked a question about labelling the edges of graphs with arrows. Zarko presented a solution that, stripped down to its minimum, looks like this: \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
90 views

Drawing arrows next to edges on graphs

I need to draw several graphs (the graph theory kind) with arrows drawn next to the edges. Here is a rough sketch of the kind of thing I mean: I'm aware of tkz-graph and would like to use it if ...
3
votes
2answers
42 views

pgfplot bar graph legend and y labeling

I would like to ask how to get my results. My code: \begin{tikzpicture} \begin{axis}[ybar stacked, legend style={cells={anchor=west},at={(1.75,0.89)}}, area legend, %legend ...
0
votes
1answer
30 views

PGFPLOT bar graph possition legend and different notation

I would like to ask you about the bar graph and possition legend. \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} [ xbar, ...
1
vote
1answer
41 views

Tikz Picture not Graphing Exponentials

I am trying to graph two functions on the same graph: y=1 and g(x) = (e^(1/x))^3 - 1. But when I graph my function g with a sample size greater than 10, my graph completely screws up. I've confirmed ...
5
votes
2answers
143 views

Is there a clean way to create offset branches in gitdags?

Julien Cretel created the elegant gitdags package for easily generating educational git graphs, which I'm currently using to create educational and reference materials for my team. When discussing ...
8
votes
3answers
387 views

Any shorter code for drawing this in tikz?

Are there any possible shorter codes of drawing this diagram, maybe using graphs but it is not a regular polygon, or shortening the repetitive \draw in my code: %% filename henry3.pgf ...
1
vote
0answers
43 views

Tikz package to draw series-parallel graphs with many vars in series/parallel?

Goal versus the result: notice that the variables 2 and 3 on the right are inferior to 1 while the purpose was to have the variables 1, 2 and 3 equal like on the left. The code from here and its ...
1
vote
0answers
30 views

Exporting graphs from Mathematica to LaTex document?

Matlab has Matlab2Tikz while open for Mathematica2Tikz, more here. How can I export graphs such as Harary graphs from Mathematica to LaTex? Example graph generated in Mathematica without finding ...
6
votes
1answer
82 views

tikzpicture negative gamma function

I'm trying to plot the following graph in tikzpicture: However, I have a hard time defining the function properly, as my MWE currently is this: \documentclass[12pt]{article} \usepackage{pgfplots} ...
1
vote
2answers
47 views

Bipartite graph in xypic

Could you help me somebody please. I don't understand, how I can draw bipartite graphs using xypic, for example K3,3 or something like that.
3
votes
1answer
62 views

Picture with four intersecting lines

I have the following picture: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=1.5] \draw [<->,thick] (0,3) node (yaxis) ...
1
vote
1answer
40 views

Installing the sfg package

I'm on Windows 10 64-bit, with MiKTeX and TeXstudio. I want to draw signal flow graphs in LaTeX, so I have "installed" the sfg package, along with pstricks and fp (the prerequisites). Unfortunately, ...
4
votes
1answer
121 views

Plotting in latex

I have to produce few charts a week and finding very hard/time consuming typing in code for plots using Tikz. Graphs i have to produce are simple,most of the time linear or exponential and does not ...
0
votes
2answers
108 views

How to draw a region of inequality

Could you help me draw a region of this inequality: \begin{eqnarray} 3x_1 + 3x_2 \geq 27 x_1 + 2x_2 \geq 18 4x_1 + 2x_2 \geq 28 \end{eqnarray} I need two graphs: one with three inequalities marked ...
5
votes
3answers
131 views

How to graph an implicit polar equation?

I need to graph the following implicit polar equation using Latex I would be very thankful for any help. Thanks
4
votes
2answers
121 views

Drawing a large graph with mathematical expressions inside vertices

How do I draw a graph similar to this picture in LaTeX? The inequalities in the vertices are quite big in size, they're not small labels like A, B. I would like to have some expressions on the edges ...
10
votes
1answer
155 views

Part of function domain omitted using pgfplots

How would I plot the equation x^6+y^5cos(x)=1 and make a graph? I usually use pgfplots, but I am not sure how to work around the equals sign in this equation. When I solve for x and plot the function ...
2
votes
1answer
48 views

Put their value on each edge of the graph

I have a graph made in latex and each edge (line of the graph) has a corresponding value. How could I to put their value on each line of the graph, preferably close node that originates? Below is my ...
3
votes
2answers
96 views

Drawing trees with xymatrix

I would like to draw trees using xymatrix, however using for example \xymatrix{\ar@{-}[dr] & & \ar@{-}[dl]\\ & \ar@{-}[d] & \\ & & } returns the image My problem with ...
1
vote
2answers
208 views

Draw a line in the given graph

\documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} \draw[thick,latex-latex] (-6,0) -- (6,0)node[right]{$x$}; \draw[thick,latex-latex] ...
0
votes
2answers
105 views

How to draw below network in latex?

I am new to Latex, i have to draw above diagram in latex. Can any one please help me, How to draw above network diagram in Latex.
2
votes
1answer
129 views

How to draw the graph of function x+y=100

Following is the code for drawing the graph of x+y=4. Now i am thinking to draw the graph of x+y=100 for that what are the necessary changes in the given codes. \documentclass[12pt,a4paper]{article} ...