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

learn more… | top users | synonyms

4
votes
2answers
324 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{...
2
votes
1answer
40 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
57 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
55 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
57 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
50 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
72 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
83 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
155 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: \begin{tikzpicture}[-&...
4
votes
3answers
267 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
155 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
50 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 style={at={(1,-1)...
0
votes
1answer
57 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, %enlargelimits=0.14,...
1
vote
1answer
44 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
150 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
391 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 \begin{...
1
vote
0answers
56 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
44 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
104 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
66 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
71 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
42 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
128 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
122 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
156 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
144 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
163 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
49 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
118 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
270 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,-...
0
votes
2answers
143 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
153 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} \...
1
vote
0answers
16 views

Determine the number of non planar graphs G with 6 vertices? [closed]

Give an example of a non-planar graph of order 6 that contains neither K_5 nor K_3,3 as a subgraph ?
1
vote
0answers
22 views

Want to draw same graph by changing scaling of the axis [duplicate]

\documentclass[12pt,a4paper]{article} \usepackage[a4paper,bindingoffset=0.2in,left=0.7in,right=0.7in,top=0.7in,bottom=0.7in,footskip=.25in]{geometry} \usepackage[centertags]{amsmath} \usepackage{...
0
votes
1answer
87 views

Figure with tikz composed by a graph and other object

I drawn a graph with tiKz package. \begin{figure}[htp] \centering \begin{tikzpicture} [shorten >=1pt,node distance=2cm,on grid,>=stealth',initial text=, every state/.style={draw=blue!50,very ...
6
votes
1answer
419 views

TikZ - Huffman tree

I used the SimpleHuffman.lua file, placed it in the same folder as my tex file and compiled the following code ("35.8.3 How To Generate Nodes Inside an Algorithm" in pgfmanual) using LuaTeX: \...
1
vote
1answer
264 views

How can I draw a circular graph in tikz?

I want to draw a wheel graph which is a cycle of nodes centred on another node. What I would like is to draw edges or other paths between the cycle's nodes in a way that they form an actual circle, ...
2
votes
0answers
78 views

Stepwise edge hightlighting (tikz) doesn't work with template [closed]

I'm just now working on a written paper for a presentation I've given and would like to reuse the graphs developed for the slides. Unfortunately the template given for the paper somehow screws with my ...
2
votes
1answer
216 views

Custom labelling of nodes in a graph

I have this complete subgraph: \begin{tikzpicture} \graph[nodes={draw, circle}, n=5, clockwise, radius=2cm] { subgraph K_n; }; \end{tikzpicture} If I wish to somehow distinguish vertex number 3,...
8
votes
1answer
131 views

Struggle with floor- and ceiling-functions in pgfplots

Could anyone help me with this struggle? I don't get, why the floor- and ceil-functions in the axis-environment of pgfplots and in floating text differ from each other. Aren't they both processed by ...
1
vote
1answer
96 views

How to draw graph of logarithm function?

I can draw polynomials using Tikz in Latex but I am not able to draw graphs of logarithms,exponential etc.
1
vote
1answer
60 views

pgfplots plotting inverse exponential not working?

I am trying to plot a graph of 100*e^(-x/5) in LaTeX but for some reason it will only plot up to x=5. \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{figure}[h]...
8
votes
2answers
539 views

How to make my ugly graph look nice?

I am 2 weeks into using LaTex so pardon my noob-ness :) I have some data in my physics lab that I need to graph, which I have in a tab-delimited text file called current-force.txt. I graphed the data ...
4
votes
0answers
410 views

Creating a timeline

I am working on my thesis and need to create a timeline similar to this: I tried Chronosys package but am not sure if this is a good choice. \documentclass{article} \usepackage{chronosys} \begin{...
4
votes
4answers
224 views

Create dependency graphs between characters

I was asked in thread 139691 to open a new question - so here we go: I need to create dependency graphs between characters in LaTex. As the output shall be processed via "pdflatex" later on, I opted ...
11
votes
1answer
7k 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=...
5
votes
2answers
373 views

Graphing sqrt(x^3+x^2)*sin(pi/x) gives horizontal line

I have no idea how this website works, so i will do my best. \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \...
3
votes
3answers
67 views

Point object distorted because of proportions command

I'm struggling with my first Tikz graph. I would like to plot a circle in the coordinate (20.48,0.6358) which corresponds to a minimum. However, given that the axis have different scales ([x=0.15cm,y=...
1
vote
1answer
198 views

Basic undirected graphs in TikZ

Hey TeX Stack Exchangers, I have to draw some really basic undirected graphs in TikZ and struggling to find documentation that fits my needs. Each of my graphs has 10 edges and an equal number of ...
3
votes
1answer
122 views

Using mathmode in '\graph[layered layout]' environment

I am trying to get into TikZ and pgf to create figures and graphs. In the package there is the \graph command, which provides a simple yet power full interface to draw graphs and trees. However I can'...