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

learn more… | top users | synonyms

0
votes
1answer
47 views

Drawing a graph with two functions

I would really like to have a graph as you can see on the picture below. But I do not have any idea how I can realize this with latex. I am sorry for asking you like this, but I am quite new with this ...
1
vote
2answers
18 views

How to make a literal backslash in the digraph pacakge?

I'm trying to use the backslash \ character in one of my node names in the digraph package: \documentclass{standalone} \usepackage{graphviz} \begin{document} \digraph[scale=0.5]{abc}{ rankdir=LR; "\...
1
vote
1answer
37 views

TikZ Smith Chart with s2p (touchstone) files

I'm trying to plot touchstone (s2p) data exported from another software, but the touchstone coordinate system is rectangular. So I have to overlay a XY plot over the smith chart to get it right. The ...
9
votes
0answers
151 views

Branch TikZ graph always on the same side

I am trying to draw a graph (actually, generate TikZ code automatically) which has a main branch that must be straight; secondary branches must always branch on the left. On each layer there must be ...
5
votes
2answers
124 views

Use of forest/tree&box, how can I get result as attached picture,use forest drawing table

1.I want to change the forest height dynamic,like this for tree={ grow=0,reversed, % tree direction parent anchor=east,child anchor=west, % edge anchors edge path={none}, minimum width=...
1
vote
0answers
29 views

landscape graphs using matlab2tikz

I am writing my master thesis and I want to put 4 graphs on a page (2x2 matrix) that are generated using matlab2tikz package (.tex files), but I am not able to find any examples. I can find some ...
1
vote
0answers
33 views

Font consistency with Excel graphics

I am using Excel to create graphs to then include in my document. The workflow is as follows: Create Graph in excel, adjust width to same width as found from \textwidth, set font to "Book Antiqua" ...
8
votes
2answers
82 views

tikzpicture cv graph

I've got a problem with tikzpicture. I've made my cv in Latex but one thing isn't working fine. The first graph should look like the other ones. If I remove the enlarge y limit={abs=1cm}, the graph ...
3
votes
2answers
46 views

Tikz Draw on Digraph without repeating each arc command with [->]?

The graph of Case 1 is the correct but repeating statements for arcs. In comparison, Case 2 is easier and faster to write without repeating the arcs statements. I have a feeling that there must be a ...
0
votes
1answer
38 views

Colorful undirected graphs in Tikz to demonstrate equivalence classes?

I would like to learn to create this kind of pictures as below with colored vertices in Tikz. The vertex sizes can be the same. This is a graph demonstration (CC BY-SA 3.0) for equivalence classes ...
11
votes
1answer
6k views

Draw a graph in Latex with Tikz

I am interested in outputting this graph in latex using tikz: So far I got this: and my tikz code is \begin{tikzpicture} \node[shape=circle,draw=black] (A) at (0,0) {A}; \node[shape=...
1
vote
1answer
132 views

Inserting graph from a software in Latex

I made a graph with Desmos.com. Which I want to insert in my LaTeX code, on the right side of these equations: \documentclass[12pt,a4paper]{article} \usepackage[a4paper, total={6in, 8in}]{geometry} \...
1
vote
0answers
21 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 ...
4
votes
1answer
39 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, xtick={6,8,...,20}...
2
votes
1answer
28 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 ...
4
votes
1answer
105 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 ...
7
votes
3answers
182 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} \usetikzlibrary{graphs,...
0
votes
0answers
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 I ...
2
votes
1answer
45 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, ...
1
vote
2answers
92 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} \tikzset{vertex/....
0
votes
1answer
51 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 ...
0
votes
1answer
81 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} \usepackage{tikz}...
2
votes
3answers
301 views

Plotted line in tikz stops in middle of grid

The plotted line stops and doesn't go on till the border of the grid: This is my code: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \begin{document} \begin{tikzpicture}[...
1
vote
2answers
6k views

Importing a .png file into .tex file

I've been trying to input a graph into my .tex file, but it won't work. I've put the .png file in the same folder as the .tex file and a part of my code looks like: \documentclass[16pt, a4paper]{...
0
votes
1answer
46 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 ...
3
votes
0answers
42 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 node/....
1
vote
2answers
77 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
98 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
36 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 v_{1},...
2
votes
0answers
29 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?
5
votes
1answer
259 views

Draw string with linking numbers or no linking number?

How can I use LaTex (p.s. I use Mac OS 10.5.8 with TexShop 2.47) to draw strings with linking numbers or no linking numbers? If any experts know any examples below, please feel free to comment. The ...
1
vote
0answers
60 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 ...
14
votes
3answers
13k views

tikzpicture: How can I draw a loop right-below?

\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=4cm, thick,main node/.style={circle,draw,font=\Large\bfseries}] \node[main node] (1) {1}; \node[main ...
0
votes
0answers
21 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:
4
votes
2answers
315 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} \usetikzlibrary{...
4
votes
1answer
89 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
49 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
1answer
48 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} \usetikzlibrary{...
1
vote
0answers
61 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 ...
3
votes
1answer
55 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
47 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 log|...
2
votes
1answer
45 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
16 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} \...
0
votes
0answers
43 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} \usetikzlibrary{...
1
vote
1answer
56 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 ...
2
votes
1answer
33 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, ...
2
votes
1answer
56 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}[>= stealth,...
3
votes
1answer
47 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} \usepackage{...
1
vote
1answer
57 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
78 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.