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
1answer
21 views

Vertical colorbar (in tikz) + subfigures (png)

I have an issue with the placement of a colorbar. The colorbar is defined separately in a tikz-environment, as suggested in this topic. My goal is to place one colorbar together with 4 png pictures ...
5
votes
1answer
17 views

tikz-3dplot: Rotate arc around specific axis

\documentclass[tikz]{standalone} \usepackage{tikz-3dplot} \begin{document} \begin{tikzpicture}[scale=2] % draw arcs \draw[canvas is zx plane at y = 1, line width = 1pt] ...
2
votes
3answers
132 views

How to create this graphic with TikZ?

I want to create a graphice like the following: Below is my code: \documentclass[11pt]{article} \usepackage{tikz} \usetikzlibrary{arrows} \newcommand{\psign}{+} ...
3
votes
1answer
28 views

How to change label distance in a TikZ diagram

I'm a complete beginner when it comes to TikZ, so please excuse some stupidity on my side. I'd like to TikZ a tower of fields, however the distance of the inner labels and the edges is too big. I'd ...
5
votes
0answers
53 views

Watercolor in tikz

Is it possible to fill a shape with a coloring that looks like watercolor like in this image using tikz or pgfplots? Src: http://bartoszmilewski.com/2015/07/29/representable-functors/
4
votes
2answers
54 views

Placement of labels in tikzpicture

I have constructed a polygon using tikz and would like to know how to label the points in the manner shown in the diagram below I have constructed my polygon as follows: \documentclass{article} ...
1
vote
1answer
40 views

Gnuplot-Tikz-TeXstudio setting problem

I am a beginner in making graphs of functions by TeX itself - until now i have solved these issues by including .eps pictures. Now i am on doing things better and nicer. I started to use Tikz packages ...
2
votes
0answers
35 views

Table of Contents style fit to part style

I am using titlesec and TikZ to customize my \part style. I would appreciate to use the \part style for the \tableofcontents title. Is there any way to do it ?
2
votes
1answer
78 views

Simple Probability Tree

