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)

10
votes
1answer
531 views

Badbox from PGF layer using fit

Why does the code \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds,fit} \tikzstyle{internal} = [draw, fill, shape=circle] \begin{document} ...
8
votes
1answer
430 views

Tikz / pgfplot: plot Alternating Sequence

Is there any possibility to plot an alternating sequence? Picture: Alternating sequence: I don't need exacly the same output as above. I tried the following: \begin{tikzpicture} \begin{axis}[ ...
5
votes
1answer
423 views

Overprint environment inside tikz node: unexpected alignment of content

I want to use an overprint environment inside a tikz-node. I expect the content text of the overprint-sections to be aligned centrally, but it aligns right and even protrudes a little beyond the ...
13
votes
1answer
339 views

highlights path sequentially BUT in order of clicking

I have been looking for a possibly difficult answer to a simple question. I would like to be able to highlight paths on a TikZ picture. I would like to highlight these paths by clicking on them and at ...
0
votes
1answer
298 views

How to draw the following figure using TikZ? [duplicate]

Possible Duplicate: Aligning trees built with tikzpicture Is it possible to draw the following figure using TikZ? It know how to draw simple tree diagrams using TikZ. But this is little ...
0
votes
1answer
323 views

How can I get TikZ to work within a \tabularx environment?

I'm putting together a poster for a conference using beamer. In one column, the poster has some text next to which I want to put a neuron diagram-style figure next to some text. Pictures embed in this ...
8
votes
2answers
770 views

TikZ: Partitionning a smooth cycle into zones

I would like to make a closed smooth path, and then partition it into several subparts each of which would have a different color. For the moment, the best I could come up with was to put another ...
7
votes
5answers
2k views

How to Draw CDF of normal distribution in Tikz

Does anyone know how to draw the Cumulative distribution function of Normal Distribution (explained here) in tikzpicture environment? Many thanks!
5
votes
1answer
361 views

Overlapping lines get thicker in TikZ

In the following example, I have drawn a couple of arrows in TikZ that are overlapping at one end. \documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \x ...
5
votes
1answer
607 views

Beamer TikZ change anchor

I'm having trouble changing the anchor point on for one of my nodes. My code is: \begin{frame} \frametitle{Utility Maximisation} \begin{itemize} \item Expected Utility of Future Wealth ...
7
votes
1answer
933 views

Drawing a motor shaft in TikZ

I'd like to create a picture like the one with TikZ: I've already created the electrical part using circuitikz. I'd like to add the part on the right (the motor's shaft with arrows), but don't know ...
8
votes
1answer
1k views

How to use mod operation in latex with tikz

I need something similar to \ifnum \j mod 2 = 0 rest of a number, but do not know how to do this in line 22. \documentclass{article} \usepackage{tikz} \usepackage[active,tightpage]{preview} ...
7
votes
1answer
584 views

Beamer TikZ generating two slides

I'm trying to label an equation I have on a Beamer slide with TikZ. Here's my code: \begin{frame} \frametitle{Power Utility Portfolio Choice} \tikzstyle{na} = [baseline=-.5ex] ...
75
votes
3answers
4k views

Fundamental differences : PSTricks, TikZ/PGF and others

OK, since this is a pretty vague and subjective question. I need to set up some borders around the discussion that I intend to benefit from. But before anything, I certainly do NOT want to excite the ...
10
votes
2answers
1k views

How to control borders of intersected nodes (rectangles)

I am trying to superpose 2 rectangles; one blue, one red, and have the intersection area with a mix of blue and red. I have problems with the borders though. I am not getting the thickness of the ...
8
votes
1answer
515 views

Better solution to display the Distributive Property

Trying to apply the solution provided for the question How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)? I have found a major problem as is shown ...
6
votes
1answer
648 views

Tikz mindmap with opacity, a different approach to venn diagrams

I need to draw Venn diagrams for some special sets. In these sets I knew for example that the intersection of some of them are empty, so I wanted to draw a special venn diagram that omits those empty ...
7
votes
2answers
286 views

