Tagged Questions

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

13 views

3D Plot of Surface w/ Axes, Showing Intersections of Axes w/ Surface

I would like to be able to plot the graphs of functions of two variables, and I'd like the resulting figures to look like any of those shown below. In particular, I want: the x-, y-, and z-axes to ...
22 views

Box Plots in tikzpicture - Two Plots per y tick

I need a Box plot with two boxes on each ytick. Any ideas? \begin{tikzpicture} \begin{axis} [ title=Scenario 1, height=6.0cm, width=8.0cm, xmin=6, xmax=20, ...
23 views

edges on graph do not align with center of nodes in foreach

As far as I can understand this should draw the same set of five edges in exactly the same way. The first set of edges are positioned correctly. But the second set of edges is horribly aligned. On ...
99 views

Financial graph LaTex style

I am used to work with LaTex, but I am totally stuck trying to plot the following graph and include it in my paper using a LaTex layout. Here below I am also reporting the dataset (markdown does ...
159 views

How can I draw this graph with TikZ or forest?

I want to replicate the structure of the picture below. I don't want to replicate the appearance. This LaTeX code \documentclass[tikz,convert={size=640},multi]{standalone} ...
32 views

tikz: nodes overlapping with edges on graph

I'm trying to reproduce a graph from a paper using Tikz, the graph that I'm trying to reproduce is the following: But without the horizontal curved line and brackets on the left subtree. So far, ...
81 views

Labelling Tikz Directed Edges

I am struggling to label my edges in my Tikz directed graph. I have tried using the tikz library quotes in my preamble by no success. I currently have the code \begin{tikzpicture} ...
49 views

How to add one more leave to my tree graph?

\documentclass{article} \usepackage{qtree} \begin{document} \Tree [.X leaf_1 [.Y leaf_2 [.Z leaf_3 last !{\qbalance} ] ] ] \end{document} I would like to add one more leave and node under leaf_1.How ...
72 views

How can I plot a graph in beamer step by step

I want to plot this graph in beamer and I don't know how! I want plot step by step this graph.. Step 1: Step 2: Step 3: Step 4: I write this follow \documentclass{beamer} ...
39 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 ...
43 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 ...
70 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 ...
73 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 ...
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 ...
26 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?
58 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 ...
20 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:
75 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 ...
42 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 ...
50 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 ...
46 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} ...
46 views

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 ...
44 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: ...
15 views

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} ...
43 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} ...
41 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} ...
294 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} ...
29 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, ...
47 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 ...
52 views

Operad theory, trees and an identity

I am trying to achieve the operad insertion shown on Wikipedia here. I can't figure out how to put a \circ sign between first two and an equal to sign between the others as shown on Wikipedia. Also ...
53 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}[>= ...
44 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} ...
45 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 ...
69 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.
146 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: ...
157 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} ...
116 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 ...
43 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 ...
42 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, ...
43 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 ...
146 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 ...
388 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 ...
49 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 ...
35 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 ...
93 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} ...
54 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.
67 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) ...
41 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, ...