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)

1
vote
0answers
34 views

Difference between text-height and text-depth in tikz? [duplicate]

Here is from the manual (version 2.10, page 183): This option works like text height, only for the depth of the text box. This option is mostly useful when you need to ensure a uniform depth ...
6
votes
3answers
317 views

Cylinder with non circle bottom, TikZ

Hi i try to plot a cylindrical domain, where the bottom of the cylinder is not a circle or ellipse. My knowledge is very poor and all my previous attempts failed. Failed attempt: ...
14
votes
1answer
3k views

Drawing Karnaugh's maps in LaTeX

I've been using LaTeX for a couple of years, but I'm pretty new to the tikz package. In particular, I'd like to add Karnaugh's maps in my document. I've already found a solution that satisfy me (can ...
3
votes
0answers
6k views

How to fix tikz.sty problem [closed]

I have installed ubuntu10.04 (32bit). My .tex editor is "kile2.1 beta 4". Whenever I compile the following command with kile shows an error 'tikz.sty' not found. \documentclass{article} ...
4
votes
1answer
229 views

Get this error when I run my pgfplots

I got a problem with my pgfcodes. I get this error: ! Package pgfplots Error: Sorry, pgfplots expects stacked plots to have exactly the same number of coordinates. Unfortunately, I encountered ...
8
votes
2answers
263 views

tikz and limits

I don't really know how to explain what I want to do other than giving you the code I wrote : \varinjlim\limits_\cI \left( \begin{tikzpicture} \matrix (m) [matrix of math nodes,row ...
7
votes
1answer
3k views

Align text to top left in a TikZ block

I have a TikZ block defined. The text inside it is not getting vertically aligned to the top. The following is the code I am using: \begin{tikzpicture}[node distance = 6cm, auto] \node [block, ...
2
votes
1answer
305 views

Different height in different split parts + arrow positioning

\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning,shapes.multipart} \begin{document} \tikzset{every loop/.style={min distance=1mm,in=110,out=70,looseness=2}} ...
6
votes
1answer
130 views

Align to TikZ additional separation space

In TikZ I have a styled node, in this case a matrix with an addition separation space and a dashed border. Left and right of this matrix I want to align additional nodes with the north dashed border. ...
9
votes
1answer
530 views

Tikz with contour and transparency

I made a logo for the math software Maxima with Tikz, using the contour package and transparency, but the contour seems to show up "behind" the letters in addition to around them. This shows up when ...
3
votes
1answer
627 views

Adding tikz pictures on top of a beamer slide

What is the best practice for adding/uncover TikZ pictures on top of a beamer slide? I have tried the following approach \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} ...
14
votes
4answers
3k views

Tikz: shading region bounded by several curves

