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)

7
votes
1answer
512 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} ...
0
votes
1answer
383 views

protocol message diagram - rectangle

\documentclass{article} \usepackage[margin=12mm]{geometry} \usepackage{hyperref} \usepackage[underline=true]{pgf-umlsd} \usetikzlibrary{calc} \begin{document} \begin{sequencediagram} ...
2
votes
1answer
133 views

Can't find tikz subfiles

I've the following project structure: ./main.tex ./ch1/ch1.tex ./ch1/tikz1/tikz1.tex The main.tex looks like: \documentclass{book} \begin{document} \subfile{./ch1/ch1.tex} \end{document} The ...
4
votes
2answers
141 views

Is PostScript access from TeX (via PSTricks or TikZ) safe?

PSTricks and TikZ grant us access to PostScript. Is it safe? I meant: Is there a vulnerability hole open for someone to exploit? Edit: I just found that compiling PSTricks with xelatex might be ...
4
votes
0answers
658 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 ...
4
votes
2answers
741 views

Delayed drawing of arrows in tikz-cd

I want to draw an arrow which passes over another arrow in a tikz-cd commutative diagram. I can do that as follows from the documentation: \documentclass{article} \usepackage{tikz-cd} ...
4
votes
1answer
607 views

joining atoms in chemfig. Two adjacent molcules

This is a follow up of drawing cellulose and aligning monomers in chemfig. I'm trying to refine the structure adding some hydrogen bonds. No problem with the intra-chain ones, but I cannot figure ...
3
votes
1answer
415 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 ...
4
votes
2answers
482 views

protocol message diagram - arrow colored

\documentclass{article} \usepackage[margin=12mm]{geometry} \usepackage{hyperref} \usepackage[underline=true]{pgf-umlsd} \usetikzlibrary{calc} \begin{document} \begin{sequencediagram} \newinst{ue}{UE} ...
31
votes
6answers
7k 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 ...
24
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: ...
7
votes
1answer
1k views

How do I zoom a rectangle area in pgfplots adding a gray background even for the axis labels?

The background to this question is: I want to "zoom" into a certain area of a function and show it a little bigger. Furthermore, I want to put a gray rectangle as a background of the zoomed area, ...
5
votes
1answer
531 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 ...
7
votes
1answer
722 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 ...
3
votes
1answer
367 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 ...
3
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, ...
9
votes
3answers
590 views

How to draw a return arrow from node-3 to node-1

Say I have a code to draw a flow chart, I want now a arrow from node 3 to node 1, how can I do that? 1<--| | | 2 | | | 3---- MWE \documentclass[class=article,border=0pt]{standalone} ...
1
vote
0answers
283 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
193 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
1answer
222 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} ...
4
votes
2answers
368 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 ...
2
votes
0answers
222 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 ...
6
votes
1answer
3k 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 ...
4
votes
3answers
371 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. ...
2
votes
1answer
327 views

bodegraph package just display grids but not curves

I'm using pdfLatex (with --shell-escape option) and I had a problem of compilation with TexWorks that was successfully solved with the help of other post in this site: bodegraph on Ubuntu 10.04. ...
0
votes
1answer
185 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
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} ...
11
votes
3answers
452 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. ...
3
votes
1answer
211 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 ...
2
votes
1answer
245 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 ...
5
votes
1answer
788 views

Fading of horizontal lines is impossible?

The path fading option in TikZ is obviously not working for horizontal lines. For plotting constant functions as well as for drawing a line between two points. Making them slightly tilted solves the ...
0
votes
0answers
75 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 ...
5
votes
1answer
2k 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 ...
5
votes
1answer
2k 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 ...
3
votes
1answer
260 views

Producing TikZ-made .pdfs and using /includegraphics on them?

I'm helping TeX a professor's handwritten notes for publishing/pre-print purposes, and for producing certain graphics, I use PGF/TikZ. However, it seems he is having trouble compiling the code ...
10
votes
1answer
3k 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} ...
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} ...
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 ...
1
vote
1answer
131 views

How to prevent evaluation of function in tikz

I have a bunch of TeX code for precalculus and calculus. The pictures are in tikzpicture environment. In our project we want to create TeX file on the fly and compile three times. The compilation is ...
9
votes
2answers
2k views

TikZ scope options not working

Consider the following code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[fill=red, draw=green,text=blue] \node[fill=red, draw=green] at ...
17
votes
2answers
288 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 ...
17
votes
2answers
762 views

Is it possible to create an adaptable golden ratio frame around equations?

I would like to create special frame around my equations. This frame should obey to the golden ratio rule. This means that its width divided by its height should give 1.61803398875. If possible, the ...
7
votes
1answer
269 views

How can I keep my TikZ overlay picture on the same page?

I needed to draw squares to highlight submatrices and I found on the internet (perhaps here) a snippet that uses TikZ. By the way I found that if the math expression is at the end of the page, the ...
14
votes
2answers
551 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} ...
1
vote
2answers
596 views

venn diagram with TikZ

I'd like to create this Venn diagram in LaTeX (possibly with TikZ): Could you point me in the right direction? I've seen lots of Venn diagram examples using TikZ but none with concentric circles.
11
votes
2answers
438 views

pgfplots: get color setting from table

I want to plot multiple lines using pgfplots. Each of the lines should have a color, depending on the group it belongs to. In the example attached, a table is provided, containing all the ...
3
votes
2answers
678 views

tikz plots alignment

I'm trying to produce a figure using \begin{figure} \centering \makebox[\columnwidth]{\input{try1.tikz}} \makebox[\columnwidth]{\input{try2.tikz}} \end{figure} The files try1.tikz and try2.tikz ...
6
votes
3answers
432 views

How to place text and image above the exact subfigure?

I want to draw something like this: I am able to draw like this: This is the code for the same: \documentclass{article} \usepackage{tikz,subfig} \begin{document} \begin{figure} \centering ...
4
votes
1answer
1k views

How to draw horizontal(row) legend without the surronding rectangle?

I found the following code to manually draw legend, but it produces vertical(column) legend. How to draw it horizontally? I don't want surrounding rectangle also. \documentclass{article} ...
3
votes
0answers
182 views

PGF: Externalize + Fadings differences in viewer [closed]

I've been working with the fadings library in PGF and I was having trouble getting it working with externalize. I finally figured out that it was working, but Apple's Preview does not display the ...