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)

11
votes
1answer
198 views

Indefinite Subtrees

While doing tree proofs, sometimes we need to consider a root with some subtrees, but we don't know the exact properties of the subtrees, so we just represent them using triangles. Is it possible to ...
6
votes
2answers
583 views

Automatic scaling of kiviat diagrams

\documentclass[twoside,a4paper,12pt]{article} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage[upright]{fourier} \usepackage{tkz-kiviat,numprint,fullpage} \usetikzlibrary{arrows} ...
15
votes
2answers
1k views

Computed coordinates are all the same?

It's embarrassing question time. Why are my computed coordinates all showing up at the same location? The larger filled quarter circles are drawn with: current page.\x where \x is south west, ...
7
votes
3answers
6k views

Help with drawing a triangle in using tikz

I'm trying to draw a triangle using TikZ. I managed to get it completed, but now I'm having trouble with getting the node to go into the body of the triangle. I've only been using TikZ for a couple ...
6
votes
2answers
314 views

How do I use scopes to apply a style to nodes inside a path?

I want to use nodes inside a single path, in order that I might position one relative to another using the ++(x,y) notation. However, a scope that I want to use to style the nodes only styles the ...
8
votes
1answer
280 views

How can I superimpose tikzpicture on a certain part of the page?

I have a beamer slide, with some text and some graphics, and I want to superimpose a tikz picture on it. Is that possible?
6
votes
1answer
451 views

a book recommendation for doing graphics in beamer

I am interested in drawing diagrams, trees, and other simple basic graphical items (all in beamer, as a matter of fact). Can someone recommend on a good book that would explain how to do that? (I am ...
8
votes
1answer
340 views

Fit graph into specified dimensions pgfplots

I'm trying to get my graph to fit inside of the graph's dimensions (4in by 7.5in). I want the ymin of the graph to be the minimum y value of all my points and the ymax value the maximum y value for ...
9
votes
1answer
459 views

Drawing multiple arrows at arbitrary angles in a common direction, with overlap

I am trying to draw a diagram with tikz that has multiple arrows (here I have 4) between nodes, where the nodes are placed arbitrarily in a diagram. My best (that is, shortest and easiest to ...
6
votes
2answers
510 views

Tikz Composite Midpoint Rule Horizontal Lines

I have 'written' the following code to get the attached diagram but am unable to draw horizontal lines above the even notes, i.e. x-2j and x-2n as well as x-0 and x-2. This was extremely straight ...
4
votes
1answer
370 views

Could someone help me pgfplots the following functions (w/labels)?

This is an extension of my previous question concerning graphing a pair of functions using pgfplots (please see link below): Could somebody figure out how to create the following graph using pgfplot? ...
11
votes
1answer
3k views

How to create a gaussian curve with pgfplot?

What I want: This is what I have so far in terms of code: \newcommand\gauss[2]{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2))} % Gauss function, parameters mu and sigma \begin{tikzpicture} ...
14
votes
1answer
3k views

TikZ: small circle as an arrow tip

I know that the TikZ Arrow Tip Library (arrows) defines a circle arrow [-o], however this circle is too large for me. Is there any way I can control the size of the circle on the end of line?
9
votes
1answer
600 views

Wrong vertical text position with Tikz

This is driving me nuts. The "Job5" and "Job6" text is slightly verticaly higher than the rest of text. I'm suspecting the "inner sep", but I need that for the fit. How can I re-adjust the text? ...
6
votes
1answer
1k views

vertical lines in matrix using tikz package

my problem is interconnected to my two previous posts (here and here) and i've tried to incorporate answers into solution but without success. My task is this matrix multiplication with added ...
4
votes
0answers
83 views

Smooth curves with variable width [duplicate]

Possible Duplicate: ‘Poster’ fountain pen nib style text Does exist any TikZ library with the help of which it is possible to draw smooth curved lines with variable width? I mean to set ...
6
votes
2answers
158 views

nodes in matrix and its incorporation into document

