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
16 views

tkz-fct “Plot data file not found” error [duplicate]

I want to draw following image using tkz-fct package, found from http://www.altermundus.fr/pages/base.html. The code from web site is as follows: \documentclass[]{scrartcl} ...
4
votes
2answers
705 views

Adding arrows to a Gantt chart?

(To-the-point question at the end of the post) I am using the following snippet to draw Gantt diagrams, taken from this source: % GanttHeader setups some parameters for the rest of the diagram % #1 ...
2
votes
1answer
132 views

clipping a rectangle in TikZ doesn't work

I have this code : \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} \usepackage{comment} \usepackage{tkz-euclide} \usetkzobj{all} \tikzset{ b/.style={draw, rectangle, rounded ...
13
votes
4answers
988 views

Draw curved path inside circle

How to draw the curved line inside the red circle in this picture : MWE \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} ...
6
votes
3answers
2k views

Nodes and matrix of nodes

I know thanks to @TorbjørnT. that messing with nodes and matrix of nodes is not recommended as you would no more be able to use (m-1-1) for a coordinate of a cell of a matrix m. (cf. Compilation ...
2
votes
1answer
531 views

How to draw dashed area in graph (TiKz)

I'd like to draw three graphs like these ones below: Is there an easy way to draw these dashed areas? This is what I have so far: from the following code: \documentclass[11pt]{article} ...
7
votes
3answers
902 views

Drawing Königsberg landscape showing the bridges

Just for fun, I was trying to draw the picture (which I found here): However, I don't know how to create irregular shapes in tikz. Can anybody help?
10
votes
1answer
429 views

How can I round numbers relative to their order of magnitude?

This is a question which came up in the answer http://tex.stackexchange.com/a/183227/1537 . Suppose we have a sequence of numbers for which we know that they are the log of some quantity. Now I want ...
3
votes
1answer
144 views

reproduce envelope design

Not being a specialist of TikZ, I have no chance to succeed in posting a MWE to reproduce the envelope design above. Any hint to start?
4
votes
1answer
457 views

How draw part of ring or broken ring in TikZ?

I'm trying to draw something like this using TikZ: It could be one ring which is broken or it could be different parts of different rings. The text should be also bent (not as shown on the paint ...
3
votes
1answer
430 views

drawing smooth parabolic curves in tikz

I am trying to draw the following picture with Tikz. However it doesn't seem possible to get the correct smoothness like in the picture. Can anyone tell me how to achieve it. What I have tried so ...
8
votes
3answers
650 views

Drawing arbitrary shaped grids in TikZ

I would like to reproduce grids like the following (taken from here, p.5): So far, I've come up with the following TikZ code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} ...
1
vote
1answer
322 views

Positioning a node horizontally aligned and below others

Using tikz 3.0.0, I want to create the following diagram which I have so far achieved by manually positioning the “G” in the last row: \begin{center} \begin{tikzpicture} \node (A) ...
3
votes
2answers
783 views

Graphs of Linear Inequalities

The following code I got from: http://tex.stackexchange.com/a/76014/10898 \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{patterns} \makeatletter ...
3
votes
1answer
137 views

Enhancement of bloques tikz library

I'll let this question open for a few more days if someone posts an interesting answer I came across bloques library for tikz (http://www.ctan.org/tex-archive/graphics/pgf/contrib/bloques), found it ...
1
vote
1answer
521 views

fit tikzpicture to page width or height (using macros)

I have a new environment defined that fits tikzpicture to the page width, but when tikzpicture is long in height the bottom part of the tikzpicture is cut and extra blank page appears because of the ...
4
votes
1answer
220 views

Draw graph with ovals tikz

Im trying to draw this graph with ovals (tikz). Can you help me?
5
votes
1answer
215 views

As the best way to draw this diagram?

As the best way to draw this diagram? See a MWE: \documentclass[border=2cm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[x=2.5cm] \draw[black,->,thick,>=latex] ...
3
votes
1answer
292 views

The easiest way to draw a diagram within a text

If one were to write a large piece of text and wanted to include a diagram like the two shown below, what is the easiest and simplest way to do so with LaTeX? By "simple" and "easy" I mean - if ...
2
votes
1answer
141 views

\widthof text in a def'd subroutine inside a tikzpicture? [duplicate]

I have already seen \widthof within tikzpicture, but this is slightly different. I have a rather complex Tikz image, which I'd like to eventually include in a Latex document; as such, I'd like this ...
3
votes
2answers
256 views

pgfplots - Zero lines draw over anything else, especially node/pins

For adding zero lines to every plot produced by pgfplots, I used the code provided by percusse here. (A quick note after 2 replies were provided: this is a "global" solution. If one likes to add the ...
4
votes
2answers
432 views

Using tikzpicture or pgfplots to draw a uniform grid

I want to use pgfplots or tikzpicture to draw a uniform grid as illustrated in below. The grid size in the figure is 8×8. I want to be able to define a parameter that gives me the ability to draw ...
6
votes
3answers
2k views

Why is this Tikz scope coordinate system skewed?

I'm trying to create a simple figure in which the tick labels will not line up properly, because the coordinate system is skewed. Here is the MWE code: \documentclass[a4paper,twocolumn]{article} ...
0
votes
1answer
186 views

Change words in a Tikz picture every page

I'd like to create a template, as below. But I'd like to make it so that I can have multiple pages of the same layout and be able to easily replace "Header 1" and "Header 2" with different words each ...
3
votes
1answer
315 views

Need text to overlay tikz header

I'm trying to create a title page for a document but I'm having some trouble with the background imaging overlaying the text. This is what it's looking like: As you can see the words fall under ...
2
votes
1answer
421 views

Piecewise styling and decoration of a tikz path?

I have this path, which I would like to style "piecewise" from a single specification, shown on the image below: As the image says, I'd like to decorate segments 2-3 and 5-6, and colorize only 3-4. ...
1
vote
1answer
324 views

Is it possible to create a TikZ calendar with very few dates (which are very apart)?

Is it possible to produce a TikZ Calendar without the range option? Would it be possible to enter very few dates manually as in a LaTeX list environment? More exactly: Is it possible to to display ...
6
votes
1answer
936 views

Usage of /pgf/number format/cd

I'm trying to fix the amount of digits the colorbar has, because the plot is shrinking in size and I wish to animate this plot, so a fixed height and width is mandatory. I still want LaTeX to do the ...
4
votes
1answer
601 views

inconsistent behavior of tikz [fit] and [transform shape]

I want to frame a set of nodes with the option [fit] ​​and change the overall size of the drawing with [scale = xx, transform shape] but I have unexpected behavior. the frame is no longer valid the ...
7
votes
0answers
141 views

TikZ library creation [closed]

I'm wondering about the best (ie faster) way to create a new Tikz library. Let's assume I have the components in a PDF/SVG/whatever vector graphic program. There is a possibility to directly convert ...
4
votes
1answer
112 views

TikZ: How to center the text in a node with the scrartcl class

I want to draw a probability tree. In Beamer it looks good. But in scrartcl the texts in the node are aligned right. I want the text to be centered. How can I solve this? ...
3
votes
1answer
4k views

Axis Environment Tick Labels as Text (Including a $)

I am attempting to use the axis environment to build a simple plot line. Is it possible for tick labels to be renamed as text? Instead of numbers I would like the month on the x-axis, and in ...
3
votes
3answers
356 views

Wrong placement (and/or size) of picture / plot with groupplot of table (… and discontinuity)?

Consider this MWE: \documentclass{article} % \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.5.1} \usetikzlibrary{pgfplots.groupplots} \usepackage{pgfplotstable} ...
5
votes
1answer
570 views

Using tikz diagrams in beamer with minor differences between slides

I'd like to highlight different parts of a tikz diagram in beamer slides using something like the \only command. I was able to do this at the level of nodes, which is probably fine, but as I have some ...
7
votes
1answer
691 views

How to indicate graphically that two sides are of equal length?

I'm using tikz to draw two triangles, e.g. \begin{tikzpicture}[thick] \coordinate (A) at (0,0); \coordinate (B) at ($(A)+(330:3)$); \coordinate (C) at ($(A)+(230:4)$); \draw (A) ...
7
votes
3answers
542 views

Tikz and pgfplot problem with plotting

I'm using pgfplots. The graph is clipped where it shouldn't, how can I fix it? \documentclass{article} \usepackage{tikz} \usepackage{siunitx} \usepackage{pgfplots} \begin{document} ...
5
votes
1answer
198 views

setting tikz styles

How do I set labeling styles associated with each style type? For example: (source below) I have an "input" style (medium circle) and a "junction" style (small dot) which I would like to have the ...
3
votes
1answer
1k views

PGF Math Error: Could not parse input

Trying to plot a BER vs SNR function using erf function. However I get an error saying " Package PGF Math Error: Could not parse input '' as a floating point number, sorry. The unreadable part was ...
6
votes
1answer
476 views

Talking Balloon in TikZ

I have the following code \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{calc,shapes.callouts,shapes.arrows} \newcommand{\bubblethis}[2]{ \tikz[remember ...
6
votes
1answer
221 views

Is it possible to change the edges for some tree level using forest package?

Is it possible to change this MWE which is using forest package to produce a tree, similar to that produced by the next MWE that is not using forest? The very last level of child nodes would have to ...
4
votes
4answers
500 views

tikzmark and position issue

Can you help me to place the arrow right on the top of "a" ? \documentclass[12pt,oneside]{book} \usepackage{tikz} \usetikzlibrary{arrows,positioning} ...
3
votes
1answer
158 views

Align bar charts from different sources with one xlabel each

I have a pgfplot that reads from two files. I want a bar chart where the values (bars) of one file appear over one xlabel and the values from another file over another (A and B in this example). My ...
2
votes
1answer
621 views

Engineering notation (scientific) as tick labels with pgfplots (maybe via siunitx)?

I would like to have numbers on the ticks labels formatted in engineering notation -- but unlike in How to control pgfplots axis scaling for engineering notation (multiple of 3 exponent)?, I would ...
12
votes
3answers
875 views

Challenge! Create aTikZ style to mimic mirror reflection (with option for curvature distortion)

When we see images that are reflected at a mirror, or at the eyes of someone, or at the water, there is some light effect that tells our brains the image we are seeing is a reflection. Some of Escher ...
6
votes
2answers
718 views

Animating a plot with pgfplots

I'm creating a beamer presentation and I want to animate a plot with pgfplots. This is a MWE of the graphics: \documentclass{beamer} \usepackage{tikz,pgfplots} \begin{document} \begin{frame} ...
3
votes
1answer
948 views

Export eps figures from TikZ II

This question is a very similar to Export eps figures from TikZ however the solution that has been accepted there does NOT appear to be working for me. I have also tried the example from the ...
4
votes
4answers
345 views

How can I align text across two nodes in a Tikzpicture?

Consider the following code: \begin{tikzpicture} \node[align=left,font={\small\bfseries}] at (-30 pt, 30pt) {99.99\% $500 \mu s$}; \node[align=left,font={\small\bfseries}] at (-30 pt, 10pt) ...
1
vote
0answers
170 views

pgfplots: Explicitly Setting 'Line and Mark Intersection' In Plot

Is there a way to specify where a line intersects a 'mark' on a pgfplot? MWE: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{figure}\begin{tikzpicture} ...
8
votes
2answers
410 views

How to conceive a macro for drawing a pie-chart circle of fifths?

I would like to re-write parts of the book mentioned below on historic tuning temperaments, and therefore I need to draw a circle of fifths, represented in the book by hand-drawn schemata like this: ...
1
vote
1answer
284 views

TikZ scalebox without translation

Below are two TikZ pictures. In the second one, I've added a \scalebox to scale the nodes ABC and the distance between them. I want the A to remain in the same position, but unfortunately the ...