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

learn more… | top users | synonyms

2
votes
2answers
253 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, ...
4
votes
1answer
131 views

Plot 2-D data point in just one plan

everyone! I have got a little problem trying to draw in LaTeX. Let me try to explain: I have a xyz-axis, as you can see on the figure below. Plotting any 2-D data point graph in the xy-axis: ...
2
votes
1answer
219 views

Bent paths via relative point from node to node

I'm trying to draw a network flow diagram in tikz, and am having some problems. Here is what I have so far: However I'm having 2 problems with it currently. First of all, for some reason, arrow ...
4
votes
1answer
496 views

Tikz paths not starting/ending at edges of nodes

I'm trying to draw a graph with directed arcs. There will be quite a few arcs, so I'll need to bend them in various ways so the diagram is legible. Here is what I have so far: \begin{tikzpicture} ...
0
votes
1answer
311 views

Import selected rows without header in pgfplots

Import of selected rows of a data set (without header line) The import should make use of the column numbers instead of row headers. The pgfplots' manual presents the possibility to use the command ...
3
votes
1answer
148 views

Best way to produce a graph similar to one generated by Maple

I wish to produce the following graph from Maple in my Latex document, here is my Maple code: p := x -> ...
5
votes
3answers
243 views

Move graph nodes on a circular path while keeping the circle

I would like to show nodes on a graph. The graph shape should be a circle. I would like to move the nodes while keep the circular shape. The following is what I can create with four nodes and it ...
3
votes
0answers
130 views

How to color groups of bars in a graph, coming form an external file?

I have a graph displaying bars and error bars, the numbers comming from an external .dat, being simply black and white. And this is how I got there: \documentclass[12pt]{report} ...
1
vote
0answers
150 views

Drawing the area under the curve of a function in LaTeX

Could you give me some guidance for producing a simple graph showing the integral of a function as the area under its curve?
3
votes
2answers
304 views

Overwrite TikZ auto placement of weights in graph

So I have the following graph: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usepackage[english]{babel} \begin{document} ...
1
vote
0answers
95 views

ASCII graphs in LaTeX document?

I have ASCII graphs which I want to get nicer like the below. How can I embed ASCII graphs nicely converted to LaTeX document? Input 11 11 01 10 <-> 10 01 00 ...
4
votes
4answers
474 views

How to plot a curve in a polar form r = f(Θ)?

Can we use LaTeX to make the graph of $\rho = \sec(\theta)$?
5
votes
2answers
353 views

How can I make this diagram about graphs in LaTeX?

How can I make the following diagram in LaTex:
7
votes
1answer
174 views

Emphasize labels in a graph

I've got a graph with nodes and arcs between them. Then I added labels to the nodes. My problem now: The labels are partially unreadable because the arcs disturb. Do I have an opportunity to ...
8
votes
2answers
404 views

Draw edge on arc

I would like to draw an edge between two nodes which lies on a clip of an circle. For small angles I was able to get some more or less realistic appearance by using bend left and bend right, but for ...
3
votes
1answer
173 views

Making Tikz automatic node placement relative to the quantity of nodes

This is a follow-up question to this one: Making Tikz automatic node placement work Especially to the post of Mark Wibrow (second one). His solution works with 16 nodes, but I'm looking for a ...
4
votes
1answer
175 views

Change the forms of curves to distinguish between them

If we assume 2 curves in the same figure. So to distinguish between them, we set a different colors for them. However, can we change the form not the color ? In other words, if we assume that we have ...
1
vote
1answer
454 views

TikZ graph with interesting vertices

I'd like to use TikZ to typeset some graphs like this one: (Sorry for the crappy camera-phone pic) I am familiar with \node, \path and edge, as well as with getting different arrowhead styles. ...
4
votes
2answers
159 views

drawing two curves in the same figure

Please i need someone who can help me to draw two curves into one figure. I need to draw the two curves Y1 and Y2 in the same figure. By the way, i tried to write the code below: ...
6
votes
2answers
262 views

Graphs in commutative diagrams in TikZ

I want to draw a diamond shape commutative diagram using tikz. Instead of just letters I want to have simple graphs (just edges and vertices) in the diagram. I tried some stuff but the diagram still ...
8
votes
1answer
1k views

Problem with a TikZ/Geogebra plot of an exponential function (even if using CVS version definition)

