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)

1
vote
1answer
178 views

Absolute positioning in TikZ3

I am also submitting the solution, please, save your time and energy on this Question. My problem is this. The absolute positioning stopped to work in some cases after upgrading TikZ2 to TikZ3. ...
1
vote
2answers
374 views

Loading TikZ3+PSTricks at the same time

I am also posting my solution. Please save your time and energy on this Question! I have experienced a strange behavior after upgrading TikZ 2 to TikZ 3 when loading and using the TikZ and ...
3
votes
2answers
134 views

Strings and Harps to be drawn

I'd like to draw a picture similar to the hand-drawn one below: With labels $0$, $1$, $\Psi_{L,S}$, $a_1$, $\ell_i + 2\varepsilon$, $\Psi_{L,H}$, $b_1$, $-\varepsilon$, $1 + \varepsilon$, ...
2
votes
0answers
43 views

Is there an TikZ command to provide the height and width of the picture? [duplicate]

I've found the following How can I compute the distance between two coordinates in TikZ?. So, I know how to find the size of a TikZ picture as follows: \documentclass{article} ...
4
votes
1answer
431 views

How to position in tikz relatively?

I am trying to draw some control diagram with tikz and I have a few questions regarding that: How can be removed the border from the disturbance? How can be left and right position the Cost and ...
1
vote
3answers
187 views

Short cut method to draw multiple dots with label on a curve

