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
2answers
158 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
324 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
191 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
134 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 ...
6
votes
1answer
2k 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 = 0....
3
votes
2answers
319 views

draw direction cosines using tikz

How I can easily draw the direction cosines using TikZ?
4
votes
1answer
220 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} \begin{...
7
votes
1answer
339 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
185 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
574 views

How to draw a star like shape with Tikz

How do you draw a star like shape using Tikz, like the shape below
6
votes
1answer
894 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
668 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} \tikzstyle{...
8
votes
1answer
2k 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
308 views

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

Something like the picture below:
4
votes
2answers
202 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
555 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 ...
6
votes
4answers
7k 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
199 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
448 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
2k 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: \...
12
votes
2answers
715 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." ...
4
votes
1answer
491 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.
10
votes
2answers
238 views

How to iterate/continue a pattern in TikZ?

I need to do a diagram in TikZ and, although the result I have look like I expected, I was wondering if there is a better/more general solution to my problem. Basically I want to draw a node with n-...
3
votes
2answers
823 views

How to highlight a path in Tikz with two different colours?

I have a small graph drawn in Tikz with two paths through it highlighted in different colours. However, these paths are going to share an arrow. What I would like is to highlight this arrow with both ...
2
votes
1answer
163 views

Calculate label angle from a value list

As a beginner of tex and tikz i stuck on array handling together with foreach. I would like to draw two circle with text along its circumference. \documentclass[tikz]{standalone} \usepackage[utf8]{...
12
votes
2answers
506 views

Drawing angle addition in latex

I'm trying to draw the picture below but have been unsuccessful (I drew part a, can't do part b) This is what I used to draw part a \begin{center} \begin{tikzpicture}[font=\boldmath]\large \...
6
votes
3answers
2k views

draw realistic clouds with tikz

I've drawn the following image: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes} \tikzset{sunbody/.style={line width=1pt,draw=orange,fill=yellow,circle,minimum size=5cm}} \begin{...
4
votes
1answer
456 views

How to get big quotation marks again

I am trying to use this answer to get large quotation marks, \PassOptionsToPackage{svgnames}{xcolor} \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{libertine} ...
5
votes
2answers
307 views

Drawing function in tikz

I need to make a graphs as you can see in the picture, but I try many ways and I cannot get what I want. Any of you could help me?
15
votes
0answers
249 views

Did one manage to get the new dvisvgm driver from PGF 3.0 to work?

Background: PGF 3.0 added a new, direct way to create SVG. It now has a dvisvgm driver (pgfsys-dvisvgm.def) which has fewer (claimed) limitations than the pgfsys-tex4ht.def driver. Except it doesn't ...
0
votes
0answers
143 views

Encoding issue when writing Greek in fancy ToC using TikZ

I am creating a fancy ToC using TikZ. My code is \documentclass{book} \usepackage{kerkis} \usepackage{pifont} \usepackage[explicit]{titlesec} \usepackage{tikz} \usepackage{epigraph} \usepgflibrary{...
7
votes
2answers
437 views

How can I make a slide rule in TikZ?

I have recently found out about slide rules from a Scientific American article and I like them very much. However, I have never got access to a real slide rule. So I made my own slide rule using my ...
1
vote
5answers
527 views

How to plot following graph

I want to draw the attached graph in LATEX. But i could not. Please help me.
5
votes
1answer
681 views

Help understanding the coordinate system used in tikz

I'm trying to understand how the coordinate system work for drawing pictures with tikz. I'm a little lost... Here is a MWE that shows of some example code: \documentstyle{article} \begin{document} ...
5
votes
1answer
102 views

Texample “map projections” not working [duplicate]

I can compile the "Example: Stereographic and cylindrical map projections" but it doesn't look like the one given there. (Neither the dashed meridians, nor the cylinder) The file: http://www....
21
votes
2answers
525 views

How to decorate a \pic path?

Consider the following example using the angles library and a pic path to mark an angle: \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{angles,decorations.markings} \begin{document} \...
13
votes
2answers
477 views

How to draw revolved disk shape using TikZ?

Is there an elegant way to rotate this shape about the axis and draw in 3D? Ideally I would like to be able to draw a revolved view of this as 180 deg, 270 deg and the full revolution at 360 deg. \...
2
votes
0answers
108 views

Externalised pgfplots figure.eps gets rotated 180 degrees

I am externalizing some plots by pgfplots in .eps format by using these two sizes case1: width=0.55\textwidth height=0.40\textwidth case2: width=0.6\textwidth height=0.45\textwidth which give a ...
10
votes
3answers
2k views

Tikz: how to plot arcsec and arccos?

It is easy to plot arctan and arccot, but got inverse sec and csc functions, It seems difficult. Can anyone do it?
2
votes
1answer
617 views

Labeling sides and angles of a right triangle for an argument of the Pythagorean Theorem

I would like to draw a right triangle so that its sides are not vertical or horizontal. (No coordinate axes.) I would like the legs to be labeled a and b and the hypotenuse to be labeled c. I would ...
5
votes
3answers
489 views

Marking a grid with x and other symbols in tikz

I am new to using tikz. I have the following grid: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{patterns} \usetikzlibrary{shapes} \usetikzlibrary{plotmarks}...
2
votes
1answer
448 views

Making a probability tree using tikzpicture / forest

I want to create a probability tree using either tikzpicture or forest. I have experimented a little bit with both, but I'm running into some trouble with both of the programs. First, I have my code ...
19
votes
4answers
938 views

Foreach loop between two lists

\documentclass{article} \usepackage{tikz} \def\firstlist{0,1,2} \def\secondlist{0,1,2} \newcommand{\testa}{ \foreach \x/\y in {\firstlist/\secondlist} { \draw(0,\x)--(1,\y); } } \...
5
votes
1answer
195 views

Is there an easy way to generate weighted vertices in graphs?

There are several ways to include edge weights in graphs, but what about node/vertex weights? I need each vertex to be labelled with a letter and weighted with a number; I cannot find code that does ...
5
votes
1answer
249 views

Looking for a special paper style for letters

I am looking for a special paper style. It should be a paper with a good looking background, so that I can write letters on it. Ideally, it should be something like the attached image. Some key ...
11
votes
1answer
450 views

Is it possible to cut a tikzpicture in half if the picture is too long and display it on two pages?

I'm using tikz (tikzpicture to be precise) to make some "drawings" (trees). The problem is that my "drawing" is too long to fit on one single page (it's too long). I was wondering what was the best ...
5
votes
1answer
513 views

How label position and color can be modified in tikzpicture in posters?

I am working on a poster with fancytikzposter package, I cutted out the problematic part, it can be downloaded from here. I created a tikzpicture inside the poster and some problems occured: ...
1
vote
3answers
293 views

Fill and draw option

Is there a single option to set both the draw and the fill color of a TikZ node? Something like: \node[rectangle,drawandfill=red]{test}; The actual problem is the following: I have many adiacent ...
4
votes
2answers
573 views

Curved cylinders in Tikz

I would like to draw this figure here using tikz. However I do not know how to draw curved cylinders in Tikz. Can someone give a hint with it? Thanks
9
votes
3answers
845 views

How to tell TikZ to first compute and then display a variable?

I want TikZ to first compute and then display the value of a variable. The question is, for sake of simplicity, based on this concrete example from TeXample.net: \documentclass{article} \usepackage{...