I wanted to graph the function f(x)=(-1+4x^2)*e^2 in a coordinate system. Using "Export Graphics View as pgf/TikZ" in Geogebra I got the following code (here shown after I did some minor changes ...
6
votes
2answers
1k views

Making Tikz automatic node placement work

I have found some tikz code that uses a development build (past 2.10) and I am trying to get it to work (I sense that I am doing something rather silly). For what is it worth, I confirmed that the ...
4
votes
2answers
439 views

Simple directed hypergraphs in TikZ

I'm looking for a simple way in Tikz to draw directed hypergraphs, where the hyperedges are ordered pairs of sets of vertices. For example I would like the hyperedges ({a,b},{c}) and ({c},{a,b}) to be ...
13
votes
3answers
783 views

Which LaTeX package is needed to draw radar-like diagrams?

Can you please suggest some LaTeX package of drawing charts in the format mentioned below? It should offer the possibility to put text as "Text A" as well as "Text B" . Note: Currently I'm using ...
9
votes
2answers
5k views

How to draw Bar & Pie Chart

I'm want to include two graphs mentioned below in a document. I'm able to draw pie charts using pgf-pie. Is there any package which is capable of generating BAR & PIE Chart both? [Also which ...
7
votes
1answer
240 views

Breaks in tikzpicture graph

I have a graph drawn using tikzpicture and even though I've increased the resolution there are still gaps in the graph itself. \documentclass{article} \usepackage{tikz} \begin{document} ...
16
votes
4answers
889 views

The package to visualize graphs

What could be the packages to use for visualization of graphs? I tried Graphviz, but it's very hard to direct how the graphs should be shown. How can I make the graphs represented as is shown in the ...
1
vote
0answers
35 views

How to handle more than 9 parameters in Kiviat Diagrams? [duplicate]

This email is regarding Solution 2 mentioned in this post to draw Kiviat Diagrams. This Solution is working perfectly upto 9 axis. But when we make number of axis as 10, it's giving error as : "You ...
7
votes
3answers
2k views

How do I change the aspect ratio of gnuplot output?

How do I change the aspect ratio of the canvas of a gnuplot plot in LaTeX using the gnuplottex package? The following changes the aspect ratio of the output but not the canvas size, thus leaving a ...
4
votes
1answer
113 views

Range chart by category and value

Basically I've been writing my work with XeLaTeX enthusiastically now for about a year and love it, but today for the first time I tried to draw a graph and realised I still have a lot to learn. ...
2
votes
1answer
143 views

How can I change the color only of the links pointing to node 3?

\documentclass{article} \usepackage{graphicx} % \usepackage{amsfonts} % \usepackage{amsmath} % \usepackage{verbatim} \usepackage{tikz} \usetikzlibrary{arrows} ...
7
votes
3answers
424 views

Numbering nodes in a for loop

I've just started using TikZ to make basic graphs, and I'm trying to reproduce the Petersen graph. I've managed to make it without using for loops, but this obviously isn't a great method for bigger ...
3
votes
1answer
871 views

Varying edge thickness

A couple of months back, I had asked a question regarding an elegant way of drawing a somewhat sophisticated graph. Thanks to the community I received tremendous help. To avoid repeating the whole ...
10
votes
3answers
2k views

Function graphs

Can you help me with my page of function graphs? I could make the first four graphs but there is a problem with plotting by others. All graphs should have the same size like the first four ones. Thank ...
2
votes
1answer
683 views

TikZ - graphs of elementary functions

I would like to ask you if you have something like graphs of elementary functions on one page made in TikZ. I write thesis and I would like to get inspired by your code and design. It would be very ...
9
votes
1answer
388 views

tikz problem (non-continuous function) [duplicate]

I want to plot a function x^3/(x^2-1) but it doesn't work. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[domain=-5:5,smooth] \draw[->] (-5,0) -- (5,0) ...
8
votes
6answers
675 views

By which pkg to visualize a hypercube graph?

I am trying to visualise hypercube like the below. I have asked help here but getting nodes on top of each other with the packages there. The N-th hypercube has 2^n nodes and each vertex with the ...
0
votes
1answer
305 views

Can LaTeX create graphics with mathematical curves? [duplicate]

I am trying to see how good LaTeX is. Can someone show me whether graphics like this. Thank you due to copyright complains removed the figure.
3
votes
1answer
225 views

Representing Equivalence Relations with Nodes, Loops, and Edges

I've never used TikZ for illustrating equivalence relations, but I thought I'd try it out. What I'd like to produce is something like this: What is the general method for connecting points to ...
2
votes
3answers
290 views

Representation of Cross Product: A tikz Approach

How can I produce the following graph in tikz:
5
votes
1answer
536 views

How do you make a tkz graph with edges starting and ending at the same vertex?

I am trying to use the tkz-graph package to put together a directed graph. I have never used it before, so I am trying to piece together examples I have found on the internet. Below is the code that I ...
25
votes
2answers
627 views

How can I produce the history graph of a Git repository in LaTeX?

Is there a relatively simple way to produce the history graph of a git repository in LaTeX? I'm looking for something nicer-looking than the verbatim output of git log --graph --oneline
6
votes
1answer
551 views

Finite complete graph of arbitrary size in Tikz

I want to present a complete graph of arbitrary finite size. This means a number of nodes which are interconnected to all other nodes. In addition I want to clearify that the number of nodes is not ...
11
votes
2answers
639 views

TikZ - Four Colored Circle Split

Following @Alain Matthes's reply on this question, wa can get a picture like this: I am not good enough to adapt the code to split the circle into 4 quarters. Can you help me? ...
1
vote
1answer
447 views

Drawing bipartite graph

I want to draw graphs with white and black vertices, such as square-octagon graph. Someone knows the easy way to draw in Latex? Thanks a lot!
6
votes
1answer
451 views

How can I create a queuing node using tikz?

I am a newbie trying to recreate an M/M/1 queue in tikz and would really appreciate any help.
1
vote
1answer
180 views

Legend entry with curve fits

I am plotting two data sets with curve fits added manually (by defining two functions). How can I edit my legend entry to combine the data points and lines into one icon? So instead of having four ...
1
vote
0answers
79 views

Work diagram help [duplicate]

I am trying to create this sort of diagram (or graph). The X axis is time, Y axis are projects/tasks and lines through them are people (employees) working on certain task in given time period. I've ...
5
votes
1answer
365 views

Undefined control sequence on \frac?

I'd like to generate PDF's for some ad hoc screenshots, but I'm getting an undefined control error. I tried \usepackage{amsmath} after the line \usepackage{pgfplots} but that didn't work. I thought ...
1
vote
1answer
160 views

Can I write descriptions and notes into a diagram with Latex?

I just wanted to know if it is possible to write things into diagrams. I'm writing a scientific paper in German. So I need to edit a diagram by removing all English descriptions and writing them in ...