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
259 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} ...
6
votes
1answer
871 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 ...
7
votes
1answer
1k 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} ...
5
votes
1answer
185 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); ...
5
votes
1answer
320 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
1k 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
622 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, ...
43
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
192 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
258 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
289 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? ...
3
votes
2answers
200 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
129 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
345 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
542 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
386 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
311 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
214 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
456 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
266 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 ...
3
votes
0answers
542 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 ...
8
votes
2answers
352 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
449 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 ...
5
votes
0answers
1k 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} ...
5
votes
1answer
370 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
422 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 ...
9
votes
1answer
493 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
197 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
299 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} ...
4
votes
2answers
238 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
853 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
319 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
258 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
579 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} ...
14
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
1k 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
341 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
433 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
241 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 ...
5
votes
1answer
307 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
446 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 ...
5
votes
1answer
389 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.
5
votes
2answers
1k views

Probability density function of Uniform Distribution

Can anyone help me about drawing pdf of uniform distribution function in Latex? I am newbie in this and could not find anything helpful. Thanks!
0
votes
0answers
43 views

some PostScript specials could not be rendered (tcolorbox+DVI) [duplicate]

I can't see tcolorbox in DVI file after running LaTeX. The error is "MiKTeX Problem Report Message: Some PostScript specials could not be rendered. Data: Error: /undefined in pgfo Operand stack: ...
4
votes
1answer
1k views

TiKz: Text inside circles overlaps

How can I fit the text squarely inside the circles without it overlapping like this? \documentclass[tikz,border=12pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} ...
0
votes
1answer
136 views

heading breaks with twopage option for book class

I had to switch from oneside to twoside option for book class to get the binding right. Unfortunately this breaks the chapter headings if they land on even pages (on uneven pages the heading looks ...
10
votes
1answer
139 views

Arrows disappear if 0.9999 is replaced with 1 in TikZ

A slight change in TikZ code makes arrows disappear. I want to know what went wrong. Consider the following code: \documentclass[tikz]{standalone} \usetikzlibrary{arrows,decorations.markings} ...
6
votes
1answer
1k views

Setting camera projection angle in tikz to enhance the depth perception when drawing 3D figures

First please see the following example using MATLAB drawing command >>surf(membrane); We can adjust the camera angle using MATLAB's built-in command camproj, the effects are as follows: ...
0
votes
1answer
162 views

How to prevent unwanted cropping in a tikz picture? [duplicate]

I am trying to make a series of engineering drawings with TikZ for an industrial catalogue. I would like to get only the drawings. The following MWE crops the bottom of the picture, and I would like ...