How do I make the following probability trees in LaTeX? Thanks for the help!! Probability Tree 1: Probability Tree 2: \forestset{my label/.style={if n=1{edge label={node [midway, above left, ...
1
vote
1answer
30 views

Tikz : node in margin right to other node interacts with tcbtheorem

I am currently trying to use Gonzalo Medina's answer to create a framed environment for a margin note Consider the following simplified code : \documentclass[oneside]{book} ...
4
votes
1answer
41 views

How to increase space between the bottom border of a boxed figure and its caption?

I am trying to generate a space (6pt) between the boxed figure and its caption. Since I am using tikz code \includegraphics did not work. Also I tried \setlength{\abovecaptionskip}{6pt}, ...
7
votes
2answers
182 views

How to draw this image using tikz?

Beyond the solution to this particular diagram, can you explain if there is a general set of steps that you would follow to obtain this code? My guesses: Would conversion to vector graphics give ...
1
vote
1answer
38 views

why does tikz connect my nodes?

I use \usepackage{pdflscape} \usepackage{tikz} \usetikzlibrary{automata} and my code looks like this \begin{figure} \centering \begin{tikzpicture} \node[draw,align=center,text ...
1
vote
1answer
36 views

How to correct tikz '\draw' location by hand?

I want to make a brace to the right of two nodes but I don't want it to be attached to but I want some extra space. For the starting location my solution seems to work well but for some reason the ...
2
votes
2answers
60 views

Typesetting a node in bold font

How do I typeset ${\mathrm{HR}}(\ray{r}, \, P)$ in a node in bold font? I apologize for the cumbersome code. The command for the pertinent node is in the last line. \documentclass{amsart} ...
6
votes
1answer
66 views

Tikz spy - empty zoom with pdflatex

I have issues getting the spy library to work on my current installation. I am running TeXmaker with MikTeX 2.9 (with all packages updated) on Win8.1x64. I read about the issues others are having ...
1
vote
0answers
33 views

Pgfplot: Zoom in to predefined plot

I have one figure with two plots where one is zooming into the other. I am trying to have pgfplot show the following arrow with the highlighted area where the second image is zooming in : The ...
1
vote
2answers
92 views

Draw a circular node with a sine cirve in it to resemble the symbol a short sine wave

How can I do this in TikZ: I want to draw a circular node with a sine curve in it to resemble the symbol of a short sine wave like in the diagram shown in the link below. I can draw a circle but I ...
3
votes
0answers
35 views

getting confused with pgf

\begin{tikzpicture} \begin{axis}[ axis lines=middle, samples=100, ymax=5,legend pos=north east, legend style={draw=none} ] \addplot[forget plot,cyan,domain=0.001:8] {abs(log10(x))}; ...
4
votes
1answer
116 views

How do I make solid headers?

I am trying to replicate the formatting of a certain standardized test. It looks a little bit like this: I'm going to try memoir and tikz a little bit today, but I was wondering if there is an easy ...
1
vote
1answer
68 views

Linear regression on modified datas

I would like to create a linear regression on modified data. My raw data is on a file called data.dat like that : x,y 1,2 2,3 3,4 4,5 5,8 6,9 7,34 If I do something like the code below, I get the ...
1
vote
1answer
34 views

clear me the doubt in positioning legend option

\begin{tikzpicture} \begin{axis}[ axis lines=middle, samples=100, ymax=5,legend pos=north east ] \addplot[cyan,domain=0.001:8] {abs(log10(x))}; \addplot[red!70!black,domain=-2:4] ...
1
vote
1answer
54 views

Normal distribution with discrete histogram inscribed

How can I produce the following image with tikz? I have seen the codes for plotting the normal curve, but how to get the rectangular shapes inscribed right at their centers? The red is not so ...
4
votes
1answer
56 views

PGFPlots polaraxis axis labels are swapped (or in the wrong place)

I have some problems with axis labels when using the polar axis, if I set the X and Y label they appear in the wrong place. When using the polar axis; x coordinate is the angle (azimuth, phi) y ...
3
votes
2answers
34 views

Code Error From Geogebra for Tikz

I try many changes in this code, but I don't see the error. Can someone help me? \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} ...
1
vote
2answers
43 views

An error using “Positioning” package to place the titles of a hexagon and a pentagon

In the following tikzpicture environment, I have a hexagon and a pentagon aligned along their horizontal axes of symmetry. (In the hexagon, the vertex A is furthest to the right, the vertex B is the ...
1
vote
1answer
79 views

Typesetting a title on a tikzpicture (Version 2)

I have two very similar-looking polygons in different TikZ environments. Each polygon is symmetric across a horizontal line. I want to put them in one TikZ environment with the axes of symmetry ...
3
votes
2answers
332 views

Help me in drawing log(x) curve

\documentclass[addpoints]{exam} \usepackage{tikz} \usepgflibrary{arrows} \begin{document} \begin{questions}\usepgflibrary{arrows} \question Draw the graph of $f(x)=|\log x|$. Solution: ...
1
vote
1answer
32 views

I get problems when I use the same tikzmark label in every slide

Inorder for my tikzmark to be displayed properly, I need not to use different names for each tikzmark. It troublesome to keep track of the names, is there a work around this problem. In the below ...
0
votes
0answers
30 views

Error when compiling using tikzmath

I am trying to learn how to use Tikz and its library Tikzmath to make graphics. I am trying to practice by drawing a series of circles along a line. My code is as follows: ...
2
votes
2answers
55 views

tkz-kiviat : increase label length and get the right legend

I want to draw a spider/kiviat diagram. I am using the tkz-kiviat library but I have some problems. Here is my MWE \documentclass[xcolor={dvipsnames}]{beamer} \usetheme{Warsaw} ...
0
votes
0answers
25 views

Drawing solids made up of identical unit cubes [duplicate]

I need to draw some solid figures that are made up of unit cubes so that some pair can be fitted together to make cuboid or cubes.
4
votes
2answers
47 views

Translating a node style from tikz to tikz-cd

I'd like to switch from tikz to tikz-cd to draw diagrams of arrows (I just started practicing, so I don't know much), and I can't figure out how to translate the following node style: ...
9
votes
1answer
118 views

Parameters in a caption

I have a simple figure with a code like this: \begin {figure}[htbp] \centering % \begin{tikzpicture} [scale=1] \def \r {1/4} % y-scaling % % PARAMET. \def \a {1} %x^6 \def \b {-6} ...
5
votes
1answer
153 views

How to draw a series of simple circle packing illustrations, possibly with Tikz?

For an industrial problem, I would like to be able to draw a series of layouts of the cross section of multistrand electrical wires. These can be simplified by packing in a circular envelope a given ...
0
votes
1answer
46 views

Drawing and labeling the axes for the Cartesian plane

Nothing exciting here. I only have code to display the coordinate axes. I have a file in which displays of various functions are plotted on the Cartesian plane and displays of a pair of intersecting ...
3
votes
1answer
68 views

Custom Beamer theme does not arrange stuff as I expect

I am creating my own Beamer theme (let me call it mytheme in this thread) and currently working on title page. First I put the code shown below in beamerinnerthememytheme.sty, which is loaded by ...
2
votes
1answer
25 views

Overshooting axis arrows strange behaviour with tikzexternalize

I would like to use the following code to create a plot with a horizontal gridline and axis arrows which overshoots this gridline (like here). However due to the line \tikzexternalize[shell ...
2
votes
2answers
68 views

Telling to TikZ continue the previously-drawn path with a line-to operation?

This question seems quite simple, so I feel a bit sheepish about asking it, but I've spent quite a while scouring both this site and the manual without any success, so here goes... I found that ...
3
votes
1answer
66 views

Drawing and labeling angles in an axis environment

I am curious about the misinterpretation of TikZ commands to draw and label an angle in an axis environment. If, in the following code, I have $\theta$ drawn using the commands, \draw[draw=blue] (A) ...
3
votes
1answer
63 views

tikpicture moves location with every compilation

I am using TikZ to draw arrows or position figures. My code has three slides. TikZ worked fine with the first two, but with the last, the image moves with every compilation. I suspect the reason is in ...
1
vote
0answers
36 views

Package pgfkeys Error: I do not know the key '/tikz/patch/.pic' and I am goin g to ignore it

I get the following error while compiling: ! Package pgfkeys Error: I do not know the key '/tikz/patch/.pic' and I am going to ignore it. Perhaps you misspelled it. I'm using tex live with update ...
4
votes
5answers
212 views

Drawing and Labeling a Triangle for a Demonstration of the Double-Angle Formula of Cosines

I have a display of two triangles, but the triangle drawn in red is unintentional. TikZ is misinterpreting the coordinates for point C. The polar coordinates for C is given as \coordinate (C) at ...
3
votes
1answer
36 views

StrChar causes error when used inside tikzpicture

The following TikZ code attempts to make a graph by drawing vertices 1 through 6, then drawing edges from the list. The edges are formatted as 12, 23, etc., so the command StrChar from package xstring ...
3
votes
1answer
56 views

Below=of is not understood for tikz positioning

I am trying to use TikZ, but relative positioning of the nodes is not being understood. I am using the MacTex installation that I downloaded today. This code is copied from the TikZ manual, but ...
2
votes
3answers
101 views

To draw a hierarchy tree diagram

i am new to latex. how can i make a hierarchy tree diagram as shown below?
7
votes
0answers
57 views

TikZ: suspend drawing for part of a path

This is something very basic that I've often been slightly annoyed with when using Tikz, mostly since I think I've seen that it is possible somewhere before and I'm annoyed with myself for not ...
1
vote
1answer
37 views

Adding an equation to a graphical model created with tikz

I am using tikz. I have a graphical model and I want to add equations as explanations to the side. Just like in Thanks for your help! \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
45 views

How to place a section heading inside tikz figure using titlesec and the runin option

I am currently workin on a big tikz figure and I want to place a section heading inside a box, which leads to a problem. A minimal example is here: \documentclass{article} \usepackage[T1]{fontenc} ...
2
votes
1answer
31 views

Weird whitespace occurs using \drawbeam in pst-optexp

In my drawing using pst-optexp, I found weird whitespace occured when using \drawbeam, \pstVerb and tx@addDict together. Here are the minimum reproduction codes for my claim: ...