i continue with my previous post (here) concerning various additions to matrix. I have following problem: how to add nodes into matrix and this whole matrix incorporate into the document ? My task is ...
10
votes
1answer
1k views

Missing horizontal or vertical lines when drawing backwards TikZ grids

Look at next code, when I want to draw a grid from right to left or top to bottom, vertical or horizontal lines are not drawn, even with xstep=-1 or ystep=-1 (as it's suggested in Jake's answer in ...
8
votes
1answer
644 views

tikz and colorboxes in plain tex

I recently discovered that I could use tikz in my plain tex documents using \input tikz. I'm happy with it and began to experiment the drawing of some pictures. But, when trying to compile some ...
21
votes
1answer
983 views

Tikz - How to overlay Decorations over longtable

I asked similar question here Colored Curly Brackets spanning across multiple pages but may be I did not provide enough detail. On its own the solution works great. I have about 32 longtables in my ...
9
votes
1answer
452 views

Shift every second ticklabel

I have a chart with long xaxis tick labels (text). There a way to shift every second tiklabel as it is done in Axis tick numbers overlap in TikZ for all tick labels?
10
votes
4answers
2k views

Drawing the mapping of elements for sets in LaTeX

I am looking for a way to do something like
5
votes
2answers
926 views

Best option to create vector graphics with LaTeX labels

I would like to create some vector graphics for my LaTeX documents. The graphics would often contain mathematical expressions that would should be typeset using LaTeX. As far as I know, my best ...
13
votes
1answer
1k views

Why are empty and non empty TikZ matrix cells not equally placed?

I wanted to draw an almost empty matrix of nodes with TikZ similar to the left most one below. All nodes would have same size (through minimum width and minimum height) and no separation between ...
20
votes
2answers
2k views

Use tikz external feature with beamer \only

I would like to use the beamer \only with tikz while external is activated. The problem is, that the \only get ignored. (see also the MWE). I would love to cache the tikz pictures, because it would ...
11
votes
1answer
889 views

Tables in Latex with diagonal first row

I'm trying to create a table with a diagonal first row, like in how-to-draw-diagonal-table-borders-in-latex-like-in-excel I've looked through the documentation for PGF-TiKZ, but am still unsure as to ...
1
vote
1answer
324 views

Drawing chamber or container in tikz

I want to make the following diagram. I know the basics of tikz but here I'm struggling. Can you advise me how to make the container with seedlings? Thanks for your help.
6
votes
1answer
616 views

Problem with external graphics and 3D pgfplots

I want to include an external graphics with pgfplots. I tried to follow the instructions of the manual (p45 et seq.) as carefully as possible. But the result is hoorible as hell. Here is the code I ...
4
votes
0answers
278 views

3d axis label ovelapping [closed]

I'm using matlab2tikz to generate the tikz code for my figures. When compiling the document with the figure code as below, I get an ovelapping with the axis label y and z. Here is what I've got: ...
32
votes
1answer
3k views

Creating thicker Tikz mindmap connectors

I'm running MiKTeX 2.9, on a Windows 7 machine. My pdflatex compilation log lists: pgf 2008/01/15 v2.10 (rcs-revision 1.12) I am using TikZ's mindmap library to draw some graphics and I quite ...
26
votes
1answer
3k views

Mini table of contents inside TikZ node on chapter start page

I need to add a fancy looking chapter start page to a book. We're using the memoir class and make use of tikz for fancy section and chapter headings. Now, I need to add a list of the sections that ...
11
votes
1answer
220 views

Dual compatibility of TeX sources

Consider the following situation. You enjoy TeXing on your local machine, having fun with the latest versions of various packages. For example, exploiting the benefits of TikZ/externalize... or ...
2
votes
1answer
372 views

Minipage: trouble getting figures at top of page

I'm trying to fit these to flowcharts in one page. This is what I got so far, not so nicely done I think. Any suggestions how I can get the flowcharts at the top of the page, nicely next to each other ...
5
votes
2answers
646 views

Off page connector using Tikz

I'm creating a flowchart using TikZ. You can see my code so far below. But now I want to create an off page connector: I don't have a clue how to implement this in my \tikzset. Furthermore I ...
10
votes
1answer
2k views

PGFPlots how to add a label “0” to the origin

I am using pgfplots to plot the a function. I have been looking around on the forums, but I could not find a solution. I would like to origin to be indicated as a 0 on the x axis. I would also like ...
5
votes
1answer
727 views

Polar coordinates problem

I do not understand how it is interpreted by a specified angle when using polar coordinates. I prepared three examples in my MWE: \documentclass{article} \usepackage{tikz} % ...
4
votes
1answer
351 views

Label text alignment in tkz-euclide

I'm having a bit of difficulty with the alignment of point labels in tkz-euclide. For (a simple) example: \documentclass{article} \usepackage{tkz-euclide} \usetkzobj{all} \begin{document} \noindent ...
13
votes
3answers
1k views

Shading an area bounded by curved paths between nodes

I am drawing a graph of sorts in TikZ, and I have several connected nodes in a cycle, and I would like to shade the area bounded by paths between those nodes. My problem is that the shading is not ...
16
votes
1answer
3k views

Drawing a Venn diagram

Below is a Venn diagram I created in TikZ. Here is the code. I want to now add a set E such that D is a proper subset of E and E is a proper subset of B. It is apparent that the set E cannot be ...
4
votes
1answer
612 views

Commonly used arrows with TikZ

In a previous question Gonzalo Medina and Peter Grill gave a solution to replace the \to arrow by an arrow generated by TikZ. For some people using TikZ in commutative diagrams, it would be perhaps ...
13
votes
2answers
1k views

Help with drawing a unit circle & lines

I would like to draw a unit circle with labelled coordinates of points on it as well as lines that intersect the circle like this: The code that I pasted below does part of the job. But I want ...
18
votes
1answer
8k views

Flowchart using Tikz

I'm trying to create a fine flowchart that is a bit complicated. Therefore I need a block for a predefined process and a connector block as well as a data block. Can someone help me? In comment is ...
19
votes
2answers
10k views

Change style of labels of Tikz nodes of a given style

How can all labels of a given type of node be restyled in Tikz? Imagine that there are nodes of different styles, and that only the nodes of style X should have red labels. Is this possible without ...
5
votes
1answer
383 views

Connecting normal lines with decorated ones

I've got a problem, I've tried it a lot and I've investigated about it but I haven't found the answer. I've got a code like this.... \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
442 views

How can I remove the shade in this TikZ picture to get white filling?

I want pure white fill so that upper most circle becomes incomplete. But black shade comes in the figure. Is there any easier way to do this? \documentclass{article} \usepackage{tikz} ...
7
votes
1answer
727 views

TikZ, a selfloop without an arrow at the end

In TikZ, within the context of automata, I would like to draw a loop without arrow in order to be able to highlight a path in an automaton, as shown by the following example (which highlight a path ...
7
votes
1answer
368 views

TikZ arrows pointing only to the superscript exponent

Here's what I've got at the moment: \begin{frame} \frametitle{Nazewnictwo} \tikzstyle{na} = [baseline=-.5ex] \large \[ \tikz[baseline]{\node[fill=blue!20,anchor=base] (t1){\Huge{$a$}};} ...
10
votes
4answers
3k views

Plot sine curve inside tikz file

I am trying to recreate the following image and so far I have this My problem however is how to plot a sine curve, and get the distances right (related to the sine curve). I am sure my code ...
4
votes
1answer
259 views

How do I put a note after an image into an itemized environment?

Following the question How do I insert a full screen picture inside an itemized environment?, I was able to insert an image into an itemized environment. Now I would like to put comments on my slides ...
12
votes
3answers
12k views

How to graph a function using TikZ?

I want to plot this function with a big range says, (-10,000:10,000), unfortunately I couldn't figure out how to set the domain, or xrange correctly to scale the graph nicely. This is what I have so ...