I know that my effort below can be improved upon considerably. In particular, there must be a way of shading the region in a single scope, as opposed to subdividing as I have done (thus necessitating ...
3
votes
1answer
240 views

Wrong frame size in animation

Consider the following code (more or less this): \documentclass{article} \usepackage{lmodern} \usepackage[ hmargin=2.4cm, vmargin=3cm ]{geometry} \usepackage{tikz} \usetikzlibrary{calc} ...
2
votes
1answer
354 views

Tikz-UML include and extend not compiling

For some strange reason \umlinclude and \umlextend are not compiling.. I've been trying to fix this problem for quite some time, without any success. Also couldn't find anything on the internet.. So ...
2
votes
1answer
147 views

How to make stealth stop at the edge of a node in TikZ?

I am trying to draw a stealth from destination node's east horizontally to the source node's west. I now can achieve this by adjusting the stealth length (trial-and-error) like so: ...
3
votes
2answers
552 views

Rectangles around cells in table

I asked a question here but, rather stupidly, added extra information after it had been answered. My additional question is this: I have a table with varying lengths of words. I want to encircle ...
17
votes
5answers
881 views

Placing coloured rectangles on a plot, using points from the plot - Riemann Sums

October 31st Note: Below is the original question, but after some feedback I have progressed somewhat and posted an answer to demonstrate what I've learnt since. My answer presents an encapsulated ...
1
vote
1answer
201 views

How to remove a frame from the total number of frames? [duplicate]

I'm using Warsaw as outer theme. I use some images in different slides to create an effect of 'image in evolution' but the problem is that I don't want that the number of slides increase with every ...
2
votes
2answers
278 views

Adjusting text size in Tikz

I want to adjust my text size in the following code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \usetikzlibrary{plotmarks} \begin{document} \tikzset{fontsize=20} ...
5
votes
2answers
290 views

How to typeset a frame with the title across the boundary?

How could I typeset a frame like: ? I've always used mdframed or tcolorbox to typeset frames but I cannot find mention of such functionality. Is there a simple way of achieving this effect with ...
3
votes
0answers
336 views

Mathematics program used to make the figures? [closed]

I was wondering what kind of program was used to make these graphs / figures ? I know that the authors used LaTeX.
7
votes
2answers
234 views

Rectangles around words in table including diagonals

I'm trying to make a map of word correlations that will include a table of words with similar groupings marked by surrounding them with a rectangle with rounded corners. This needs to also be possible ...
0
votes
0answers
73 views

Dimension too large in TikZ [duplicate]

I have some problems with drawing plots in TikZ. I use GeoGebra to build two curves and then export code into TikZ. So I get following: \definecolor{ffffqq}{rgb}{1,1,0} ...
2
votes
1answer
272 views

Create association lines with TikZ

I recently asked how to Create association lines between characters, and I was open to all kinds of suggestions. Unfortunately, I failed to understand most of the answers given. I should perhaps have ...
14
votes
4answers
636 views

How to plot blurred curves with PGFPlots?

I'm trying to replicate the following plot with PGFPlots: In this answer, the author plays with opacity when drawing overlapping ellipses. Is it possible to use similar code with arbitrary curves? ...
13
votes
1answer
4k views

Origin and formation to the ERROR ‘Dimension too large’

When I tried to compile: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[very thin, red] (0,0) circle (2); \foreach \i in {0, 1, 2, ..., 46} \draw[very thin, ...
7
votes
1answer
501 views

PSTricks and Tikz in plain TeX

I would create both pstricks and tikz picture in my plain TeX documents. If I try, I get an error, maybe caused by the use of the xcolor package. The error is the following: \\color@black ...
1
vote
1answer
482 views

Drawing TikZ pictures step by step for beamer slides [duplicate]

I want to uncover/draw a picture bit by bit for beamer slides. I imagined that using \only inside a \foreach loop should work, for instance: \documentclass{beamer} \usepackage{tikz} \begin{document} ...
3
votes
2answers
2k views

LaTeX Flow Chart Path Problem [duplicate]

I have a flow chart that has all of the nodes that I want, there is just one path that I can't get. \begin{figure}[H] \begin{center} \tikzstyle{decision} = [diamond, draw, fill=blue!20, ...
7
votes
3answers
516 views

How to shade a partial annulus

How can we shade a partial annulus? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (-3.5,0)--(3.5,0) node[right]{$x$}; \draw (0,-3.5)--(0,3.5) ...
3
votes
1answer
518 views

Creating Tic-Tac-Toe boards with LaTeX/TikZ

I am trying to create a diagram of tic-tac-toe boards similar to the one attached below. I cannot seem to find any documentation or examples on how to create these boards in LaTeX or TikZ. Does ...
3
votes
2answers
190 views

Why is there a light gray border with the tikz fill command?

Here is the source code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0, 0) circle (1cm); \path[fill=black] (90:1cm) arc (90:270:1cm); ...
5
votes
1answer
1k views

Cannot insert TiKZ LaTeX code in LyX [closed]

I'm trying to embed TiKZ code in my LyX document. When exporting the document to pdf (pdflatex) I get a blank area instead of the TiKZ output. Here's what I've done: I've added the following two ...
3
votes
2answers
274 views

Plot from scratch (without explicit data)

I'm trying to draw a plot which I've been given in a scan: What is the correct way to plot a custom shaped curve --- a freehand tool counterpart. I used quick curve but it's hard to tell extremum ...
123
votes
13answers
11k views

Can we make a love heart with LaTeX?

I understand that this post may cause some down votes because it seems a bit off-topic, but having seen the discussions on Christmas Tree with LaTeX I am still willing to try. My Girlfriend's ...
7
votes
3answers
1k views

Vertical space inside a TikZ node

I am trying to insert some vertical space inside a node (So it will be filled later). \node [draw,rounded corners,minimum height=5cm] (node1) {\underline{Case 1}}; This is giving this: However, ...
10
votes
6answers
407 views

Create association lines between characters

I intend to create "association lines" between characters, where the start of the line is one or more characters inside a word, and the end of the line is a single character. Something like this ...
4
votes
1answer
528 views

Positioning various types of node over a 3D Plot

Now I've got my curves in 3D behaving the way I want, I would like to add text nodes and vector arrows and so on. Below is an MWE of my basic diagram and the first labelled arrow I've added. That was ...
3
votes
0answers
180 views

Node colors change after building (texmaker pdf and real pdf looks different)? [closed]

I have tried (my own way) to make the example in the TikZ & PGF Manual for Version 2.10 (p. 68). When I build this code, the pdf-file does not look identical to the PDF viewer in texmaker. What ...
2
votes
3answers
647 views

Needed tikz examples

I just drew this with GeoGebra, how to draw with tikz?
23
votes
3answers
935 views

Drawing Sphere to represent a black hole

Can anybody tell me how to draw up a sphere inside a sphere? What I mean is something like this: Also where it says the different horizons be able to insert a mathematical expression? Also not in ...
4
votes
1answer
104 views

Function with the same domain as data loaded into pgfplots

I am trying to plot data an analyze how well it fits a predicted behaviour. I use pgfplots to plot the data using the command \addplot[color=black,mark=x,only marks] table {data.dat}; I would like to ...
4
votes
1answer
166 views

TikZ reusable paths with variables

I want to create a rectangle path and annotating node that I can parameterize with coordinates, style, and text. Currently, I'm doing this: \draw[styA] (\Axi,\Ayi) -- (\Axi,\Ayi + \Ayii) ...
3
votes
1answer
201 views

Error after exiting pdf in Texmaker and SumatraPdf

After compiling the document below: \documentclass[letterpaper]{article} \usepackage{background} \usepackage{lipsum} \newcommand{\edpeercopyright}[2]{% {\small\color{black}Copyright \copyright\ ...
6
votes
1answer
1k views

Label on a tree edge to a node that has children

I have a problem when trying to label an edge that goes to a node that itself has children. Here is what I would like to do: \begin{tikzpicture} \node {A} child { node {B} edge from parent ...
2
votes
1answer
182 views

Adding extra ticks based on sum of ybar stacked

I am trying to add minor yticks on my axis based on the end values of a ybar stacked plot. Here is where I'm at: \documentclass[tikz]{standalone} \usepackage{pgfplotstable} \pgfplotstableread{ Year ...
11
votes
1answer
303 views

Criteria for deciding how best to specify coordinates with tikzpicture with or without pgfplots

Conclusion The original question, as Christian has pointed out, was far too broad and basically a result of being overwhelmed by the size of two main manuals for tikz and pgfplots and how they ...
1
vote
0answers
40 views

How come it always says \tikzlibrary{calc} is missing? [duplicate]

Whenever I put 2 trees onto a document, the system always tells me I am missing \tikzlibrary{calc} on the second tree (I have the same line for both trees) on this line \draw[dashed,rounded ...
4
votes
1answer
191 views

tikz def node name (or reference) for nodes create using the def

I have the following definition in order to create a node with cylinder shape \def\dnc[#1,#2,#3,#4]#5{ \node[draw, cylinder, alias=cyl, shape border rotate=90, aspect=1.6, % minimum height=25, ...
4
votes
1answer
116 views

Problem using tikz with a caption and floatrow together

I have this MWE drawing a caption over an image but when I load the floatrow package, the caption will be drawn under the image. When I only write a text over the image it works. ...