TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.

learn more… | top users | synonyms (3)

4
votes
1answer
34 views

Figure one next to the other and hook to equation's points

I would like to connect two figures like the following. The code that I've already have is: \documentclass{article} \usepackage[english]{babel} \usepackage{ucs} \usepackage[utf8x]{inputenc} ...
3
votes
0answers
60 views

Plotting hemisphere using tikz

Can anyone help me with the plotting using tikz? I would like to plot the figure below in tikz but I do not know where to start. I have checked the examples given using "ball", yet I cannot find ...
2
votes
0answers
88 views

Best practices - How should one go about drawing lots of rectangular (=similar) shapes?

This is rather general inquiry, with intent to find out how to go about this the best way with the less time-consuming the better. How would you draw a graphics with lots of rectangles (or other ...
9
votes
2answers
120 views

Tikz : pgfmathresult after a pgfmathparse returns 0

I'm trying to create a generic code to draw a cycle graph. I used a code found in the net to create the nodes... But when it comes to re-use pgfmathparse and pgfmathresult, I only get as value for the ...
6
votes
2answers
97 views

How to force nodes to have the same size in tikz matrices

Is there some intelligent way to have several tikz nodes have the same height and width? Consider the following example with output below. I'd like every node in each row to have the same height ...
0
votes
1answer
70 views

How can I align 2 plots vertically?

I have two plots with tikzpicture above each other. (they have quite difficult text files as source, so I can not show them here). The plots have the same width, the problem is that the legend is ...
2
votes
2answers
102 views

Insert text below a figure with Tikz

I am making a newsletter, but I am not expert at all, especially with the new Latex features like 'tikz'. I want a big picture in the first page (the cover), with some written lines at the bottom of ...
7
votes
2answers
94 views

Is there a better way to draw parallel lines between two nodes that are neither aligned vertically or horizontally

I know how to draw parallel lines between two nodes that are either aligned horizontally or vertically. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} ...
1
vote
0answers
54 views

Semi-transparent Tikz nodes

Trying to reproduce the semi-transparent fill from the answer to my previous question http://tex.stackexchange.com/a/188453/37570 I cannot get it to work. Tried adding backgrounds library inside ifpdf ...
7
votes
1answer
71 views

Function rotated about the x-axis

I try to reproduce some figure from that file: http://tug.org/TUGboat/tb33-1/tb103wolcott.pdf I exactly need Figure 7: f(x) = sin x rotated about the x-axis. The code for Figure 7 is in appendix B. ...
11
votes
1answer
166 views

TikZ newbie issues when drawing a somewhat complex diagram

I need a whole bunch of images and someone advised me to use Tikz and it seems like it can probably do exactly what I want, however I haven't been able to find some things and I feel like I've been ...
1
vote
1answer
46 views

Circle with legs - node anchors not enough [duplicate]

I need to draw a circle with n legs and one with n+2 legs. Usually I would connect to legs to the circle with the anchors. But north, north east, north west, etc... simple aren't enough. It looks ...
4
votes
1answer
67 views

Small Axis arrows in PGFplots

I would like to draw small arrows (through a macro probably), to show the coordinate directions like the plot below. It would be nice to have the option to turn on/off the grids as well. The MWE for ...
1
vote
2answers
166 views

How to draw a hierarchical diagram in tikz?

How do I draw this diagram in tikz? Any pointers to the relevant libraries and packages are also welcome. In that case, it would be nice if you suggest a help file (similar examples) also?
5
votes
1answer
92 views

how to replace matrix element by color box

How can I replace the matrix element by colored squared box ? Suppose I have a 10x10 matrix with entries{+1,-1}. I want to put a black square box for +1 and red square box got -1 which will give me a ...
3
votes
1answer
65 views

tikz ovelapping bars

The following code \documentclass[12pt,a4paper,onecolumn, openright]{report} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{figure} \centering \begin{tikzpicture} ...
2
votes
1answer
49 views

I need same label to repeat 3 times in bar chart tikz [on hold]

