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)

-2
votes
1answer
37 views

Country balls in Tikz?

On 9gag we have something called "country balls". Is it possible to make them in LaTeX TikZ? Are there maybe already a collection of them? Or an easy way to create them? Maybe there are a usepackage ...
4
votes
1answer
19 views

Package pgf Error: Unknown arrow tip kind 'latex’' \path (

I'm following the PGF 3.0.0 manual, and I have PGF 3.0.0 installed. In the manual, the example is under 20. Matrices and Alignment -> 20.6 Examples. I get errors for all the \path statements in the ...
11
votes
3answers
278 views

Drawing a flag in Tikz!

I have some trouble with tikz. I wanted to draw a flag in Tikz - but that with minimal success. Here a sketch: The sketch is not how it should look like: the letters are just there so I am able to ...
2
votes
1answer
15 views

How can I multiply nodes in pgfgantt environment?

I have looked at PgfGantt: Customization of canvas to mark Vacations and implemented a version of it to draw rectangles starting at one date and ending at another which works fine. The problem is that ...
0
votes
0answers
32 views

Ending a proof/example with an image - no qed showing up

I have had this problem before, and I have usually gotten around it the lazy way: by adding some filler text between the \end{minipage} and \end{example}, but I would like to know the correct way to ...
4
votes
1answer
58 views

Using Multirow in tables created with a TikZ matrix

I need to incorporate multirow in the following table, and I keep coming across errors. I found the following example for a great formatted table with colored cells and rounded corners here. I have ...
4
votes
1answer
85 views

Smart Art diagram

I want to update the Smart Art diagram down below: to the following one: . My source code for the first one is: \documentclass[12pt,a4paper,landscape]{article} \usepackage{tikz} ...
6
votes
1answer
36 views

Why `fill` covers `append after command` elements?

Next code is just a little example to describe the problem. I would like to add some elements (lines or text) inside a node and I would like to do it through node's .style. I've tried with append ...
2
votes
1answer
25 views

Log mode of short X-axis pfgplots

I'm trying to obtain this graph (made in Origin): Both axes in log scale. This is MWE: \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{units} \begin{document} ...
3
votes
0answers
34 views

tikz-plots get recompiled every time when using tikzscale

For my thesis I have a lot of tikzplots exported from matlab using the matlab2tikz library. I want to use the tikzscale-Package together with externalization of the plots to save compiling time. Using ...
2
votes
1answer
37 views

TikZ nodes' input and output anchors

Looking at the pgfmanual section 47.4.9 at the shape of the make contact... I'm having trouble understanding the point/use of the input- and output anchors. The input and output anchors are placed ...
8
votes
1answer
44 views

How to apply only vertical changes while pathmorphing?

I want to recreate the image shown below. I'm struggeling with the "Non-conact-mode" part. This ist what I achieved so far: \documentclass[a4paper]{scrartcl} \usepackage[utf8]{inputenc} ...
1
vote
0answers
41 views

Wrong pdf output size

I'm trying to create an image (.pdf) that should be filled with black and white thick lines. The code I'm using is working pretty good except for the fact that the matrix output size is not correct ...
2
votes
1answer
49 views

Estimating coordinates to draw over image using TikZ

I need to draw two rectangles (or this could apply to any shape in general) of different colors on top of a diagram. The MWE that I have this is. The code works, but I am unable to change the ...
3
votes
3answers
83 views

Sizing a pgfplot so it fits in a multicol column

I'm very new to TeX but I'm trying to put together a document that has a multicol layout with a chart inline in the column. The chart always seems to overflow the width of the column and I can't ...
3
votes
2answers
54 views

Control of text position using the decorations.text library in Tikz

I have a two properties that I have been struggling to implement in the decorations.text library for the following image. My two questions are: 1) How do I control the text position along the line? ...
2
votes
1answer
180 views

Plotting f(x) = sin x and f(x) = cos x on pgf/tikz

I'm new to graphing on TikZ/pgf and have been trying to figure this out but can't seem to find any helpful info for what I want. I want to plot the above functions over one period, i.e. on the ...
6
votes
1answer
118 views

