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
0answers
25 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} ...
8
votes
2answers
194 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 ...
4
votes
0answers
87 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}} ...
4
votes
1answer
37 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} ...
3
votes
2answers
160 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?
7
votes
0answers
67 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
29 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} ...
6
votes
1answer
153 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
votes
0answers
55 views

A custom flow diagram

Do you know how can I draw this diagram in latex ? Do you have any suggestion with Tikz package ? I want to draw a part of it. Thank you so much.
0
votes
4answers
145 views

How to plot following graph

I want to draw the attached graph in LATEX. But i could not. Please help me.
4
votes
1answer
53 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
46 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: ...
17
votes
1answer
122 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} ...
5
votes
0answers
59 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
30 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 ...
9
votes
3answers
236 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
91 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
120 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} ...
1
vote
2answers
56 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 ...
13
votes
4answers
542 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); } } ...
3
votes
0answers
53 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
107 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 ...
9
votes
1answer
190 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
49 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
109 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 ...
3
votes
2answers
218 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
244 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} ...
2
votes
1answer
54 views

Drawing Graph of Markov Chain with “Patches” using Tikz

First time using Tikz. Haven't found any documentation on drawing graphs like these, so I have been reading other examples and trying to modify their code to fit my example. I am trying to reproduce ...
2
votes
0answers
59 views

How do I get a straight line in \begin{tikzpicture}[decoration=Koch snowflake]?

The following code \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.fractals} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[scale=3,decoration=Koch snowflake] ...
5
votes
1answer
70 views

How to fix this problem with tikz knots and decorations?

Using the knots package, which is part of Andrew Stacey's spath3, one can draw beautiful paths that cross each other. However, there are problems when combining it with decorations: ...
7
votes
2answers
226 views

Trees with only leaves in TikZ

Following Roel's answer to How to write a tree with no (visible) root with TikZ? I attempted to visualise my Huffman-Code for "Tennessee", but it didn't turn out as I expected: My MWE: ...
1
vote
1answer
62 views

Drawing a brush stroke like outline

I'm trying to reproduce the following picture with TikZ: Which is basically a circle with a variable width outline (the red line in the pic) that looks like a brush stroke. Can someone kindly give ...
21
votes
4answers
660 views

Crop jpeg into circular tikz node

\documentclass[demo]{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[circle,draw,inner sep=2cm]{\includegraphics{myimage.jpg}}; \end{tikzpicture} ...
3
votes
0answers
61 views

Node at tip/pinch of brace in Tikz

I'm trying to add some explanatory braces in my graphic, and find myself running into some minor difficulties/inconveniences. [Edit]: After being made aware that the main thrust of the question ...
2
votes
0answers
46 views

beamer: make a picture stay in the foreground

I am trying to write some style file for a poster framework, we can use. The header is almost ready: \setbeamertemplate{headline} { \begin{beamercolorbox}[ht=15cm]{headline} ...
2
votes
1answer
98 views

Draw graphical model with many nodes

So I tried to follow the answer in http://stats.stackexchange.com/questions/16750/software-for-drawing-bayesian-networks-graphical-models with limited success. My problem is How do I incorporate ...
8
votes
1answer
185 views

Pascal's triangle in Tikz with symbols

I have a follow-up question to Pascal's triangle in tikz with row headers. Is it possible to produce Mark's solution with symbols in Pascal's triangle? So, I could create the same figure, but ...
2
votes
0answers
85 views

Solid of revolution about arbitrary axis

I'd like to rotate the region between y=cos(x) and y=x^2 - 0.25*pi^2 about the line x=pi. How to do this? So far I have only managed to rotate around the x-axis: \documentclass[letterpaper]{article} ...
1
vote
2answers
129 views

sketching semicirles and horizontal lines

I want to sketch this parallel lines and semicircles between them sth like the attached figure... would you plz help me?
6
votes
1answer
71 views

Arrow from brace to node

I would like to draw an arrow from the tip of a curly bracket to a node, but if I do the following, an extra arrow point is drawn just above the tip of the brace. \documentclass{article} ...
8
votes
2answers
179 views

Tikz, decorations

I use tikz as a general purpose drawing package because of its flexibility etc... I need to draw some Feynman diagrams like these: I tried to draw arc like \begin{tikzpicture} \draw [decorate, ...
6
votes
1answer
74 views

plot legend : increase its area

So my question in general is what is the method to change the precise area of the rectangle used in pgf plots? Yes, to make it larger ... MWE: a typical bar chart ...
4
votes
3answers
125 views

sketching simple arrows with different direction

I want to sketch this figure.. if you guide me to draw one of this arrows with direction i would be grateful..
3
votes
3answers
132 views

Plotting functions and denoting equation on the figure

How can I plot the functions P=20-1/5*Q and P=5+1/9*Q so as to find the equilibrium point? The figure I need is like the following: Furthermore, how could I put the equation on each ...
8
votes
2answers
353 views

Picture indicating the fifth roots of unity

I would like to have the unit circle, centered at the origin, on the Cartesian plane drawn. The origin is to be marked with a dot and labeled "O" and five dots are to be drawn on the circle, one on ...
9
votes
1answer
78 views

TikZ in Beamer: subscope does not inherit `visible on` from parent scope

In the MWE below, I define a macro \markxy that draws dashed lines from a point to the x and y axes to indicate the x/y coordinates. Since I don't want the dashed lines to be drawn over my other "more ...
11
votes
2answers
226 views

Derivative of a tikz path?

I would like to draw curves that are smooth and have linear segments. These curves are to be used in the graph of one-dimensional functions, x(t). [To be used as position vs time graphs in writing ...
3
votes
0answers
41 views

TikZ: Unexpected difference between \draw and — vs \path and edge

While modifying this answer for my own use, I encountered something unexpected. In my experience, using \draw (1) -- (2) is equivalent to \path (1) edge (2). However, adding the option to draw or ...
4
votes
1answer
89 views

What is the easiest way to accomplish textual tick labels in tikz?

Consider the following simple PV-diagram: The code below created it and the output is fine. I used kind of a workaround with an array to get the right tick labels on both of the axes. That works ...
11
votes
3answers
205 views

How to improve on this “twolines” decoration?

I'm typesetting an article on graphical calculus in tensor categories in TikZ and I wanted to define a decoration that draws two parallel lines at the same time. Here is my first try: ...