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)

0
votes
0answers
15 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 ...
1
vote
1answer
43 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 ...
5
votes
2answers
139 views

How can I design a DVD tray template to for my DVD label printer with TikZ?

Question I am trying to design a template for my Canon iP7250 printer. I would like to draw it using TikZ. I'd like to compile both pdf files and svg files. The middle should be transparent just like ...
3
votes
1answer
45 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 ...
6
votes
1answer
123 views

How can I readjust TikZ's dimension variables to fit mid-document dimension change?

Question How can I readjust TikZ's dimension variables to fit a mid-document dimension change as in this example and using the TikZ drawing from here. Problem TikZ coordinates are not where they ...
5
votes
1answer
103 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 ...
6
votes
4answers
154 views

TikZ chain nominate node location

I want to nominate node C4 at right of C1. so I have to define C1 before create C4. Below code seems has one extra line from C0 to C3. \documentclass{standalone} \usepackage{tikz} ...
1
vote
0answers
53 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 ...
10
votes
3answers
2k views

Why yshift doesn't work in this TikZ example?

Any idea why yshift doesn't work in the following TikZ example? \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (A) at (0,0); \coordinate (B) at ...
0
votes
1answer
31 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} ...
0
votes
1answer
60 views

tikzexternalize in TeXMaker doesn't work

I'm having some troubles while compiling my thesis with the tikz externalize feature in Texmaker. I created the user command: "D:/laTex/texlive2014/bin/win32/pdflatex.exe" -synctex=1 ...
1
vote
1answer
44 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
11 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 ...
6
votes
2answers
89 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 ...
-1
votes
0answers
53 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.
5
votes
1answer
68 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, ...
5
votes
2answers
109 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 ...
0
votes
2answers
73 views

How to draw inward arrows between two paths?

How to draw inward arrows between two paths, like in the picture below?
3
votes
1answer
24 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 ...
0
votes
1answer
109 views

I need this tikz and tabular sketch at the right of my presentation, and an itemize at left, but too much length

I need this tikz and tabular sketch at the right of my presentation, and some text at left. Unfortunatly the text is at left but in the down part of my frame, I need it at the center and starting ...
7
votes
1answer
365 views

Common label for a groupplot

This can be considered a combination of the following questions How can a title be placed for a group of pgfplots? Align ylabels of grouped plots at a common line The following piece of code ...
1
vote
1answer
38 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
4answers
466 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 ...
5
votes
1answer
38 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 ...
39
votes
12answers
4k views

Drawing a Reuleaux Triangle

A Reuleaux triangle is a shape of constant width sort of like a rounded equilateral triangle. (Reuleaux triangle - Wikipedia, the free encyclopedia) It can be formed by the intersection of three ...
23
votes
5answers
749 views

Drawing of triangle and coordinate system using TikZ

I am using TikZ for the first time, and I am experiencing some difficulty getting what exactly I want it to display. I am trying to draw the following picture: Here is the code (I know it is not ...
5
votes
3answers
149 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 ...
4
votes
3answers
468 views

Angles in three dimensional space

I'd like to make the markings of the angles of a triangle, in three dimensional space, automatically, using the \tdplotdrawpolytopearc. I tried something like: \documentclass{article} ...
13
votes
1answer
113 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 ...
4
votes
1answer
238 views

TikZ: Arrowhead color defined by an option for another command

I was studying the PGF manual when I faced the following behaviour. Referring to the code below, I specified a latex arrowhead after the \filldraw element and the arrowhead is drawn of the same ...
5
votes
2answers
90 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 ...
53
votes
8answers
2k views

How to automatically draw tree diagram of prime factorization with LaTeX?

I want to have a simple interface to automatically draw tree diagrams of prime factorization. For example, by invoking the following code, \PrimeTree{36} \PrimeTree{90} \PrimeTree{112} ...
5
votes
1answer
189 views

How to color vertices in a TikZ graph?

Consider the following code to draw a graph using TikZ: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs,graphs.standard} \begin{document} \begin{tikzpicture} \graph ...
6
votes
3answers
285 views

Draw octagon with color node at middle edges

I would like to draw three pictures in TikZ but I don't know how to do it.
4
votes
1answer
49 views

how to add labels to arrows avoiding conflicts with existing node shapes

Ok, I've made the following diagram: I want to add text labels to the various arrows (at the red points) and I want to ensure that the labels do not overlap the dotted lines, the arrow lines etc. ...
2
votes
1answer
56 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
41 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
35 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 ...
3
votes
1answer
66 views

Is it possible to add node labels to some matrix column or row when building it?

I want this: which is done with \documentclass[border=2mm,tikz]{standalone} \usetikzlibrary{matrix} \begin{tikzpicture}[ mygridmatrix/.style={matrix of nodes, row sep=-\pgflinewidth, ...
4
votes
1answer
61 views

Problem with `in` (to path) angle when negative scale factor are applied

Trying to convert a coment into a complete answer for How do determine the arrow form in Tikz I think that my solution there worked by chance and that MWijnand found a wrong behavior in to path ...
4
votes
1answer
62 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
34 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. ...
5
votes
4answers
603 views

Creating a rainbow color macro

I'm trying to draw a picture in tikz whose code is generated by another computer program. The program outputs hundreds of numbers in between 0 and 100, and I'd like to color objects in the picture on ...
4
votes
1answer
52 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 ...
1
vote
0answers
30 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
176 views

How do I fix this error with my arrows

I am using tikz to generate sine and cosine graphs with arrows at the ends of each curve. The arrows appear fine for the sine curve, but not so for the cosine curve. Why does this occur and how do I ...
4
votes
2answers
132 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
75 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
1answer
71 views

Problem when drawing curly braces

I have to draw two similar graphs, both including curly braces. I am using the decorations.pathreplacing library. When I only graph any of them separately, it works. When I want to graph both graphs ...
4
votes
1answer
65 views

tikz matrix as legend does not work with trim axis

I am using the tikz-library matrix to create a legend for a plot with two y-axes. When I add "trim axis right" to the code the legend is stretched to the right. How can I prevent this? ...