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)

4
votes
1answer
349 views

tikz trees - children attached to wrong node

Consider \usetikzlibrary{calc,decorations.pathreplacing,shapes.symbols} \begin{tikzpicture} \node [shape=cloud,aspect=2,draw] {\strut} [level distance=6em,sibling distance=1.5em,grow=45] child {...
0
votes
1answer
636 views

Error using tikz externalize with TeXnicCenter

When I compile my document i get the following error ! Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-error -interaction=batchmode -jobname "tikz/myfile-figure1" \def\...
0
votes
0answers
58 views

Label in cyclic arrow diagram [duplicate]

Consider the following code from TeXample.net: How to refactor it for adding sloped labels on the outside of the arrows? Do you have a more elegant solution with TikZ? % Overlapping arrows % ...
3
votes
0answers
123 views

Strange line appearing in tikz plots [closed]

I am generating plots using matlab2tikz and then including all of these .tikz files into my dissertation. I have declared the following in the the .tex file \usepgfplotslibrary{external} \...
4
votes
0answers
475 views

Using `external` selective for TikZ-pictures [closed]

For the following example: \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{calc,external} \usepackage{pgfplots} \tikzexternalize \begin{document} \tikzstyle{...
12
votes
2answers
559 views

Triangle as constraints in structural engineering

I guess this must be quite simple, but all I've tried didn't work so far. All I want is to get some triangles on the edge of a framework. Something like this: My code looks like this: \...
9
votes
1answer
3k views

Change font family in pgfplots (followup)

The MWE below shows that the solution at How can I change the font family in pgfplots? does not cover all the cases. The digits in the plot itself and the subscript in math mode in the title need ...
4
votes
1answer
359 views

Increasing dateplot's resolution to seconds

These three dots should be spread out over a period of 50 seconds, but for some reason they all appear at 13:00:30. \documentclass{minimal} \usepackage{pgfplots} \usepgfplotslibrary{dateplot} \begin{...
7
votes
1answer
1k views

Scaling a multi-column TikZ/pgfplots groupplot to page width

I am trying to scale a pgfplots groupplot with multiple (and variable numbers of) subplots to match the \textwidth of a document. What I found is that there seems to be no direct relationship between ...
9
votes
1answer
2k views

Mindmap sibling angle in Tikz

I am using the following tikz example (original source) MWE: % Author: Till Tantau % Source: The PGF/TikZ manual \documentclass{article} \usepackage{tikz} \usetikzlibrary{mindmap,trees} \begin{...
5
votes
1answer
260 views

How to parametrize a \draw command in tikz?

I'm using the following command to draw a 'X' at a particular coordinate (x): \draw [blue, line width=1mm] (x)-- ++(-4.5pt,-4.5pt) -- ++(9.0pt,9.0pt) ++(-9.0pt,0) -- ++(9.0pt,-9.0pt); ...
7
votes
1answer
435 views

Using the perpendicular coordinate system with tikzmark

How do I refer to the coordinate that is the meeting point of the perpendiculars drawn from a tikz mark and a coordinate? I'd like to use this to align images to bullet points in my beamer ...
3
votes
1answer
2k views

Problems with axis label and colorbar for pgfplots

I used matlab2tikz to convert a figure from matlab to tikz. When I run this code, I get this addition $.10^-2$ in both X and Y axis. (see figure below ). In addition ytick of the colorbar is also not ...
7
votes
1answer
917 views

Tikz: placing a node at the intersection of two circles along a hyperbola

I know one can use the intersection package to find the point of intersection but I don't understand how to do it yet. I would like to label the increasing order of the intersections F^*_2, F^*_1, F^*...
44
votes
5answers
3k views

Moebius Strip using TikZ

I'm wondering whether is possible to draw a Moebius Strip using TikZ. The closest thing I've seen is in Texamples' page, but no luck so far! Do you have any ideas? I don't even have a MWE (sorry)
7
votes
2answers
232 views

Coordinate system along line

I would like to draw a coordinate system along some lines in a framework for a structural course. This little coordinate system is called local coordinate system. At the moment the framework looks ...
1
vote
0answers
308 views

I am looking for that one specific tutorial on beautiful TikZ histograms [closed]

this is a rather loosely related question, but would anyone happen to have the link to that one tutorial for "beautiful" histograms with TikZ? IIRC it was about how to draw a good-looking histogram ...
3
votes
1answer
421 views

! Dimension too large

I keep getting the error Dimension too large when i make my \Desktops{80} and my \DTUnits{20} however if I change my \DTUnits{14} it works, can someone help me please? \documentclass[a4paper,12pt]{...
3
votes
2answers
292 views

How to show content only on the current slide in a Beamer specification?

Here is a beamer frame that shows "Item 1" in the first slide, "Item 1 Item 2" in the second and only "Item 1 Item 3" in the third. How can I get the same result without having to count the items for \...
1
vote
1answer
148 views

How to fix layering with the 3d package?

I used the 3d TikZ library to draw a circle in the z-y plane around a line along the x axis. But since the circle is drawn on top of the line, it does not look like the line passes through the circle. ...
3
votes
1answer
472 views

pgfplots: show x tick labels for data below ymin

I have a very simple bar chart plot. My problem is when I set a ymin value, all x labels whose values are below that threshold will not be displayed. I'd rather have the labels but no values shown. ...
3
votes
1answer
706 views

Adding extra ticks inside the axis environment

I am wondering if it is possible to add extra ticks to a plot without declaring them in the options of \begin{axis}. Consider the following example, where I would like to have the coordinates of the ...
5
votes
1answer
509 views

How to generate a flowchart like in the picture?

Hi all mailing listers: I want to generate a flowchart like in the picture, which is created by Microsoft Visio. I am a newbie in compiling Tex code. I can generate simple flowchart while the ...
1
vote
1answer
396 views

How to plot a curve between two nodes?

I've got two nodes and would like to draw a specific curve between the two nodes, such that the curve begins at the first node and ends at the second node. The curve and its domain are already ...
1
vote
1answer
340 views

TikZ node causing problems inside a \caption [duplicate]

Following an example offered here, I want to insert colored, circled numbers referring to items in a figure (figure details left as an exercise to the reader) into my text. The numbers are defined ...
2
votes
0answers
70 views

Load Graphics as Empty Boxes for Positioning and Quick Compiling [duplicate]

Is there a package that loads all images (tikz, pgfplots, images, etc.) only as empty boxes? This would greatly speed up compilation of documents when making edits to the content and layout when the ...
7
votes
1answer
636 views

Drawing multiple iterations of cellular automatons inline, possibly with TikZ

I want to illustrate the iterations of a cellular automaton picture-by-picture in some slides. For those not familiar with the topic, imagine a two-dimensional grid of square cells where each square ...
9
votes
2answers
294 views

Strange connection of nodes in TikZ

This question is in connection with Making a family of graphs in TikZ by a few definitions. In the following MBWE lines in the first diamond, that were expected to be vertical, have unexpected ...
4
votes
0answers
794 views

How to fit dot graph with dot2tex(i)

Currently I used the dot -Tpng to include graphs in my LaTeX document. However it produced sometimes suboptimal graphics I wanted to look into dot2tex(i). The problem I encountered is that previously ...
9
votes
2answers
469 views

Coding Dot Diagrams

Is there a way to code a group of dots, where by "group of dots" I mean a solid (or dashed) line enclosing one or more dots? For example, a circle with three identical solid dots (inside) is "a group ...
6
votes
2answers
608 views

Cut bottom of tabular by Zig-Zag pattern (in latex beamer)

I try to present a part of a huge table inside the latex beamer environment. A small part of this table is sufficient to understand what is inside so i decided to indicate the cut-out be a bottom zig-...
5
votes
0answers
2k views

Fitting TikZ picture in beamer: Difference between using \resizebox and \adjustbox? [closed]

\documentclass[10pt]{beamer} \usepackage{amsmath} \usepackage{amssymb} \usepackage[english]{babel} \usepackage{color} \usepackage{float} \usepackage[T1]{fontenc} \usepackage[latin1]{...
5
votes
1answer
485 views

tikz extending spring with constant number of segments

Is there as simple way to create a pdf animation with tikz of an oscillating mass attached to a spring which extends and compresses as the mass oscillates. The number of "spring elements" should be ...
5
votes
2answers
599 views

tikz matrix align/decorate cellpictures

I have a matrix of cell pictures, and want the first column to be right aligned and the second column to be left aligned. However I have trouble using the "nodes" key. example \documentclass{article}...
9
votes
1answer
754 views

Drawing little semicircle to show that two intersecting lines are not connected [duplicate]

I want my diagram to show that two intersecting lines are not actually connected, but one passes above the other. The best result I would like to achieve would be a small semicircle as used in ...
5
votes
2answers
258 views

How to provide a mask highlighting an arrow tip over a cluttered background in Tikz?

I have a series of technical drawings that I use for background, highlighting features or adding dimensions and notes with Tikz. In some cases the background is very busy, and arrows tend to "...
8
votes
1answer
380 views

Newton finite differences with Tikz

I am trying to picture Newton's finite differences method with a Tikz tree. Unfortunately, a few nodes are doubled. Is the approach wrong or is there a solution? \documentclass{article} \usepackage{...
4
votes
2answers
276 views

Making a specific cell of a dynamically generated tikz matrix BOLD

I want to make specific cells of a dynamically generated tikz matrix bold. I have tried many things: \bfseries, \mathbf, \textbf, \bf, using assume math mode=false in \pgfmathprintnumberto ... Here ...
7
votes
4answers
1k views

Tikz: drawing concentric circles with specified origins and the arc that connects the intersections

I would like to draw a few concentric circles with origins of P1 and P2 where all the circles are greater than the minimum distances. The min distances is where the circles will touch at one point ...
4
votes
1answer
378 views

Tikz: drawing an arc without using an angle

Can an arc be drawn without using an angle but two locations? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \pgfmathsetmacro{\a}{2.5} \pgfmathsetmacro{\b}{2} \...
2
votes
1answer
333 views

TikZ and tabular/multicol

I've just finished my first TikZ flowchart, and I have a couple of wished to improve it, but I can't seem to search my way to a solution. I would like do this in 2 colomns, with dashed a line between ...
8
votes
4answers
788 views

Decimal separator and axis label centering with Tikz

The following code creates a figure with Tikz without the use of pfgplots (that I want to avoid here): % compilation: pdflatex --jobname=Runge-f1 Runge.tex \documentclass[12pt]{book} \usepackage[utf8]...
15
votes
2answers
2k views

How to draw an Euler angle rotation sequence with TikZ?

For some lecture notes I want to illustrate successive unit axis rotations using Euler angles. I am quite happy with what I came up with so far: However, I am failing at drawing the angles in ...
6
votes
3answers
2k views

Circular arrow in 3D to indicate a unit axis rotation

I would like to indicate the directions of rotation and symbols used for the respective Euler angles. This would look nice using small circular arrows around the axes, as shown below: In this ...
4
votes
1answer
428 views

pgfplots: using macro for tick label

I would like to use a macro to define the label of an extra tick in a pgfplots picture. When the macro uses a greek character it generates an error: ! Missing \endcsname inserted. Here is my MWE: \...
1
vote
1answer
586 views

Alignement of tikz-pictures and tables in subfigures

Basically, I'm trying to explain the depth-first search. I'd like to align my images in the following manner: I'd like to put two graphs in each single line, with the corresponding 'table' (...
6
votes
2answers
317 views

Tikz: connecting two vectors from the focus of an ellipse to the edge

I would like to draw 2 vectors from the focus to the an arbitrary point on the ellipse (not necessarily arbitrary but if I can see how to do that, I can pick my locations afterwards). The solid ...
7
votes
2answers
450 views

Complex Count in \foreach for number line

I am looking to create simple number lines. I have asked a similar question: Resetting numerical labels in \foreach commands on a numberline. But now I am in a different situation. I know how to ...
4
votes
1answer
538 views

Missing mark at legend for tikz bar chart

I have the following code: \begin{tikzpicture} \pgfplotstableread{ % Read the data into a table macro Label First Second Third test 30 30 40 }\datatable \begin{axis}[ xbar ...
6
votes
1answer
665 views

Fibre product in LaTeX

I would be thankful if anyone can guide me in writing commands for a fibre product in LaTeX. I would also like to know how to change the angle of the diagram as I want it to be.