Let us consider the following example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=.6pt] \draw (1,0)--(20,0); \foreach \x in {1,...,20}{ \draw[fill] (\x,0) ...
5
votes
2answers
230 views

Vertical aligment with tikzpicture

I have a problem with vertical alignment in a tabular environment with tikzpicture. My code so far is: \documentclass[12pt,a4paper]{article} \usepackage{tikz} \begin{document} \begin{tabular}{ccccc} ...
5
votes
2answers
312 views

TikZ and Babel disagree when Hebrew is loaded

As with most things related to LaTeX, when Hebrew (and I assume other RTL languages too) tend to completely break everything. \documentclass[10pt]{article} %\usepackage[utf8x]{inputenc} ...
7
votes
1answer
398 views

Tikz: Correct arrows at the end of parametric curves?

\documentclass[11pt]{amsart} \usepackage{tikz} \begin{document} \begin{tikzpicture} [scale=4] \draw[domain=0:0.4, smooth, variable=\t, samples=200, ->] plot({(1/sqrt(2)*(\t-\t^3)}, ...
8
votes
1answer
506 views

Why do colours defined using CMYK give inconsistent results in TikZ mindmaps?

Background I was trying to draw a mindmap using the tikz mindmap library for possible use in a beamer presentation. The Problem Depending on my choice of colours, the colour of nodes does not ...
6
votes
2answers
588 views

TikZ: How to draw an helicoid and fill area below curve

I am trying to draw an helicoid and to fill the area below the curve. Since the aim of the figure is just to "give an idea", I would prefer to keep it simple and to avoid using PGFplots and GNUplot -- ...
5
votes
5answers
796 views

How to draw the Mean Value Theorem graphic with TikZ?

(Edited 2014-03-23) Can anyone give a TikZ solution to my question? I want to add an illustration of the Mean Value Theorem (Lagrange) like this: \begin{center} {\Huge \shadowbox{\textbf{Teorema ...
6
votes
1answer
244 views

Graphical connection between two matrix

I need to show the connection of an element of a matrix, with a column on another matrix, like this: How i can do this?
10
votes
2answers
423 views

make enumerated button in TikZ

Is it possible to make an enumerated button, similar to the ones shown in the figure below? I will be using them as pictures in an external document (not TeX).
3
votes
1answer
917 views

Annotating Tables With Tikz; Adding Arrows

I'd like to be able to draw an arrow with some text on top connecting two arbitrary (i.e. possibly non-right-/left-most, possibly nonadjacent) cells of a table with a left-looking arrow. In ...
7
votes
2answers
378 views

Draw sphere with some portion is dotted

I need to draw the following figure : I have used the following code to get it : \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (2,2) circle (3cm); \draw ...
5
votes
1answer
315 views

Nested ifnum conditional groupplots with pgfplots?

I want to use groupplots, and set a variable to conditionally plot the plots. Here is the minimal non-working example: \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{calc} ...
16
votes
5answers
1k views

How can I do a simple TikZ picture of the golden ratio?

I want to make a short article explaining the origin of the Golden Number (1+sqrt(5))/2 and I need to draw a very simple segment like the picture I've uploaded. Any suggestions?
7
votes
3answers
348 views

Is there a simple way of improving the precision of pgfmath for trig functions?

I wanted to build a table of trig values using pgfmath. However, the precision is a bit off. Is there a way to improve this within TikZ? This is related to a similar question I just posted: Is ...
9
votes
1answer
336 views

Cannot use custom styled nodes with matrix using Pgf 3.0.0

I've been doing some diagrams using TikZ with matrix as the layout. While using Pgf version 2.10, everything went well, but now I'm using Pgf version 3.0.0 (TexLive2013) and there's a problem I'm ...
1
vote
1answer
149 views

Background fill for H (high) timing character, and diagram size for tikz-timing

I would like to add a filled background to the H timing character, which otherwise does not have one (it is just a line). I don't want to use the D or U characters which do have a background fill, ...
24
votes
8answers
5k views

Draw with TikZ a Pythagorean triangle with the squares of its sides and labels

I've made this checking the old questions and the TikZ manual and I want to draw the squares of the sides of my Pythagorean triangle. So far I have \documentclass{article} \usepackage{tikz} ...
3
votes
1answer
338 views

Annotating tables

I'm trying to annotate a table by highlighting and annotating the final column, yet once I use the\tabnode together with coloring I get misalignment. Either the content of the cell marked with ...
4
votes
1answer
185 views

TikZ: Create a downward chain of nodes with different heights

I want to create a downward chain of TikZ nodes. Some nodes are rotated and they may differ in height. Consider the output of the MWE below: The horizontal chain adapts to the different widths of ...
7
votes
4answers
656 views

Filling an area between a parabola and a shape

I looked at similar situations and I can't even understand how pgfplots would help me since I need to fill an area between two lines and one parabola. Here is my code: \documentclass{article} ...
4
votes
1answer
735 views

Position of the error bars in bar graphs in TiKZ

Help! I cant seem to get the position of the error bars right on top each bar. Also for some reason my legend seems to be off position too. \documentclass{article} \usepackage[utf8]{inputenc} ...
3
votes
1answer
114 views

Vertical separation between text and first item inside nodes not consistent

The appended code yield the following slide. Although the code of the four rectangular nodes equals each other the vertical separation between the text and the first item within the rectangle is ...
2
votes
1answer
214 views

Uniform appearance of tick marks in 3d pgfplot?

In the default configuration the tick marks in a 3d plot from pgfplots are looking nicely when using a box but in my opinion not really uniform when the axis lines are in the center. Is there any ...
3
votes
1answer
296 views

TeX capacity exceeded with TikZ-UML

I have a problem using TikZ-UML, which is a nice library, but has some bug (or does not work in my configuration). LaTeX goes into an infinite loop if I use all "do", "exit" and "entry" behaviors in a ...
1
vote
1answer
335 views

Drawing lines in a plot and give them a label?

I am on my first adventure in plotting with LaTeX. I managed to get my bar chart plotted. I have two groups of values for which I want to show the average. I intend to put a horizontal bar over the ...
15
votes
1answer
415 views

How to bend a TikZ node

Consider the MWE below that outputs the following arrow Is it possible to bend such a node so it looks like (sorry for the quality, I'm not a photoshop artist). If possible I would like the font ...
2
votes
2answers
643 views

Using TikZ in landscape mode?

Is there a way to somehow use the tikzpicture environment in landscape mode ? I usually encounter this problem with graphics with a large X-range and a small Y-range. I provide below a typical pdf ...
3
votes
1answer
314 views

How to get edges after vertices in a graph using TikZ?

The following code is giving me a graph, how to display edges one after the other instead of displaying total graph at a time. \begin{figure} \begin{tikzpicture} [scale=.8,auto=left,every ...
6
votes
1answer
238 views

Fill from path to axis with tikz intersections

I am trying to represent parts of a plot that extend from a simple curve to the boundaries, but I can't find a simple way of creating the closed path from the intersection of two paths. I have seen ...
5
votes
2answers
1k views

Block diagram with dsp/TikZ for adaptive feedback cancellation

Hello graphic tex lovers :) I'm trying to draw a diagram in TikZ as close as possible to this one: I'm using the dsp TikZ library and I think my attempt is going in the right direction; however ...
6
votes
1answer
186 views

TikZ fill zero-width border

I am trying to create a density plot with TikZ using \fill and tightly stacked rectangles. The thin unwanted borders in the image, are they an artefact of rendering or a feature of fill? Can they be ...
5
votes
4answers
332 views

graphe with tikz or pstricks?

I've a second question about TikZ or Pstricks. How can I type the code to obtain like this ? thank you
2
votes
1answer
721 views

Control System diagram

I found an example of a control system with TikZ in http://www.texample.net/tikz/examples/control-system-principles/ . I wanted to adapt this example by removing the measurements node and keeping only ...
15
votes
4answers
3k views

Problem with babel and tikz using \draw

I'm trying the next code: \documentclass[pdftex,spanish]{article} \usepackage{babel} \usepackage{tikz} \begin{document} Simple arrow: \begin{tikzpicture} \draw[->] (-1.5,0) -- (1.5,0); ...
3
votes
1answer
228 views

Draw a surface from scattered curves

I have a few curves determined by some points. I need to plot the surface that they determine. That is, I have this \begin{tikzpicture}[scale=0.8] \begin{axis}[% width=12cm,height=12cm, xmin=0, ...
10
votes
1answer
259 views

Tikz libraries for doing shadows and light

Do you think is possible to do something like this with tikz? Since I do not ever know from what begin with, can you tell me if there exist some libraries for doing the shadows, the light in the ...
5
votes
3answers
203 views

How to put arrows on boundary circles in the tqft package

I'm drawing some simple cobordisms with tikz and tqft. I would like to indicate the orientation of the incoming and outgoing circles by putting arrowheads on them. Is there a simple way to do that? ...
0
votes
1answer
311 views

LaTeX Beamer, TikZ and overlays — page numbering issue

I'm using \onslide<…-> for overlays in TikZ: \documentclass{beamer} \usepackage{tikz} \setbeamertemplate{footline}{\insertpagenumber{}} \begin{document} \begin{frame} ...
4
votes
1answer
599 views

TikZ and auto-pst-pdf break Ghostscript

After profiting enormously from other people's questions here, I finally need to ask one myself: since I updated my MiKTeX 2.9 installation a week ago, I can't compile my PhD thesis anymore. I use ...
3
votes
1answer
577 views

How to rotate Circuitikz circuit as a whole?

I've drawn a circuit path using CircuiTikZ library. Now I want to rotate the circuit as a whole. The nodes of circuit are transform correctly. However the circuit elements do not get rotated at all. ...
2
votes
2answers
124 views

split rectangle

i try to draw a split rectangle like this: And this is my current state :/ Any ideas?
7
votes
2answers
460 views

comma in node name [TikZ]

In my database some objects have name in A,B format, i.e there is comma in between. I wanted to do something like this \node (A,B) {Comma}; \node (x) {normal}; \draw (A,B) -- (x); However, this is ...
7
votes
1answer
613 views

Color and legend for 3d surface

I'm trying to plot a 3d surface using pgfplots and this is what I have done so far: \usepgfplotslibrary{patchplots} \begin{tikzpicture} \begin{axis}[% width=12cm,height=12cm, xlabel={$J_1$}, ...
4
votes
2answers
117 views

Blocks in combination with bullets spacing

I have been trying to create my second Tikz model based on TikZ: Diagram of a perceptron. I have manage to modify it based on my beginners knowledge and experimentation but the part that I am missing ...
5
votes
1answer
577 views

TikZ: Arrowhead color defined by an option for another command

I was studying the PGF manual when I faced the following behaviour. Referring to the code below, I specified a latex arrowhead after the \filldraw element and the arrowhead is drawn of the same ...