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
2answers
52 views

How add a node on top of a rectangle path?

How can I add a node on top of a rectangle path ? \path[draw] (upperleft) rectangle (lowerright) node[???] {Top}; I am aware of the midway parameter that I can use, but this locates my Top label on ...
5
votes
2answers
83 views

How to use \x from \foreach loop in the parameters of \draw in tikz

In order to make it simple, I want to draw concentric circles fading out with something like \foreach \x in {1,1.5,...,4} \draw[color=black!{100-10*\x}!white] (0,0) circle (\x); The problem is I ...
2
votes
1answer
45 views

How can I draw nested shape, one on top another

For example, I want to draw a green rectangle with some black circles along the central horizontal axis of it. My main problem is how to let the circles appear on top of the rectangle.
8
votes
4answers
177 views

Tikz: Equal sized nodes with different text

I am new here to Tikz and I need to draw 2 rows of nodes that are identical in size but having different text of different length in it. Sure the upper and lower nodes should have enough room for the ...
3
votes
2answers
97 views

Import 3D object in LaTeX

Is there any way to import a 3D file of an object (.stl for example) to draw a 2D projection of it into a TeX document ? I have been surprised to don't find any subject about that, I was thinking a ...
6
votes
4answers
108 views

Plotting crosses on a graph in tikz

I was wondering how you would plot crosses at certain points on a graph using TikZ. I have managed to plot circles using the code \documentclass[tikz]{standalone} \begin{document} ...
4
votes
1answer
37 views

maxsecnumdepth causes tikz titlebar to disappear

I am usingtikz package to produce a grey section-header bar (rounded at one end), thus: \documentclass[a5paper]{memoir} \setsecnumdepth{chapter} % set numbering level ...
2
votes
1answer
21 views

Malfunction when loading preamble code using \include{}

