7
votes
7answers
757 views

Simplest way to create a grid with colored squares and labels

I am trying to create a grid with colored squares, multi-line labels within the squares, and labels on the axes. Is there a simple and easy way to achieve this? This question is the closest I could ...
19
votes
2answers
337 views
+50

Why does PGF/TikZ 3.0 draw my simple layered graph as non-planar by default?

I have two questions: If I’m reading §30.4 “Crossing Minimization” of the PGF/TikZ 3.0 manual correctly, the layered graph drawing algorithm should have crossing minimization enabled by default. So ...
2
votes
1answer
54 views

pgfplots: how to add a label to a graph with the option clip=true?

Question I would like to add a label to my graph, on the right of it or at any other place, for instance somewhere above my graph. Is it possible? I want to use the option clip=true, because of the ...
6
votes
2answers
157 views

how to draw a cut through a graph in latex

I want to draw a cut through the graph, like a line passing through the edges from the source to gamma, source to alpha and source to omega. I am doing that to demonstrate a minimum cut in a network ...
2
votes
1answer
68 views

draw side by side graphs and make them more clear

I have two problems and sincerely I am trying to resolve them, but unfortunately I am not able...That is why I will appreciate very much your help. 1) My article architecture consists of two columns ...
7
votes
3answers
164 views

How to arbitrarily center these drawings?

I have adapted the following to draw lines from the center of a circle out to n equally spaced points on a circle (the n th roots of unity, or the points of an n-gon, or a star graph). I need to be ...
4
votes
1answer
71 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 ...
10
votes
2answers
288 views

How can I produce such a graph of my piecewise function?

I am writing my thesis in behavioural economics and have to draw individual discount functions, I did the following graph with stata, but would love to have it with tikz. I played around in tikz ...
0
votes
0answers
146 views

ProTeXt can't find tikzlibrary graphdrawing

I've been trying to draw a nice graph for my Computer Systems course, and have run into the following issue. When I try to include the TikZ library "graphdrawing" the compiler fails to find it. Here ...
4
votes
1answer
90 views

Drawing directed hyperedges with TikZ

I'm currently working with modelchecking of symbolic dependecy graphs for my semester project in Computer Science, and am dire need of an easy way to draw dependency graphs preferably using TikZ. My ...
2
votes
1answer
82 views

Automatically define domain of function

I use the following code to depict mathematical functions. This is my coordinate system: \newenvironment{graph}[2]{\begin{tikzpicture}[scale=0.6] \draw[->] (0,0) -- (10,0) node[right] {$#1$}; ...
6
votes
1answer
174 views

How to plot a graph from its adjacency matrix?

For example, I want to plot a graph whose adjacency matrix is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the ...
6
votes
2answers
373 views

2D and 3D vectors in Tikz

I would like to draw some 2D and 3D vectors in Tikz with certain properties. The following primitive graph sums what I desire: I just need the first quadrant of the Cartesian coordinate system for ...
12
votes
1answer
246 views

Problems with the `graphs` library

According to the documentation for version 3.0.0 of PGF/TikZ (Section 19 Specifying Graphs, page 258), the powerful graphs library: [...] offers a powerful path command for specifying how the ...
4
votes
1answer
73 views

Creating a directed graph with some cosmetic structure

Via utilizing Tikz, I would like to create a graph such as the following : So I would like to have a classical directed graph, where there is some text in each node. Moreover there is a single ...
1
vote
2answers
144 views

Circular graph with many nodes

I have a simple circular graph with N nodes. However N could be arbitrarily large, so I use an ellipsis between nodes. I use the following code: \documentclass[a4paper,10pt]{article} ...
3
votes
2answers
112 views

Ellipsis positioning when drawing large graphs in Tikz

I tried to use Tikz to draw large graphs with specific toologies and I am running into some problems. Since not all nodes can be represented explicitly, I am forced to use an ellipsis. I tried to ...
4
votes
1answer
61 views

controlling the angle of line/curve endings

Is there a way to control the line endings of a line/curve to be vertical. It is easier to explain with a picture. Here I have drawn a curve, but as you can see the lines end at the angle equal to the ...
1
vote
0answers
203 views

Tikz edge label position

Is there a way to set the location of the position of edge label when using the tikz graph package? I attempted to look for samples of this being done in the manual, but was unable to find any ...
3
votes
1answer
98 views

Change distance between nodes in tikz graph

I am attempting to do this, but I cannot seem to find the correct syntax for it in LaTeX. Here is what I have: \documentclass[12pt]{article} \usepackage[english]{babel} \usepackage{tikz} ...
5
votes
2answers
129 views

How to give a label to nodes which already contain a tikzpicture with nodes.

I am a beginner at TikZ and LaTeX. This is what I currently have: I would like to label each of these rectangles (i.e. graphs) with a single letter, i.e. G. This is the code for a single graph in ...
4
votes
1answer
102 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
100 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
158 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
114 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 ...
5
votes
3answers
167 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 ...
2
votes
1answer
140 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} ...
7
votes
1answer
147 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
203 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
141 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 ...
1
vote
1answer
340 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. ...
6
votes
2answers
214 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 ...
7
votes
1answer
614 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
570 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
281 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
559 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 ...
2
votes
2answers
2k 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
193 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} ...
1
vote
0answers
33 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 ...
4
votes
1answer
86 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
77 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
262 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 ...
2
votes
1answer
144 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 ...
9
votes
3answers
786 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
368 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
267 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) ...
3
votes
1answer
174 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
241 views

Representation of Cross Product: A tikz Approach

How can I produce the following graph in tikz:
6
votes
1answer
355 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
469 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? ...