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
0answers
868 views

Matlab2tikz adds extra legend entries [closed]

The legend from a boxplot figure is not being created properly. I get this: Instead of thiS: But really only need 2 legend entries. Any Ideas why all the objects in this plot are being given ...
2
votes
1answer
2k views

gnuplot and TexnicCenter setup

I just downloaded and ran the gnuplot setup exe. Now, how do I setup TeXnicCenter and gnuplot so I can use gnuplot with TikZ? So I have been able to add --enable-write18 but the inverted cycloid ...
7
votes
1answer
599 views

TikZ flowchart child

Is it possible to show block C as a single block rather than having 3 blocks? \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
22
votes
3answers
2k views

How to build parallel paths between nodes?

I want to create a figure with TikZ: I tried first with the following code (remark: Complete MWE on bottom): \begin{tikzpicture} \node [block] (A) at (0,0) {\rule{2cm}{2cm}}; \node [block] (B) at ...
4
votes
1answer
172 views

Creating labes on diagram edges

I want to add labels 3, 4, 5 on tree edges like you can see on picture, but I don't know how :( My minimal example: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{tikz} ...
34
votes
6answers
10k views

Why draw diagrams using LaTeX when there are open source tools like OpenOffice?

I was looking at recent questions here and was surprized that people were drawing diagrams in LaTeX, when it can be done in SmartDraw, OpenOffice or other programs. Is there any benefit to using LaTeX ...
3
votes
1answer
271 views

Problem with snake ticks in pgfplots for bell shaped normal distribution

I want to draw two sided created region for normal distribution (see figure below). I have issue with snake ticks proper alignment and area looks suspicious to me. Am I missing something here? Any ...
28
votes
3answers
2k views

How to draw a layered architecture using Latex?

I have a layered architecture to be drawn in a paper. The architecture looks similar to the one below. How to draw something like this? What I have so far: ...
3
votes
1answer
685 views

How to draw the outlines of a patch in pgfplots?

In pgfplots the patch plot library allows to basically draw 3D bezier planes easily. This is very helpful if the exact mathematical form of a plane is not known or not important. What I have not ...
10
votes
2answers
312 views

Why is fixltx2e incompatible with tikzexternalize

I had some weird problems with tikzexternalize sometimes working sometimes not. I narrowed it down to the culprit fixltx2e. Here is a MWNE (Minimal not working exmple) @ ALtermundus: Yes this is ...
11
votes
1answer
782 views

Plot magnification using sub-plot within a plot!

How can I produce such kind of zooming shown in the figure? Here the selected portion is plotted again with new axis displaying more details than just magnifying the portion. One solution is to ...
5
votes
1answer
589 views

Nest branches in chains in tikz

I am trying to make a picture illustrating Cocke-Younger-Kasami. I am using tikz for this and already found out how to have arrows between table cells. Now I'm having the following problem: I need to ...
5
votes
1answer
686 views

How can I customize TikZ’ calendar?

I'm playing around with the TikZ’ calendar library to make a simple course calendar. I want to make weekend days and days when there is a week break or something to be grayed out, lecture days to be ...
3
votes
1answer
406 views

Test on same shaped with Tikz and PStricks

Following up at my previous question: let operation vs tkz-euclide Could Tikz fans and PStricks respectively give the same shaped, as following, as to see the advantages and disadvantages of each ...
14
votes
3answers
3k views

Plotting an implicit function using TikZ

How could one plot an implicit function, like (x^2+y^2)^3-4x^2y^2 using TikZ? I know gnuplot supports them, but they are drawn using a surface built from the function and intersecting the result with ...
8
votes
1answer
1k views

Tikz: \foreach and axis environment incompatibility

I'm trying to plot a figure with TikZ. I have a few .txt files with the coordinates of the curves that I want to plot, in a list such as file2.txt, file4.txt, ... file30.txt and I want to add ...
5
votes
3answers
448 views

let operation vs tkz-euclide

Before put my question to give some explanation of why I do this question. When I started to use the TeX a matter of luck that I started working with LaTeX (xelatex) and not with LuaTex for example. ...
4
votes
1answer
2k views

