Tagged Questions

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)

8
votes
1answer
158 views

Arcs not being properly drawn for some special coordinates

While attempting to draw some geometry diagrams in TikZ, I was having problems drawing an arc to mark off an angle. The arc kept falling too short and would not intersect both rays of the angle. (It ...
10
votes
2answers
595 views

Rotate fading in tikz

In tikz I want to draw a narrow long rectangle which is faded at the top and at the bottom. This is supposed to represent a laser beam. I define a tikz fading and it works fine as long as the beam is ...
9
votes
1answer
471 views

Placing anchor before and after text in multipart rectangle

In the following graph, i would like the arrows to be originated inside the box and not in the border, possibly aligned and next to the text (for example, right after the word "Pointer:". Here is ...
6
votes
1answer
754 views

how do I escape a comma?

I have a tikz picture and at some point I draw the following node: \node[thick, scale=0.5, minimum size=1.3cm, fill=red, circle, draw, fill opacity=0.3, ...
12
votes
1answer
1k views

Automatic background coloring in listings using tikzmark

I am authoring Beamer presentations that feature numerous code listings, and I am required to highlight portions of code with semi-transparent balloons. Yet I've come up with a solution that uses a ...
1
vote
0answers
67 views

TikZ: a point on the ray [duplicate]

Possible Duplicate: What is the equivalent for ([nodesep=10pt]{B}A) in TikZ? Consider a ray [AB), where A and B are \coordinates in TikZ. One wants to select a point M on this ray such that ...
8
votes
1answer
274 views

Start line in the corner of a node

Hwo to put start line in the corrner of a A node? How to force TikZ to draw C-level siblings to the right direction. \documentclass{beamer}% \mode<presentation>% { \usetheme{Madrid}% ...
11
votes
1answer
3k views

tikz: positioning above of point a, left of point b

I want to create a blockdiagram using tikz. I would like to use "above of, below of, etc." to position my nodes in order to keep it as flexible as possible. I would no like to position a node D on ...
5
votes
2answers
191 views

Highlighting code introduces extra space

I am trying to highlight portions of code inside a listings environment. However, using tikz introduces some extra spaces that I do not understand and would like to ask how I can rid of them. Here is ...
8
votes
1answer
170 views

TikZ path doesn't work with xparse generated macro

I am trying to use TikZ together with a macro that I defined via \NewDocumentCommand (for multiple optional arguments), but it doesn't behave as expected. TikZ is giving up on the path instead of ...
6
votes
1answer
199 views

How to change text leading in node

My goal is to get text in a node closer. Here is how it should be done: Look at XXXXXXXXXXX node. \documentclass{beamer}% \mode<presentation>% { \usetheme{Madrid}% ...
7
votes
5answers
1k views

How to draw this piecewise graph using PGF/TikZ?

Given Is there an easy way to define the condition as "rational" and "irrational" using PGF/TikZ? A minimal example would be greatly appreciated. This is one of the rational/irrational graphs in ...
5
votes
1answer
270 views

Is pgf-umlsd incompatible with pgfplots?

The following document renders a nice sequence diagram for me: \documentclass[12pt,english]{scrartcl} \usepackage{babel} %\usepackage{pgfplots} % Sequence diagrams: \usepackage{tikz} ...
44
votes
3answers
6k views

Outsourcing TikZ code

My Tex files get very confusing since I have multiple long TikZ code in them. How do you organize your files when it comes to TikZ?
11
votes
1answer
260 views

\foreach has a problem with ‘initially’ argument in remember part

Is there an error in my code or did I find a bug? It seems like the \foreach statement doesn’t increase \lastn if there is an initally (value) but it works with a manually given initially value ...
6
votes
1answer
435 views

Can someone pgfplots the following picture concerning confidence intervals?

I've been trying to use the following code to produce it, but have no idea how to shade in the tails I am interested in. By the way, the line pointing the (100-C/2)% can be an arrow, does not have ...
6
votes
1answer
639 views

What packages or tools best support any 3D line, plane, surface intersections?

I have not explored the PSTricks' pst-solides3d, TikZ's equivalent packages, Asymptote as a tool, etc, yet. I have a task to make some simple 3D diagrams that are related to 3D geometry subject we ...
10
votes
5answers
465 views

How to fill the limits of the two curves?

I want to fill the limits of the two curves (as shown). This is my code \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} ...
10
votes
1answer
162 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
372 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} ...
14
votes
2answers
711 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
5k 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 ...
5
votes
2answers
115 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
168 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
237 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
282 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
325 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
387 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
315 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? ...
6
votes
1answer
1k 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} ...
12
votes
1answer
1k 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?
8
votes
1answer
428 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? ...
5
votes
1answer
735 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 ...
3
votes
0answers
79 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
146 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
750 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 ...
7
votes
1answer
423 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 ...
19
votes
1answer
737 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 ...
8
votes
1answer
361 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
1k views

Drawing the mapping of elements for sets in LaTeX

I am looking for a way to do something like
4
votes
2answers
579 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 ...
10
votes
1answer
930 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 ...
15
votes
2answers
990 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
641 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
262 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
430 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
241 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: ...
29
votes
1answer
1k 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 ...
25
votes
1answer
2k 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
193 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 ...