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)

3
votes
1answer
92 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 ...
0
votes
0answers
14 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
28 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
0answers
23 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 ...
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 ...
5
votes
2answers
106 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
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.
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 ...
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 ...
0
votes
2answers
72 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
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 ...
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 ...
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
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 ...
5
votes
4answers
462 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
55 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 ...
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
32 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
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
88 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
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
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
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 ...
5
votes
1answer
67 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, ...
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 ...
2
votes
0answers
51 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
65 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
65 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
73 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 ...
3
votes
0answers
41 views

Modify font for all text in tikzpicture

I created a newcommand like this: \newcommand{\txtDBC}[1]{\contour{white}{#1}} and I want to apply it on all text and math formula in a tikzpicture. The first was to declare a specific font using ...
3
votes
1answer
50 views

Conditionally change node background color inside foreach

I generate 8 rectangle nodes using a \foreach loop but I would like one of them (the one at the position index) to have a gray background. How can I do that ? I would like to avoid repeating the ...
6
votes
1answer
110 views
+50

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 ...
7
votes
1answer
65 views

Creating a smooth gradient between two colors on an edge in TikZ

I'd like to have a two-colored edge between two nodes of different colors. I'm hoping to make the edge fade from one color into the other in an even way. The solution I've found so far is a bit ...
1
vote
1answer
33 views

Text alignment and form of connectors (edges) in tikz tree

I'm completely new to tikz and try to draw a tree structure. I have tried different options, but could not modify it as I wanted it to look like. It currently looks like that: Tikz code ...
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
68 views

How to change the paper color(background color) in tikz class

How to change the paper color(background color) in tikz class kindly help me to change color \documentclass{scrartcl} \usepackage[usenames,x11names,dvipsnames,svgnames]{xcolor} ...
1
vote
2answers
61 views

How to set opacity/transparency to vector image?

Hold your horses!. If you are hurrying to flag this as a duplicate of this question or this question none of those have an answer to what is asked here. Thanks for the attention though. I ...
9
votes
1answer
69 views

Inserting a orgin tangential to a sphere

I am trying to draw a picture like the one attached. I have not used much of the tikz package. My code so far is a follows. I what to include a set of angles in the image. Any help would be great and ...
6
votes
1answer
89 views

drawing automota states using tikzpicture

I really new to latex (~3 days of use) and I am trying to draw an automota for a problem that I am working... For some reason I am getting an error and my states all appears to be messed up. Please ...
6
votes
1answer
43 views

Problem with Tikz arrowhead definitions

When you specify double, Tikz first draws a line whose width is twice the line width plus the double distance, then draws a white line down the center whose width is the double distance. But the ...
6
votes
1answer
86 views

How can I draw -X in the forest package?

I want to draw a dead-end in forest. edge={-X} doesn't work. Example: \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} ...
4
votes
1answer
64 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? ...
1
vote
0answers
33 views

How to label an arrow in a commutative diagram

I'm writing my thesis using LaTeX. I need to add a commutative diagram with labels on arrows. Let me say that I'm writing my text in Italian using the babel package. Here a minimal example to ...
7
votes
2answers
119 views

How to perform not rectangular fit with tikz?

In the following tikz MWE I am using the fit library to draw a red box: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture} \node ...
0
votes
0answers
27 views

Invert axis using pgfplots and TiKz

I am trying to do a stacked histogram, and I am trying to start from the code provided in this question : Tikz Stacked Bar Chart with Text Yet, I would like to invert the axis, so that the A,B,C... ...
2
votes
3answers
82 views

Idea-lamp box in beamer

I was think of making a new block (or not necessarily a beamer block) that will have the shape of a lamp, just to illustrate a new idea. Inside this lamp, there will problably be text, that will ...