How to draw a parallel network of queues?

I am trying to draw this figure with tikz. Unfortunately, I am not succeeding. I really care about 4 queues, one classifier and one multiplexer and with their arrows. So I need to draw this simple ...
1
vote
0answers
38 views

Conflict tikzscale and matrix group plot

I want two axis environments next to each other in one figure environment. I want them to be vertically aligned and scaled to the width of the text. I am trying to achieve this by means of the ...
0
votes
1answer
34 views

two tables of same size tikz

I am creating two tables with the following code (tikz package} \documentclass[twoside,11pt]{article} \usepackage{tikz} \usepackage{url} \usepackage[T1]{fontenc} \usetikzlibrary{positioning} ...
3
votes
1answer
54 views

problem with combination of beamer and rand from tikz

When running the enclosed MWE my problem is to see at the first glance (I hope so at least): I would like to place the various words with each visible-step at random places on the slide. But if a word ...
2
votes
1answer
85 views

Molecular Orbital for NH3

I need some help drawing a NH3 molecular orbital. I've made a drawing off how it should look like (but it looks ugly, the proportions are wrong and and and). It would be nice if you could help me ...
0
votes
0answers
12 views

How do i get the grid to start exactly in the upper left corner of the page? [duplicate]

I'm using page relative positioning in tikz to draw a grid to can verify that my elements are at the right places. However, the grid does not start in the corner, which is what i intended. What's ...
5
votes
2answers
121 views

Place TikZ picture over top of text

I'm designing some letterhead using LuaLaTeX (interchangeable with XeLaTeX at this point) where I want my signature and name to be drawn like this: The signature is a TikZ drawing, the text is ...
-1
votes
0answers
55 views

Why do TikZ animations have to be compiled twice before they run? [on hold]

Why do I have to compile a LaTeX document containing a TikZ animation twice before the animation runs? There were not even errors in the log file? I use 32-bit MiKTeX 2.9 for Windows.
3
votes
1answer
26 views

Placing multiple labels outside a node with TikZ circuit library

I'm trying to create a set of additional components for use with the TikZ circuits library. Specifically I'm looking at electro-engineering diagrams with a focus on key diagrams. Components in such ...
5
votes
1answer
40 views

Text in Tikz node not respecting baselineskip

I'm trying to include a few lines of text in a Tikz drawing, using a custom font size. However, when defining a font size, the baselineskip is only respected for the first line. See the minimal ...
0
votes
2answers
78 views

How to draw inward arrows between two paths?

How to draw inward arrows between two paths, like in the picture below?
1
vote
0answers
62 views

Unable to use tikzlibrary packages [on hold]

UPDATE: Solved. See my comment below for the fix. I've been trying for the life of me to figure out how to use the math tikzlibrary (\usetikzlibrary{math}), and no code works. I fear that it has ...
5
votes
3answers
158 views

Drawing a series of graphs receding into the page; TikZ

I want to draw a panel of graphs of citation networks receding into the page, as the below sketch demonstrates. In the below sketch, each blue rectangle represents a citation network at a different ...
1
vote
1answer
40 views

TikZ \tkzFct are blank under Ubuntu

But under sharelatex they just worked fine (I might have modified some thinghs though). The code: \documentclass{report} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tkz-fct} ...
5
votes
2answers
93 views

Coloring a node after its creation

I want to fill a node with a specific color, but not with the usual [fill=blue] way. The reason is, that I am creating many many nodes and I want to fill some random nodes with a different color from ...
5
votes
4answers
474 views

How to draw infinite earring with TikZ?

I want to draw an infinite earring, i.e., each circle centerd at $(\frac{1}{n},0)$ with radius $\frac{1}{n}$ for each $n\in \mathbf{N}$. The figure will be the following: I have used the ...
2
votes
1answer
58 views

Making Curly Braces with Tikz

How can I make the curly braces on TikZ to label the x and y as in this picture?
0
votes
0answers
46 views

