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)

0
votes
0answers
10 views

Coordinate transformations: PGFPLOTS to and from PGF

How can I scale a calculated length to the appropriate axis scale? In this example I would expect 2. See below. \documentclass[tikz]{standalone} \usepackage{pgfplots} \usetikzlibrary{calc} ...
0
votes
1answer
29 views

Availability of new braids package [on hold]

I have been using both braid and knot packages. I have seen that a new braid package is available here but not in CTAN. Are there any projects to submit the new one to CTAN? One can always download it ...
2
votes
1answer
18 views

Pgfplot/tikzpicture: modify ticks and labels

I would like to modify my tikzpicture: 1.) I added an extra tick at x=92, but this overlaps with the automatic tick x=100. How to solve this overlapping? Same problem for the second extra tick at ...
3
votes
1answer
77 views

How can I rotate a function?

I am trying to draw the following picture, however I am wondering how can I rotate the gaussian function, like in the first plot? \documentclass[10pt, compress, usetitleprogressbar]{beamer} %Tikz ...
7
votes
3answers
146 views

Drawing a triangle with a certain angle at a vertex

I want to draw triangle ABC so that the measure of the angle at B is 75 degrees. I use \coordinate (A) at (0,0); to put vertex A at the origin, and I use \coordinate (B) at (60:6); to position vertex ...
2
votes
2answers
21 views

Changing number precision on y-axes