Big wide arrows, how to?

I saw someone use this scripts to generate big arrows, but it seems quite tricky to me. And I also hope the arrow is not filled. Any good ideas? \draw[ -triangle 45, line width=1.0mm, ...
1
vote
0answers
421 views

mindmap with rendering artifacts [closed]

I am trying to render this mindmap but I am getting some artifacts. Can anyone tell why. \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{mindmap,trees, backgrounds} \begin{document} ...
9
votes
1answer
239 views

Loop Over Grid File

I have a grid file with data such as: 5 4 0 0 0 0 0 0 1 1 2 0 0 2 2 1 0 3 0 0 3 1 where 5 is the width of the grid, 4 is the height, and each number in the grid corresponds to an elevation. I can ...
4
votes
2answers
441 views

new command, pfgkeys within pfgplots axis environment

I am trying to setup an command to create technical drawing dimensions (inspiration from Dimensioning of a technical drawing in TikZ). I would like to use pgfkeys for that, in order to pass multiple ...
5
votes
1answer
331 views

Why it is not centered?

Could anyone tell me why the following scripts have non-zero margin in the left side of the figure???? \documentclass[class=minimal,border=0pt]{standalone} \usepackage{tikz} ...
0
votes
1answer
223 views

Stacked chart in TeX (added up line loads)

I've got a problem with finding the correct way or commands to make a nice plot in TeX, even with some basic experience in pgf/TikZ. Imagine a weight distribution with start- and stop values and a ...
2
votes
0answers
225 views

Scatterplot with TikZ/pgfplots [duplicate]

I have 7 *.txt files each with 2 columns of data thus: time(mins) contacts 3.25 8 1.166666667 4 3.2 6 3.2 7 2.25 8 5.466666667 12 2.25 3 2.166666667 7 I'd like to plot them in separate ...
5
votes
1answer
398 views

array and line how to draw?

I want to know how can I draw the line that appears in the right of the image below, and also how can I write this array that appears in the left of the picture.
7
votes
1answer
4k views

How to position one node relative to another node at a certain angle in TikZ taking the nodes' size into account?

I asked a question before about how to position a node relative to another node at a certain angle in TikZ, and the answer I got there was that you can use the \path (node1) ++(angle:distance) node ...
17
votes
2answers
301 views

Does a single \path for drawing a series of geometrical objects make the compilation more efficent?

The TikZ syntax is so liberal (as mentioned in the documentation) that makes me a bit confused with which I have to adopt. Best practice is really my main consideration in coding anything. I have no ...
2
votes
2answers
642 views

Pgfplot Automation tool

Are there any good graphical software that I can use to draw diagrams/graphs and export them as pgfplot code? For example, I want to create an histogram so I drag an histogram icon from a menu to the ...
11
votes
3answers
491 views

arc that passes from (B) having a center on (A), automatically calculates (AB) distance

I want to create an arc which automatically calculates the distance (AB). Inspired by page 58 at pgf manual. But the code block % \draw (H) ++arc (15:60: $ (A) ! - ! (B) $); does not help much. ...
12
votes
1answer
623 views

Single arrow with heads on both sides pointing in same direction

Please consider the following example of an arrow I would like to draw in a tikzpicture-environment: My MWE draws a single arrow but only with one head. Does anyone know how I can add a second head ...
3
votes
1answer
142 views

increase length of a \node option and change its color

I would like to increase the vertical length of a node in a way that it can also stretch outside of my image. Moreover, I need to choose different color for each line. \documentclass{article} ...
2
votes
1answer
1k views

Figure in beamer moves around

This is a MWE of my code: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \mode<presentation> { \usetheme{Frankfurt} \usecolortheme{dolphin} } \begin{document} ...
24
votes
2answers
5k views

Dotted lines in TikZ with round dots

Well, the title explains all, I guess. Sorry if this is too simple for all the TikZ gurus here: but I want a dash pattern like "dotted" for drawning but with round dots and not the little squares. How ...
9
votes
3answers
1k views

TikZ Venn diagramm

I'd like to make this Venn diagram using TikZ (or otherwise at your discretion) based on this post so far I have this, which looks even worse than a powerpoint attempt \documentclass{article} ...
9
votes
1answer
4k views

TikZ - curly braces end at the same node, but there is a gap

I created a timeline with TikZ. The problem is, that there is a little gap between the ends of the braces that end at the same node. And here is my code: \begin{tikzpicture}[y=1cm, x=1cm, thick, ...
2
votes
1answer
276 views

Create standalone pictures

I am trying to write a sample code to be used as a template to generate pictures that will be latter included in a paper. At this stage, the pictures are only plots. I have the following code. But it ...
2
votes
0answers
769 views

Off Grid Circuitikz Symbols [closed]

Shouldn't circuits line up on the grids? Otherwise, drawing code get messy -- really quick. I have found pins-to-grid alignment to be common practice in most the Schematic/Diagram programs I have ...
5
votes
1answer
405 views

Highlight elements in the matrix (continued)

Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to select one single entry in the matrix? Where does one need to place the left and the right marks?
2
votes
1answer
290 views

Need help making a data table from \plot function in Tikz

I want to be able to generate a list of points from a plot in Tikz, with an adjustable interval and range for the x-values. So basically something like this: ++++++++++++++ + + + ^ ...
2
votes
1answer
186 views

Sort of “\let” for Tikz shape?

Is there a way to redefine the name of a Tikz object in case of name conflict, like the \let command for a TeX macro? As practical case, I have define a set of path decoration that can simply be used ...
11
votes
1answer
590 views

How to align a node vertical to one node and horizontal to another node?

Is it possible to align node c vertical to node a and horizontal to node b. If I combine the "below=of" and "right=of" parameter, Tikz ignores the first one. \begin{tikzpicture} \node[draw, circle, ...
0
votes
0answers
77 views

TikZ coordinate calculation: Package tikz Error: + or - expected [duplicate]

TikZ calculates correctly the projection of a point and also draws it correctly, however after compiling LaTeX displays 2 error messages which I can not fix. Could you help finding what am I doing ...
11
votes
1answer
772 views

TikZ path labels and --cycle

\draw (0,0) -- node{a} (2,0) -- node{b} (2,1) -- node{c} (0,1) -- cycle; I can't find a simple way to make a label on the last edge. What I want is something like \draw (0,0) -- node{a} (2,0) ...
5
votes
1answer
3k views

External graphics and tikz externalize won't work together

I am using the tikz library external a lot and with success - so far. Now, I need to import an external file (eps, png, pdf... I don't care), and add the axes. I know I can do this with \addplot ...
9
votes
1answer
345 views

Creating tikz anchors based on pgfkey value

I'm trying to create several anchors equally spaced on the edge of my shape. The way I've tried to do this is to pass a key value in the node that would then define the anchors. The following code is ...
5
votes
1answer
3k views

Tikz externalize: use external PDF or render by tikz, do not create external PDF

I have texlive 2012 and tikz. Is it possible to get the following behavior? With external library to tikz, use external image, if it is available. However, if it is not available, render the ...
5
votes
1answer
1k views

tikz picture inside of an enumerate environment

Is there a way I can make sure that the number of the enumerate environment stays in the top left of the tikzpicture? I'm using a custom environment that just wraps around the enumerate environment... ...
32
votes
1answer
1k views

Helping cardinals elect the new Pope

Yes, we are talking about TeX and friends! Edit: I decided to move the background motivation to the end of the question, since it seems to be kind of off-topic in the TeX context. The following code ...
14
votes
2answers
679 views

Complicated tikzpicture for theorem of multivariabe continuous functions

I'm attempting to construct a tikzpicture that looks like this: Here's what I have: \documentclass[12pt]{article} \usepackage{amssymb} \usepackage{amsmath} \usepackage[english]{babel} ...
10
votes
1answer
4k views

TikZ \foreach loop evaluate variable using pgfmath function

I have problem with defining a new variable within the \foreach loop using the evaluate option using a pgfmath function: \documentclass{article} \usepackage{tikz} \begin{document} ...