Tikz scientific notation vs. decimal number on x and y axis

I found an interesting potential glitch in tikzpicture in that the arbitrary placement of scaled ticks = false, tick label style ={/pgf/number format/fixed} within the \begin{axis}[] makes a real ...
1
vote
0answers
36 views

Posters with TiKZ and LaTeX: is scaling the right tool?

I have a small (11'' * 17'') poster that I made using textblock and tikz. I want to enlarge it to 18'' * 24''---i.e., enlarge the print and graphics accordingly, not just change the paper size. Is ...
4
votes
1answer
65 views

Flowchart Tikzpicture - Draw arrow from path

I am creating a flowchart using the tikzpicture package. Because I am short on space, I would like to draw an arrow from a path to a box. Using this code below, I would like to have an arrow that ...
3
votes
1answer
35 views

TikZ won't support HSB color model hsb in article document class

I'm trying to use the wave color model in a tikz picture using the document class article. When I do, I get the error message "Unsupported color model 'hsb'". Consider the code below. ...
1
vote
0answers
31 views

How to install TikZ and PGF on OzTex 6?

I am trying to install the TikZ and PGF Packages on OzTex 6. so to be able do draw complex trees. Once downloaded I put them respectively in OzTex-6/Tex/Inputs/LaTex/tikz-qtree and ...
6
votes
2answers
95 views

TikZ wrong node placement on curve

I use TikZ to draw a Bézier curve and place 4 circles (nodes) on that curve using pos=0.25 etc. (see MWE below). The curve has an arrow at the end. I would like to use >=latex to get LaTeX-style ...
4
votes
2answers
135 views

High degree polynomial plotting with Tikz/pgfplot

I am new to tikz/pgfplots...so sorry if my question has been asked... I am trying to plot the tanh function using pgplots, then add a set of N points and plot the (n-1) degree polynomial passing ...
0
votes
3answers
76 views

Plot y=x^(-0.5)

How can I plot y=x^(-0.5)? \documentclass[border=2pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[->] (0,0) -- (6.2,0) node[right] {$Q$}; ...
0
votes
0answers
43 views

TikZ adding captions to tree diagrams

I am adding several tree diagrams to my latex document, nad I want to add captions to the trees to explain what they are. Is there an easy way to do this with tikZ, or do I have to use something else ...
4
votes
1answer
53 views

Margins and positioning with tikz-dependency

I am using gb4e and tikz-dependency simultaneously to demonstrate dependency examples with my glossed sentences. But if my example sentence is too long, it doesn't get split across lines and just goes ...
5
votes
1answer
70 views

Consistency in the appearances of loops from rectangular nodes

I would like to have a left-positioned loop "look the same" as a below-positioned loop emanating from a rectangular node. \documentclass{article} \usepackage{tikz} \tikzstyle{rect} = [rectangle, ...
15
votes
1answer
164 views

Truncated cube with numerated faces

I am having difficulties to project texts in inclined planes. To be more precise, i would like do latex the following question. Exercise: In the following figure, we see two different views of a ...
2
votes
0answers
53 views

Comparison of the plots of the same line on the Cartesian plane using pgfplots and TikZ

I have the plot of a line using pgfplots and the plot of the same line using TikZ. I would like them to be identical. I need to correct a mistake in the plot of a line using pgfplots. The point ...
4
votes
1answer
66 views

Doing something like psframebox in tikz

I used the following code to typeset the figure below with pstricks. Is there something like this that works with tikz? I tried to do this and discovered \nodes that can be filled with text, but I ...
4
votes
1answer
68 views

Clean code in drawing with boxes and circles and lines not connected

I want to optimize the following code: \documentclass{article} %\pagestyle{empty} % Figure dimensions \newcommand{\defLength}[2]{\newlength{#1}\setlength{#1}{#2}} ...
7
votes
1answer
76 views

Zooming on one of multiple images in a slide using Tikzpicture

I would like to zoom in on one of the 12 images that I have organized in 3 columns. There are 4 images per column, all the same height and width. There is one image that I would like to zoom in on ...