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)

9
votes
1answer
313 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. ...
12
votes
1answer
536 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
205 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
289 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 ...
5
votes
2answers
2k 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
151 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
348 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
177 views

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

\begin{figure} \centering \begin{tikzpicture} \begin{axis}[ ybar, ymin=0, width = 12cm, height = 5cm, bar width=20pt, ylabel={number of ...
1
vote
1answer
283 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
333 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 ...
4
votes
1answer
420 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 ...
5
votes
2answers
411 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
669 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} ...
3
votes
1answer
475 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} ...
2
votes
1answer
181 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} ...
2
votes
2answers
636 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={% ...
9
votes
3answers
445 views

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
430 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
44 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 ...
11
votes
2answers
495 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
103 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
380 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
88 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
117 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
156 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
1k 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
2k 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
599 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
3k 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
441 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} ...
7
votes
2answers
2k 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 ...
3
votes
1answer
836 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
1k 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
234 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 ...
11
votes
1answer
232 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
98 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
361 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} ...
5
votes
1answer
181 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. ...
7
votes
1answer
269 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
229 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
360 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 ] ...
3
votes
1answer
84 views

Is there a transformation in TikZ that transforms the positioning of nodes, but not the nodes itself?

I'm drawing some category theory diagrams like these: \documentclass{article} \usepackage{tikz} \begin{document} \newcommand{\dual}{\draw (-2,-1) node[below] {$X$} arc (180:0:2cm) node[below] ...
2
votes
1answer
242 views

How do you define a command for use in a tikzpicture environment?

I want to define an environment for the tikzpicture environment which defines tikz specific commands. Here's an abbreviated example for a UML environment which defines a \Class command): ...
4
votes
2answers
325 views

Can't get kerkis work properly

I am testing a few chapter styles to work with kerkis font in greek. The weird thing is that although I load the package, the fontstyle doesn't pass inside the document. My first attempt is the ...
0
votes
2answers
202 views

I want to draw these figures in the link

http://etc.usf.edu/clipart/galleries/588-fraction-pies-quarters I can draw most of the figures in this link. But the thing i want to know is how to shade a region as in the figures 3,4,5,6.
2
votes
1answer
67 views

Could foreach generating figure have coordinate?

I Encounter a problem that is foreach loop generating figure can have coordinate? this is I asked before How can I finish this about LTE diagram using filldraw rectangle now I want put this diagram ...
2
votes
1answer
383 views

How to fill logic gates in circuitikz?

How can you specify a fill color for logic gates in circuitikz? It does not work as I would have expected: \documentclass{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz} ...
4
votes
1answer
232 views

{Tikz}{Tree} How to reduce leaves placement

Hello (and sorry for bad English...) I am working on a Tex document to produce algorithmic diagrams : it is quite good for me except that I would like to be able to reduce space used by leaves (it ...
3
votes
1answer
409 views

Draw nodes in ring form

I want to use this drawing of a neural network and extend it to a recurrent neural network. To do so I'd like to arrange the hidden nodes to a ring and connect every hidden node with the other hidden ...
0
votes
1answer
258 views

How to “rough up” paths of stochastic processes in TikZ?

I'm currently typing up notes for a stochastic analysis course and would like to substitute my hand drawn pictures by pictures created with tikz. I am familiar with the basics of tikz but have the ...