Restoring previous value of PGF/TikZ key?

How does one restore the previous value of a PGF/TikZ key? For example, I would like to set the inner sep of a matrix to 0em but set the inner sep of nodes within the matrix to be the value that ...
11
votes
1answer
472 views

TikZ: Decorated paths without straight segment

When a path is decorated in TikZ a straight segment might be added at the end, depending on the length of the path. This is undesirable in some cases, and a resolution for the snake decoration has ...
13
votes
2answers
1k views

How to draw a many edges loop above - tikz

im try to draw many edges loop above in the same node, i have writing : \documentclass{report} \usepackage{tikz} \usetikzlibrary{arrows,positioning,automata,shadows,fit,shapes} \begin{document} ...
7
votes
1answer
1k views

Easy way to draw atomic orbitals and integrate them into ChemFig structures

I'm looking for a method to draw molecules as skeleton structures via chemfig and include some atomic orbitals (i.e. s, p and d orbitals and some sp-hybrid orbitals too) into them (at positions where ...
3
votes
1answer
817 views

TikZ: Arbitrary shapes and filling?

Inspired by the suggestion to use the plot function and and some randomly generated points in Which package can easily write a graph, as an arbitrary curve or area, just for indication (the answer ...
19
votes
2answers
1k views

How can I draw a vector field (quiver plot) on a surface in 3D?

I'd like to draw a vector field on a torus using PGFPlots and/or TikZ. I managed to do it using ePiX, based on the file decorate.xp from the example gallery, but then I have to do z-sorting by hand, ...
10
votes
2answers
998 views

filled quarter circle

As usual I am typeseting some old exams. I ran into this image shown below I ran into some problems when trying to tikz it up. In the minimal example below I have been able to almost recreate this ...
5
votes
1answer
603 views

Incomplete arrows and missing arrow heads in TikZ

I have the following plot which looks good, but there are two issues: Not all arrows have arrow-heads. I have no idea why this is. Some edges are not long enough. For example, the left edge of the ...
6
votes
1answer
623 views

TikZ: simple diagram

I'm trying to get the hang of TikZ as I need images I try to create them. I found this nice example from TeXample (you can find the code for the diagram there) which looks like nearly what I would ...
13
votes
1answer
2k views

TikZ, 3d library and circle fading

I'm using the 3d library to put a circle on the z=0 plane, and other things. I'd like to fade this circle radially, but the result isn't as I would expect because the fading is not proportional to the ...
1
vote
2answers
278 views

construction set of tree

I have three trees in latex , I have this construction : with his code : \documentclass[openright,a4paper,11pt,french]{report} \usepackage{tikz} \begin{document} \begin{tikzpicture}[shorten ...
16
votes
5answers
5k views

drawing tree using tikz, child overlap

I am trying to draw a tree but unfortunately i have some childs overlap each other,I increased the sibling distance , even i have used the option scale but i have the same problem. here is my code : ...
4
votes
3answers
533 views

How can I create a matrix normal form?

Is it possible to create a matrix like the following draft with LaTeX? I have found this Tikzample, but I don't know how to get the dots on the diagonal. edit: This is how far I got: $$ ...
2
votes
1answer
343 views

Pgfplots label get repeated by tikz spy library

My question is very similar to this question. I label a certain curve in my plot and magnify a part of that. The \spy command repeats the \label which causes multiply defined label warnings which are ...
-1
votes
0answers
72 views

how to separate 3 tree latex [duplicate]

Possible Duplicate: Two diagrams side by side construction set of tree I have three trees in latex, I want to represent 2 like this and the third before both ? ...
5
votes
1answer
1k views

TikZ plot: centering and units on axis

I have the following. I'm trying to center the plot and putting \begin{center} around the TikZ image does not work. Also I'm trying to change the units of the x-axis. The x-axis is used to ...
6
votes
1answer
943 views

LaTeX scaling tikzpicture does not work

The TikZ picture in the following code does not scale correctly. It overlaps with text. If I comment out transform canvas={scale=0.5} then it works correctly (but I would like to scale everything). ...
8
votes
1answer
1k views

On using beamer's colors in a Tikz picture

For once, my question is short and simple: How do I use a beamer defined color in a tikz picture. For instance, as beamer's documentation states, using beamer's colors is done as follows: This text ...
3
votes
1answer
937 views

TikZ: bars width and size of plot

This is a followup on my previous question. I have tried to plot my data and I see the following now. Would it be possible to define the size of the area that is used for the plot? I have tried to ...
4
votes
1answer
444 views

Tikz: custom, rounded node shape

I would like to make a tikz drawing with two nodes as shown in my terrible drawing. (The bottom node is meant to be round with some emanating projections that can be much thinner. The top node is ...
3
votes
1answer
536 views

TikZ: plot datapoints with bars

I'm currently generating data files which have points as follows 5 1 3 2 2 1.4 ... Each line 2 values of which the first is indicating the time and the second some value. I'm currently (as I'm ...
3
votes
1answer
559 views

Transparent background spanning several tikzpictures

I am trying to display a "forbidden sign" in the background of two tikzpictures (much like some kind of watermark). However, in the following MWE the "forbidden sign" is cut-off at some seemingly ...
14
votes
2answers
4k views

How to export svg to tikz

I was wondering if anyone had managed exporting .svg files to TikZ code. I do not mean include an .svg file into a latex document, but rather to obtain the code of an image so you can then edit it ...
9
votes
2answers
704 views

Tikz foreach inside matrix

Apparently this question has been asked a hundred times already. But I couldn't get it to work with any of the answers provided. I want to have nested for loops inside a Tikz matrix. Something like: ...
15
votes
2answers
2k views

Generating dozens of graphs

I am revising old lecture notes on microeconomics and they contain a lot of graphs. As I am rewriting it in LaTeX, I would like to recreate the old graphs, but I need to select the right tool for the ...
11
votes
2answers
671 views

How can I avoid a 'Dimension too large' error in an a0 size TikZ figure?

I'm using Debian/Squeeze with its texlive-full package installed. After some success with TikZ for normal article-size figures, I got interested in using it for an a0 size poster. As a (fairly) ...
20
votes
2answers
1k views

Drawing angles greater than 360º inTikZ

When teaching trigonometry, sometimes it is useful to represent angles greater than 360º with some kind of "spiral arc". For example: the angle of -440º in the figure. My question is: How can ...
6
votes
1answer
368 views

How to use tkz-graph and tikz-qtree without conflict?

It seems that the tikz-qtree and tkz-graph packages both define (or redefine) the \edge macro... I'd like to use both, but it doesn't seem possible: \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
3k views

Tikz multiline node with center align [duplicate]

I have a problem with nodes in scheme. I need type a node where will be text "Banka melovskych filtru". Each word on a special line with center align.
3
votes
1answer
1k views

Nested scope shift in nested tikzpictures?

Please consider the following MWE: \documentclass{book} \usepackage[a4paper,twoside,hmargin=3cm]{geometry} \usepackage{tikz,tikzpagenodes} \usetikzlibrary{calc,positioning} \newif\ifoutertikznest ...
16
votes
1answer
2k views

How to create a squiggle arrow with some text on it in TikZ?

I need to define a new command to create a squiggle arrow with some text on it. Something similar to what \xrightarrow command produces but with wiggly arrows as in \rightsquigarrow. The length of the ...
17
votes
2answers
663 views

How to constrain text using multiple shapes in TikZ?

I'm trying to reproduce this graph, using TikZ: So far, what I got is this: It's not bad, I don't mind the circles instead of having elipses (not the point of my question anyway)... The problem ...
9
votes
1answer
220 views

How to get rid of an arrow in tikz?

I want to put a crossing on an edge. I do it in the following way: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage{tikz} \usepackage{color} ...