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

learn more… | top users | synonyms

10
votes
1answer
159 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
101 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
226 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
110 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
139 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} ...
0
votes
1answer
79 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
396 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
196 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
73 views

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

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
178 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 ...
8
votes
1answer
115 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
82 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
56 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} ...
8
votes
2answers
518 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
330 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} ...
4
votes
4answers
214 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 ...
9
votes
1answer
5k 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}; ...
5
votes
2answers
360 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
65 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 ...
1
vote
1answer
168 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
106 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 ...
1
vote
1answer
146 views

Creating a grid with different color vertices (graph)

I am new to using tikz and I have never used ifthenelse statements in latex before, but I am trying to create a grid where the vertices on every other diagonal are a different color and shape. This is ...
5
votes
1answer
124 views

Is it possible to draw a tree using standard syntax without overlapping, if graphdrawing is loaded?

It seems that merely loading the graphdrawing library can mess up drawing a tree using the standard TikZ syntax. Is there a way to avoid this unwanted effect? For example: ...
6
votes
1answer
259 views

How to draw a complex graph

I can draw a simple graph like this, but if I want to draw a complex one like this, I feel frustrated. How could I do it? The following are the codes which I drawn the first graph. ...
0
votes
0answers
54 views

Tikz, graphdrawing - common style for groups of nodes

I'm using tikz's graphdrawing library. I would like to define a common style for a group of nodes. What is the correct way of doing so ? Currently I specify the style per node, e.g. \graph[random ...
2
votes
1answer
92 views

A simple cycle with text instead numbers

can somebody help me to replace numbers to any text in the following graph: % A simple cycle % Author : Jerome Tremblay \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
5
votes
0answers
69 views

Why is this edge not straight when using subgraphs in layered layout?

The MWE below produces a simple graph. When I add the two upper nodes A1 and B1 to a subgraph the horizontal alignment is lost which is understandable, since the nodes in the subgraph are positioned ...
5
votes
3answers
123 views

foreach loop for adding arcs using commands path and edge

i want to know how to use the foreach loop for adding arcs using commands \path and edge. For instance, the following code generates a cycle and the task is to add the arcs not manually: ...
5
votes
1answer
180 views

tikz: help with this foreach loop

i'm getting an error in this code, can someone help me. I'm trying to create two concentric cycles, but it doesn't seems to work. \def\n{10} \defn\radio{3.00cm} \begin{tikzpicture} \foreach \x in ...
4
votes
1answer
146 views

What is the easiest way to draw a graph with asymptotes using TikZ?

I have a graph with some extra graphics on it: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ declare function={ f(\x) = 4/(1+pow(\x/5, 2)); }] % partitions ...
0
votes
3answers
117 views

Taylor's diagrams package : set color of individual elements

In Paul Taylor's diagrams package, is it possible to set the color of specific elements in a diagram? If so, how? I have tried using \color{a_color}. It changes the color of part of the diagram, but ...
3
votes
1answer
92 views

AND-OR Graph from Horn clauses

Does anyone know if there is a way to generate a nice graph from Horn clauses? for example: Ideally, I would like to generate AND-OR graphs like this directly from Horn clauses written in Latex; ...
3
votes
3answers
203 views

How can I make the loops fatter?

In this code, how can I make my loop fat? I know how to make it longer, but I want it wider as well. Please try to tell me using this code, and not new code. I'm new to tikZ and this is what is ...
3
votes
1answer
111 views

Changing arrow style between graph and legend

I want to have the arrows on the ends of the graph but have the legend just show straight lines (without arrows). MWE: \documentclass[12pt]{article} \usepackage{amsmath, amssymb} ...
10
votes
2answers
950 views

Putting tick marks on graph without label using TikZ

I'm trying to create a piecewise function on a colored background with TikZ that has tick marks on the coordinate axes every 2 units but a grid that intersects the axes every 1 unit. The problem I ...
6
votes
4answers
485 views

Simple and intuitive tool for generating simple diagrams

I am looking for a simle and intuitive tool for generating simple diagrams to be included in tex document. The graph I want to convert into tex is given below: Ideally, I would like to end up with ...
1
vote
1answer
168 views

Graphing y=x^2 and y=x

I want to draw the region bounded by y=x^2 and y=x. Any ideas? I was hoping this would be somewhat simple. I've tried used a similar, with \begin{axis}..\end{axis}, but it doesn't like that. Did I not ...
4
votes
3answers
523 views

Adjusting edge and vertex label

I am using the following code (thanks to several answers on TeX.Stackexchange) to draw a small bipartite graph: \documentclass{article} \usepackage{tkz-berge} \usetikzlibrary{fit,shapes,arrows} ...
4
votes
1answer
246 views

How to plot a bifurcation graph

I am trying to make just a general picture that looks like this one: It doesn't have to look exactly like this, but just look like a general bifurcation in similar spirit to this one. And here is ...
1
vote
1answer
79 views

How to put labels on a plotted graph?

\documentclass{amsart} \usepackage{tikz} \usepackage{pst-plot} \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture} \draw[->] (-3.5,0) -- (3.5,0) ...
2
votes
1answer
87 views

plotting spectra using r-studio in latex

Hi all. How can I create Raman graphs in latex? I have allready plotted it but I couldn't got it using Latex. So how can I merge between two software?
6
votes
3answers
7k views

Drawing undirected graphs in LaTeX

I came across this graph in the question Drawing graphs in LaTeX: without arrows? Is it possible to draw graphs like this one in LaTeX but without the arrows? edit: I found this piece below, but ...
1
vote
2answers
186 views

Windows spreadsheet - latex export

I am trying to find a Windows available spreadsheet with an option of graphs export to LaTeX. It would be great to export it directly from Excel, but I've read that it is not possible furthermore I am ...
1
vote
1answer
68 views

How to typeset a graph of a binary relation?

What is the best way to typeset in LaTeX a graph of a binary relation on $\mathbb{R}$ similar to the following: The bold lines denote a binary relation (consisting of three line segments).
1
vote
1answer
207 views

How can we draw these graphs like in this book?

Can you show me which tools we can use to draw the graphs look like in this book? (see below figure). Sorry, I don't know exactly where I can post this question.
1
vote
0answers
46 views

Including graph using tikz causes not including bibliography file

I am experiencing problems using package tikz. I have produced a graph in R and want to include it in my tex file using package tikz. After I include the the tex file with graph in myfile.tex with ...
4
votes
2answers
533 views

drawing curve line between predefined edges

Im trying to draw the following figure in LaTeX format: My question is how can I draw the curved line passing through the nodes shown in the figure? And how to change the color of the nodes left ...