When I try to plot this: \begin{tikzpicture} \begin{axis}[% scale=1.5, max space between ticks=25, ticklabel style={font=\scriptsize}, axis lines = middle, xmin=-8000, xmax=9000, ...
3
votes
1answer
29 views

Why the uncover operation doesn't work for the background in beamer?

I use the code below. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{backgrounds,positioning,fit} \begin{document} \begin{frame} \begin{figure} \begin{tikzpicture}[scale=0.5] ...
7
votes
1answer
62 views

cumulative plot in tikz

I'm trying to plot a cumulative binomial distribution function using tikz. I have created a plot of a binomial distribution function, as shown in the code and figure below, but I need the y value to ...
1
vote
1answer
34 views

TikZ picture with text right of it

I have a picture created in TikZ and I have some explanation that I want to place to the left of it, preferably that the explanation takes about the same space as my figure (vertical). How do I do it? ...
1
vote
1answer
38 views

Aligning paths in tikz

i have made the following transition diagram There are a few thinks i would like to do, on node 1,2,3 i would like the inner arrows to have no overlab, i looks silly, also if node 1 and 5 could be ...
2
votes
1answer
33 views

How to control the height and width of background when using TikZ?

\documentclass{beamer} \usepackage{tikz} \usetikzlibrary{backgrounds,positioning,fit} \begin{document} \begin{frame} \begin{figure} \begin{tikzpicture}[scale=0.5] ...
2
votes
0answers
25 views

Positioning of named nodes and paths within groupplot environments

I am having issues with pgf, pgfplots and the groupplots library. The issue is best explained with an example \documentclass[tikz]{standalone} \usepackage{pgfplots} %\pgfplotsset{compat=1.12} ...
1
vote
1answer
16 views

Vertically misaligned text in a split rectangle

The following tikz-code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.multipart} \begin{document} \begin{tikzpicture} [my shape/.style={ rectangle split, rectangle split parts=#1, ...
1
vote
1answer
32 views

How can I make legends colourful? And how can I put value in bars?

\documentclass[border=5mm] {standalone} \usepackage{pgfplots, pgfplotstable} \usepackage{xcolor, color} \begin{document} \begin{tikzpicture} \definecolor{SpecialYellow}{HTML}{F9DC21} ...
3
votes
1answer
46 views

Draw vertex in middle of icosahedron

I am trying to mimic a ball-and-stick diagram where a molecule is caged in an icosahedron of other molecules. Using tkz-berg I can draw the icosahedron, using code from this SO question. How do I put ...
3
votes
1answer
40 views

Multiple uses of pgfpositionnodelater

I'm trying to generate and measure multiple nodes before placing them. Currently I'm using the following macros: % some helper / wrapper commands around \pgfplacenodelater % #1 = identifier for ...
4
votes
0answers
22 views

Tikz picture bounding box when using to[in=xxx, out=yyy] [duplicate]

I have this two simple images: \documentclass{report} \usepackage{tikz} \begin{document} \fbox{\tikz{% \fill[red!20] (0,0) to[in=210,out=30] (10,0) -- (10,1) -- (0,1) -- cycle; ...
8
votes
1answer
64 views

Extrude shapes in tikz 3d

I want to have a shape protruding out of a plane, like the green rectangles here So far I have a made a box like this: \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{3d} ...
8
votes
2answers
121 views

Filling area under a function

How to fill the area under a function using the package tikz? Only tikz. Is it possible? This is what I have: \begin{tikzpicture} \draw[very thin, gray!30, step=1 cm](-4.9,-3.9) grid (4.9,3.9); ...
4
votes
1answer
45 views

Bug (?) in color of connection bars in TikZ mindmap

I have the following figure, with the code below: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{mindmap} \begin{document} \begin{tikzpicture}[small mindmap] \node[concept, ...
1
vote
0answers
30 views

Is it possible to use \usetikzlibrary inside a figure?

It seems that whenever I use \usetikzlibrary in the context of \begin{figure}, the library is not loaded. I often put the content of my figures in separate files, and I'd like to place the library ...
6
votes
1answer
149 views

How to Latex Logic with four or more branches?

I'm looking for a way to make a Logic Tree with three columns (line number, tree itself and commentary). I've tried using a tikz matrix, and it worked very well, except when I get more than two ...
0
votes
0answers
24 views

pgfplotsset error

I am running the following code \documentclass[% reprint, amsmath,amssymb, aps,onecolumn,showkeys, %pra, %prb, %rmp, %prstab, %prstper, %floatfix, ]{revtex4-1} \usepackage{graphicx}% Include ...
4
votes
1answer
36 views

Round corner not correct

I wish to draw a round corner but below code seems not as expected. The upper right corner is turn to a wrong direction. \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} ...
1
vote
1answer
37 views

Coordinate of the end of arc in tikz

I was trying to calculate the coordinate of the end of an arc in tikz but there seems to be an error I couldn't fix. Any ideas? Many thanks in advance! \documentclass[a4paper, 11 pt]{article} ...
6
votes
1answer
69 views

How to make some adjustments and centralize these graphs

These are the graphs I am trying to reproduce: This is what I've done: My problems are: How to make those arrows in each loops in the second graph. (If possible) How to decrease the letter's ...
2
votes
1answer
46 views

Problem with forget plot in the 1.12 version?

If you comment the line \pgfplotsset{compat=1.10}of this MWE: \documentclass{amsart} \usepackage{tikz,pgfplots} \pgfplotsset{compat=newest} \pgfplotsset{compat=1.10} \begin{document} ...
3
votes
1answer
162 views

Create Sierpinski-like triangle in tikz

I would like to adopt this example How to create a Sierpinski triangle in LaTeX?, for a slightly modified Sierpinski triangle: The first step (the whole triangle is black) should be the same. Then in ...
3
votes
0answers
68 views

Make a Sheme in LaTeX Tikz?

I have this CSV-file ... Lineare Algebra TÜ [Übungsraum (3322-316)],01/28/15,08:15:00,01/28/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/04/15,08:15:00,02/04/15,10:00:00 Lineare Algebra ...
5
votes
2answers
54 views

Problem declaring newcommand with tikzpicture inside

I plan to put some common commutative diagrams and short exact sequences as new commands in my *.sty file. However, putting this code in my *.sty file \ProvidesPackage{myLayout} ...
2
votes
1answer
45 views

Plot file could not be opened

The following code is from the "gallery of examples in the manual - PGFPlots". \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pagestyle{empty} \begin{document} ...
10
votes
3answers
1k views

Pascal's Triangle + Fibonacci Numbers

How can I draw this picture in LaTeX, with those skew lines? Any hints?
1
vote
2answers
48 views

Different space between nodes for Tikz legend

I want to add a legend to my graph, explaining what different arrows mean. I thought I might be able to do it using coordinates, but the spaces between them are the same as spaces between the nodes ...
1
vote
1answer
35 views

How to align a group of nodes with respect to the widest one

Consider the following figure: How can I align the horizontal-text nodes so that their .west nodes are vertically aligned with respect to the widest node in the group? Also, how can I add the ...
2
votes
1answer
34 views

How to draw and label a vertical line from datapoint to x-axis in pgfplots

I have the following figure that consists of only four different values of $x$. Each of these $x$ values corresponds to a certain dataset and I need to label it in the figure. Therefore, I want to ...
4
votes
0answers
50 views

Add label to a rotated doubly linked list

I have done a doubly linked list as below but I still not satisfy the label annotation of begin and end. I know it's a bad style now but don't how simplify it. \documentclass{article} ...
8
votes
0answers
66 views

3n arguments in a macro (n is an even number) for curves whose thicknesses increase or decrease

For some mathematical figures it's nice to be able to vary curve thickness smoothly along a path, to reproduce hand drawn mathematical figures made with inking liners for instance. One way to do it ...
4
votes
1answer
32 views

Increasing the distance between nodes from the 1cm default using “right=of” option

The following code has TikZ drawing parallel line $\ell$ and $m$ and intersecting line $k$. I drew line $m$ by first positioning the origin, labeled O, on it, and using \coordinate[left=of O](P); and ...
5
votes
1answer
64 views

Segmenting a Bezier curve into equal lengths in tikz/pgf

I'm trying to draw two curves and then create equal sized segments/arcs using pgf/tikz but for some reason the segments are not equally sized. I want to go on and fill each segment with a different ...
1
vote
0answers
23 views

Box around some of the elements in an enumerate list [duplicate]

I need to put a box around the label of an enumerate list. This is solved in Colored box around enumerate labels but, my problem is that I need to do that just in some of the elements marked, for ...
2
votes
1answer
61 views

Weird behavior of cylinder shape in TikZ

I am trying to draw a cylinder to represent a database in a diagram of mine. I have written this code, inside a much bigger document \documentclass{article} \usepackage{tikz} ...
2
votes
0answers
45 views

Animating tikz pictures using beamer

I have two pictures drawn using TikZ. When I place them in two different frames in beamer they perfectly show up. But I want to animate them, that is, I want one picture after the other at a mouse ...
1
vote
2answers
49 views

Defining my own custom white-boxed digital circuit component

Tikz has a bunch of useful digital circuit components, basic or complex. Here, I need some of my own, not necessarily even one of the convenient ones. But let's take one, rather convenient example: A ...
3
votes
2answers
55 views

Aligned circle around letter - tikz

I am using the following tikz-based command to create a circle around a letter. \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ \node[shape=circle,draw,minimum size=4mm, inner sep=0pt] ...
4
votes
4answers
138 views

Change labels on x-axis in TikZ plot

I have the following code to create an axis on which trigonometric functions must be plotted (in degrees). It is to be printed out and used as part of a mathematics test paper. However, x axis must be ...
1
vote
0answers
32 views

tikz being mishandled by manuscriptcentral

I'm submitting a paper through manuscriptcentral. The paper uses tikz. Here is the code for one of those figures: %in preamble \tikzset{box/.style={draw, minimum width = 1.cm, minimum height = ...
0
votes
0answers
28 views

TikZ Calendar Example Fails: Undefined control sequence \@EveryShipout@Output

I just love the TikZ calendar at http://www.texample.net/tikz/examples/feature/calendar-library/a-calendar-for-doublesided-din-a4.tex . It compiles fine on my iPad TeX Writer with PGFPLOT 1.11 ...
1
vote
1answer
50 views

Tikz and figures in 3-space

How can I draw this in LaTeX? I can do with a lot of segments but I think that there is other easy way to do it. And how can I add this gray blackground to images that give that spatial view.
2
votes
1answer
34 views

Improvement of tikz code and color the cone

The following code produces (if you can call it like that) a sphere, a cone and the axis. \definecolor{uuuuuu} {rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666} ...
4
votes
2answers
77 views

tkz-berge, renumbering vertices

This TikZ code for drawing an icosahedron and labeling gives only a partial answer to my question. With the following code \documentclass{article} \usepackage{tkz-berge} \begin{document} ...