I am trying to load a piece of code using \include{file}. This code uses tikz to create fancy chapters. The weird thing is that when I load my code, the \chaptername gets cut(after running the code ...
6
votes
2answers
73 views

short curly braces with tikz

Is there a way to get curly braces with tikz which look more like this one? At the moment I'm using the following to get curly braces: \documentclass{article} \usepackage{tikz} \begin{document} ...
0
votes
0answers
35 views

Help to draw an arbitrary surface with in TikZ [duplicate]

I need help to draw an arbitrary surface in TikZ, in order to represent a manifold. I am trying to make something with shade. I manage to get a rectangular surfcace with corners, shaded color, etc but ...
1
vote
2answers
85 views

Fill between two plots

I have drawn two lines such as, \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [->] (-5,0) -- (5,0) node [above left] {$x$} ; \draw [->] (0,-5) -- ...
3
votes
2answers
131 views

Customed Pie Chart

I want to draw the following pie chart. I just wonder if anyone could show me where to start. (Just the pie chart and those description circles around them)
1
vote
1answer
47 views

Angled self referencing arrows in sequence diagram

I am adapting an example of a sequence diagram I took form texample.net. http://www.texample.net/tikz/examples/sequence-diagram/ Unfortunately I am having some difficulties. How would I draw a self ...
18
votes
3answers
609 views

Polaroid photo effect in tikz

Is there any way to make a polaroid photo effect in TikZ? I am thinking of something like this A computer font as the caption might be better in fact but I couldn't find a suitable example online. ...
3
votes
2answers
75 views

Scaling nodes in automata in TikZ, inside equation.

I fail to scale the nodes (which is what I initially wanted) of the following \documentclass{standalone} \usepackage{tikz} ...
1
vote
0answers
62 views

TikZ decorated paths and fixedpointarithmetic library

Background: I am trying to apply multiple decorations to a path in a TikZ picture. In this particular case, my attempts fail as the maximum dimension PGF can calculate with is exceeded. This is not ...
6
votes
2answers
173 views

Graphing trigonometric functions, axes labeled with tick marks

I am providing the code for graphing three trigonometric functions. (In the preamble, I had to put a % before the command \usetikzlibrary{calc,angles,quotes} because LaTeX could not compile it with ...
4
votes
1answer
76 views

Add gradient to colorbox

Newby here. I found a great template for technical reports here . . http://www.latextemplates.com/template/stylish-article I would like to change the background color of the abstract and section ...
4
votes
5answers
233 views

Get partly filled circle symbol scale linearly with parameter

I want to create a \rating command that draws a partly filled circle, according to a numeric parameter between 0 and 100: Question: How can I modify the expression for determining the angles in ...
4
votes
4answers
114 views

Draw (dashed) pathes with multiple branches in Tikz?

How should I draw pathes with multiple branches in Tikz? The draw command only provides 1-dimensional pathes. Is there a way to naturally merge them? My thoughts: Usually I would simply combine ...
1
vote
1answer
42 views

Gap between feedback edge of block diagram

How can I avoid the gaps at the branches of the feedback edges (arrows) in this block diagram? \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \usepackage{tikz} ...
4
votes
3answers
134 views

How can already binned data be plotted as a histogram?

I have the following data: [0, 1000) : 14524 [1000, 2000) : 38214 [2000, 3000) : 36169 [3000, 4000) : 25875 [4000, 5000) : 16942 [5000, 6000) : 10603 [6000, 7000) : 6778 [7000, 8000) : 4288 [8000, ...
5
votes
1answer
47 views

Congruence relation instead of arrow

\[ \begin{tikzpicture} \matrix(m)[ matrix of math nodes, column sep=1cm ]{0 & E[m]/mE(K) & H^1(G_{\bar{K}/K},E[m])) & H^1(G_{\bar{K}/K},E)[m] & 0.\\ & & ...
6
votes
1answer
142 views

Am I able to intersect curves after rotating?

I would like to intersect arc and sloped line as it's discribed in the code after having rotated the sloped line. Why doesn't the red point belong to sloped line? I hope my question is quite clear for ...
6
votes
1answer
71 views

Prepackaged tikz routine

I would like to have a single definition of my company logo. Right now, I have it defined to just fit on a letter sized paper. It is completely defined in TikZ filled paths. As you would expect, it ...
6
votes
2answers
131 views

Hatching in a circle and outside a circle

I am trying to graph two circles on the same page so that the x-axes of both graphs are aligned and the y-axes of both graphs are the same height. (Maybe the appearance of these would not look nice ...
14
votes
3answers
352 views

tikz, drawing a rectangle with spikes on borders

I would like to draw a scrabble board. On my long journey to do that, I would like to set nodes which I could use around the board. The grid, that I can do. Now I'am looking at coding for "triple word ...
7
votes
3answers
181 views

How to draw squares on the sides of a quadrilateral and triangle in tikz?

How to draw squares on the sides of a quadrilateral and triangle in tikz? I want to replicate the 2 images below:
2
votes
2answers
105 views

TikZ inserting text

I would like to draw the picture attached using TikZ. Red lines are not needed. I only need to draw the squared root of s. I use the code below, however, don't know how to insert the "s" in it. In ...
6
votes
1answer
213 views

How to draw a punchcard in Latex [duplicate]

I would like to draw a punchcard in Latex as shown below. But i just can't find any information how to do this (not even in the manual of tikz). The only thing i can find is information about bubble ...
3
votes
0answers
58 views

How does one draw a cylindrical shell in tikz

I am trying to illustrate the disk and shell methods for computing the volume of solids of revolution. I was able to use the following code to create a typical approximating disk when the revolution ...
3
votes
2answers
50 views

How to typeset a “flatplan” / “page plan” from external images

I have a multipage PDF file (which I can export as a set of images) and need to typeset it as flatplan. It should look something like this: I can create such plans by hand but I'm looking for nice ...
5
votes
1answer
59 views

Specific arrow tip style for specific path

\documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{decorations.markings} \begin{document} \begin{tikzpicture}[scale=1.5,cap ,color= blue] % grid \draw[very thin,color = green,step = ...
3
votes
2answers
116 views

draw direction cosines using tikz

How I can easily draw the direction cosines using TikZ?
4
votes
1answer
83 views

Draw A Double Arrow

My Latex code is below: \documentclass{article} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,matrix} \begin{document} ...
6
votes
1answer
81 views

Tikz's drop shadow key creates solid shape for curved path instead of a shadow - How to create a shadow?

I'm in the process of making a glyph. I want the final shape to have a shadow. Creating a shadow for the arrow tip works as intended. Making a shadow under the curved path at the bottom, does not. A ...
4
votes
1answer
89 views

Displaying six graphs in two columns

I would like to display six graphs in two columns on a page. They are the graphs of various sets. I would like the first column to be flush with the left margin. Since these graphs are solutions to a ...
8
votes
2answers
272 views

How to draw a star like shape with Tikz

How do you draw a star like shape using Tikz, like the shape below
5
votes
1answer
123 views

defining Style of flowchart tikz

I have been trying to define styles to make a good block flowchart in TikZ package, but I'm not very good at it, could you make one with a combination of blue, cyan and green? I need to describe the ...
2
votes
1answer
63 views

position a label closer to a particular box in a flow chart in tikz

I need to position the label No closer to the box check if flag set. What option should I use. \documentclass{sig-alternate} \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows} ...
5
votes
1answer
64 views

PGFplots - label each group plots

In this group plot how do I add labels to individual graphs. I want to label each graph as (a), (b), (c)... \documentclass[margin=5mm]{standalone} \usepackage{pgfplots} ...
5
votes
2answers
125 views

How to draw 2 similar triangles sharing a vertex using tikz?

Something like the picture below:
4
votes
2answers
104 views

Black Fill in my plot

I'm using the following code and when it compiles the result is not what i expect. \begin{figure}[h] \begin{tikzpicture} \begin{axis}[xbar,enlargelimits=0.15] \addplot [draw=blue,pattern=horizontal ...
8
votes
1answer
88 views

How to plot the absolute value of a hobby curve

I have a hobby curve that has regions above and below the horizontal axis. I would like to illustrate the difference between net and total area by being able to reflect the portion below the ...
4
votes
3answers
212 views

Plot the square root function using Tikz

I want to draw the graph the function $y=\sqrt{x}$ (and label it above the graph of the function) in an $x-y$ plane. Then I need to put a filled dot on the point $(4,0)$ (I want to label $(4,0)$ ...
2
votes
2answers
60 views

Need to help to shade and label squares cut from the corners of the rectangle

I have just started learning using how to plot graphs using the TikZ package. I am still in my first steps. I appreciate if anybody can help me with the following: I wrote the following code (see ...
3
votes
1answer
87 views

Iterate through folder foreach picture, possible?

Is it possible to iterate through a folder containing pictures while first filtering file extension tikz,png,pdf or eps, and then getting a list of filenames of the directory for use in a for loop, ...
13
votes
4answers
411 views

How to construct a closed, filled, path made of semi-circles and attach annotations to it with TikZ?

I have very limited LaTeX knowledge. I am trying to plot the following figure using "tikz" and I appreciate if anyone can help me to finish plotting my figure. I did the following so far: ...
10
votes
2answers
102 views

How to give a name to \pic

I read instruction how to use \pic in PGF 3.0.0 manual, but description how to give names to \pic are not clear to me and given example generate error: "No shape named EmmaEmma-left is known." ...
2
votes
1answer
77 views

Producing Delaunay Triangulations

Does anyone know how I can produce 2D Delaunay Triangulations in tikz by giving as inputs a list of randomly generated points? Or at least a program that takes that list and produces tikz output.