\begin{figure} \centering \begin{tikzpicture} \begin{axis}[ ybar, ymin=0, width = 12cm, height = 5cm, bar width=20pt, ylabel={number of ...
0
votes
1answer
65 views

Open Sans and LaTeX Beamer

I'm working on a presentation in LaTeX Beamer and would like to use Open Sans Condensed for titles, Open Sans Normal for regular text on the slides and TikZ for graphics. Is there any way to do so? ...
2
votes
1answer
74 views

Drawing an echo state network

I've already asked a question for drawing nodes in ring form but this one here seems to be much more sophisticated. Is there an "easy way" to draw such a network in LaTeX? It does not have to ...
2
votes
1answer
52 views

Marking angles in a triangle

I would like to have TikZ draw a triangle on the Cartesian plane - a triangle with vertices at the origin O, A = (2,1), and B = (-3, 5). I would also like to have two angles drawn and labeled - one ...
6
votes
2answers
147 views

Produce nice TIKZ picture (Tree)

so far i have the following code which gives me a ugly TIKZ picture (twe level tree). Is there a comfortable way to get a nice spacing for second level nodes? Thank you very much in advance! ...
6
votes
2answers
165 views

Weird blank space when drawing standalone tikz

I am drawing an tikz picture using standalone class, but there is weird blank space on the left side. My code is \documentclass{standalone} \usepackage{kerkis} \usepackage{tikz} \begin{document} ...
1
vote
1answer
57 views

Close a cycle in a TikZ graph with a loop

Consider the following simple flow diagram. I like using the graph drawing library in TikZ for its simplicity and semantics: \documentclass{standalone} \usepackage{tikz} ...
0
votes
0answers
26 views

tikz picture inside main code or include tikz output

Suppose that someone wants to include a tikz picture inside a LaTeX document. Suppose that a simple tikz code is the following \documentclass{standalone} \usepackage{tikz} \begin{document} ...
1
vote
2answers
44 views

“samples” option yields empty graph with addplot3 and gnuplot contour (tikz)

The following code plots the desired level set : \documentclass{minimal} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \pgfplotsset{mystyle/.style={% ...
7
votes
3answers
143 views
+50

How can I move a single node in a tikz plot?

I can't find an answer online, please help me. The following plot shows the percentage of 3 groups. The red line is the average (and needs to stay at 13.8). How can I move ONLY the node "2.9" a ...
3
votes
1answer
138 views

Efficiently Organize TikZ Nodes in Beamer Presentation

The following minimal example comiles: \documentclass[c]{beamer} \usepackage{tikz,times} \tikzset{ invisible/.style={opacity=0}, visible on/.style={alt=#1{}{invisible}}, alt/.code ...
0
votes
0answers
38 views

Block Diagram with image in it [duplicate]

I am trying to write a block diagram of my system in latex. My problem is that I do not know how to import images inside tikspicture. A sample of the thing which I want to do is as below: For ...
10
votes
2answers
135 views

Decorating a path's edge with a hatch pattern in TikZ

Problem I would like to indicate an infeasible region in one of my pgfplots by manually drawing a path in the canvas. This should be a hatched pattern that is decorated on the path, something like ...
8
votes
1answer
69 views

TeX-FAQ: Non-letters in macro names - special-command generator

I had a look at TeX-FAQ on Non-letters in macro names and tried to implement the approach #2. It looks like I'm missing something. When trying to refer later to the new commands the result is not what ...
3
votes
2answers
140 views

How to find coordinates of intersecting circles using TikZ?

I'm using code based on Tomas M. Trzeciak’s Stereographic and cylindrical map projections example to draw spheres. I have added three great circles to the sphere: The equator, and two longitudinal ...
2
votes
1answer
54 views

Tikz primitive with scale factor of zero does not vanish

I'm inputting some .tikz files generated by a program which I can not modify. These files contain many occurances of a basic tikz primitive with its scale key-value set to zero. All primitives with a ...
5
votes
1answer
67 views

What's special about \: in the implementation of \pgfutil@ifnextchar

There is the following snippet of code in pgfutil-common.tex (with a very similar snippet in pgfmathutil.code.tex`): {% \def\:{\global\let\pgfutil@sptoken= } \: \def\:{\pgfutil@xifnch} ...
5
votes
1answer
66 views

How does \path, and the like, parse its argument?

I'm really curious whether someone would care to take the time to explain how to create macros which work similar to some of the macros in the pgf/TiKz bundle. What I'm particularly interested in is ...
4
votes
2answers
228 views

TikZ - Is it possible to draw this block diagram?

I have problems with a presentation with beamer. I can open the original slide (pdf) with LibreOffice and I can retrieve the diagram's structure. Can I start from this and put it (not the image but ...
5
votes
4answers
101 views

how to draw squares, circles and triangles [duplicate]

I'd like to explain the markers of a figure in the caption by drawing small marker symbols. I have seen in a previous question that you can do this with the tikz package. I am using ...
3
votes
1answer
128 views

Tikz-Draw radii in specific angles within a circle using polar coordinates

I am trying to make a drawing using tikz. In this drawing, I put some shapes in specific angles. What I want to do is "highlight" those angles using simple dashed lines. My code is the following ...
3
votes
2answers
88 views

TikZ inside pgfplot axis environment

I am trying to use the TkZ command MarkRightAngle in an axis environment, however I cannot get it to work. I get a "Missing character: There is no ; in font nullfont!" error and "Line 21: Package pgf ...
5
votes
4answers
187 views

How can I use a usepackage only for one section?

I need 2 different usepackages: one for a floatchart ( http://www.texample.net/tikz/examples/simple-flow-chart/) and one for my whole document. . For the Floatchart: \usepackage[latin1]{inputenc} ...
1
vote
2answers
84 views

Pascal's triangle in tikz with row headers

I am interested in creating Pascal's triangle with Tikz and LaTeX. I would like to add a column of text on the left of the triangle, with header "Row Number" and then the entries of each row. I am new ...
1
vote
1answer
51 views

How to hide the legend in a tikz picture

I am trying to hide the legends in the following tikzpicture code. However, after I use every axis legend/.code={\let\addlegendentry\relax}, it messes up the picture. Could someone help me how I can ...
2
votes
1answer
46 views

How to reuse data from one addplot table for plotting in another axis?

Is there anyway to reuse the data of a \addplot table for plotting in another axis environment? I would like to avoid putting the data into a separate file. Is there any way to refer to the data in a ...
3
votes
0answers
75 views

Venn diagrams overlapping color filling

Further on the posted question about Venn diagrams for fuzzy logic in TikZ, I have edited this tikzpictureinto a "customized version". My aim is--> a) To get a first diagram with both gaussian ...
9
votes
1answer
90 views

problem with “crop circles” in tikz knot library

Using the knots library for tikz, I get very thin outlines of the circumferences of the clipping circles. How do I make them disappear? Here is a MWE: \documentclass{minimal} \usepackage{tikz} ...
6
votes
1answer
78 views

What causes the red frame not to align with the grid correctly?

What causes the red frame not to align with the grid correctly? \documentclass[tikz,border=12pt]{standalone} \usepackage{filecontents} \begin{filecontents*}{diagram.tex} ...
4
votes
3answers
103 views

Tikz-Place a rectangle in specific angle

I am trying to place a rectangle on top of an imaginary circle of certain radius, whose center lies in the middle of another rectangle. What I've tried so far is the following \documentclass{article} ...
4
votes
0answers
37 views

Error 'Dimension too large', with TikZ and PGF

I have adapted an example from TEXample.net (Original author: Andreas Menge, http://www.texample.net/tikz/examples/3d-graph-model/) for creating parallelepipeds with a helper grid to give perspective. ...
4
votes
0answers
50 views

Logarithmic scaling of picture in tikz

I'm looking for something along the lines of \begin{scope}[scaling=logarithmic] ... \end{scope} The reason is, that I'm trying to visualise whether the Minkowski sums of some specific sets in R^2 ...
3
votes
1answer
53 views

Recalling a specific overlay of a tikzpicture in beamer

I am making a presentation and I want to recall some pictures in my conclusion. The pictures are done using tikzpicture and are in separate files, with some overlay specifications. However, I want to ...
3
votes
3answers
59 views

TikZ - Node fit over multiple matrix cells does not want to align vertically

I'd like to align the top line of the node named ImportantStuff along the upper line of AlsoImportantStuff's upper line. How can I do that? Picture MWE (new) \documentclass[ 11pt, a4paper ] ...