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)

3
votes
0answers
562 views

Clustered Stacked bar Chart Overlapping Labels

I have following code by which I generate the following graph \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \usepackage{xcolor} \usetikzlibrary{arrows,automata,calc,shapes, ...
3
votes
0answers
549 views

TikZ: scaling the tikz picture environment

If I scale the TikZ picture environment, everything should scale by a factor of x correct? If that is the case, why would some code not scale or scale incorrectly when it is in the environment? For ...
3
votes
0answers
593 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 ...
2
votes
0answers
21 views

TiKz externalization ignoring scale

I want to use a TikZ picture (an Eiffel tower but it does not matter) a lots of times in the same document, but with different sizes and different colors. The first option could have been to define a ...
2
votes
0answers
32 views

xelatex doesn't work properly with tikz when pgfpage with \pgfpagesuselayout is used!

I'm trying to make a fading background using tikz. It works great with pdflatex, but when I use xelatex it doesn't work properly. As I noticed the problem is because of \pgfpagesuselayout command. I ...
2
votes
0answers
43 views

Alignment of TikZ Pics in TabularX

What is the easiest way to get that last square aligned the same was as the first two? Do I need to create a \newcolumntype that somehow centers the content both vertically and horizontally? If so, ...
2
votes
0answers
34 views

PGFPlots: Sometimes minor ticks don't show

See code below: xtick={-0.8,0,...,3.2} does not show minor x ticks, but, for example, xtick={0,0.5,...,3.5} does. I'm confused, what's going on? \documentclass[border=0pt]{standalone} ...
2
votes
0answers
48 views

Use of TikZ and Text

I am new to TikZ and I am trying to use it to display a very simple line. I also want a line of text on the page displayed above the line. Therefore, I wrote the following: ...
2
votes
0answers
39 views

Table of Contents style fit to part style

I am using titlesec and TikZ to customize my \part style. I would appreciate to use the \part style for the \tableofcontents title. Is there any way to do it ?
2
votes
0answers
35 views

How to make rotated nodes behave in the same way as the non-rotated version?

The following code produces an image like this: \newcommand{\mywidth}{1.4cm} \newcommand{\myheight}{7mm} \begin{tikzpicture} \node[draw, rectangle, minimum height=\myheight, minimum ...
2
votes
0answers
88 views

Undefined control sequence \end{tikzpicture} with classicthesis.sty

Sadly I wasn't able to get the help I needed from this other question with the same problem: Undefined control sequence \draw and \end{tikzpicture} I am using the code presented in this answer: ...
2
votes
0answers
80 views

How to draw Box UEFA champions league

My source \documentclass{article} \usepackage[table]{xcolor} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \tikzset{add reference/.style={insert path={% coordinate ...
2
votes
0answers
53 views

PDF viewer crashes when creating complex picture in Tikz

I've been creating an image using Tikz and everything works fine, however the code is rather long (~270 lines). I'm highlighting this aspect because I think it's the reason why my PDF viewer often ...
2
votes
0answers
32 views

PGFPlots colorbar incompatible with set layers

This is just out of curiosity. If I use the command \pgfplotsset{set layers} in conjunction with a colorbar, the plot is shifted on my page and the colorbar does not appear where it is supposed to. ...
2
votes
0answers
71 views

How can I automate the plotting of step functions?

I'm using a lot of step functions in my master's thesis and would like to automate the plotting. I can get them to look just as I want by hand using this method, but when I try to automate it like ...
2
votes
0answers
89 views

Edge weights with TikZ graphs

I am using TikZ to draw graph, and want to add edge weights. I have seen some successful example like this. However, when I try to do the same thing, it doesn't work. Could anyone know the reason? ...
2
votes
0answers
90 views

Getting TikZ to work on Elementary OS (Ubuntu)

I'm running Elementary OS (which is a fork of Ubuntu 12.04), and am having troubles getting a LaTeX installation to work. Code that worked on my old installation on Windows, doesn't appear to work ...
2
votes
0answers
28 views

adding a loop to each part of an equation to label it

How I can lebel each part of an equation (when I click it will go the the second term and so on) as in this image?,
2
votes
0answers
53 views

Putting repeated symbols along a path with decorations?

I have a drawing of a curved-plate capacitor: \documentclass[]{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture}[ ...
2
votes
0answers
78 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} ...
2
votes
0answers
81 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 ...
2
votes
0answers
79 views

Tikz axis border on top, grids below

Is there an easy way to place the border box of a tikz graph on top, while keeping the grid lines behind data lines? \begin{axis}[axis on top] The above puts the border, x grid lines, and y grid ...
2
votes
0answers
105 views

Legend image arguments for the command `\addlegendimage`, 3d legend image

In the 3d plot I want to modify the third legend entry to only show the marks and not the line. From http://tex.stackexchange.com/a/113765/28093 I understood that I'm supposed to use something ...
2
votes
0answers
62 views

Tikz node centers with scaling

Can you explain why TikZ places the node center incorrectly in this MWE? I expect the red node to overlap the black one entirely, but it does not. If I remove the scaling, the problem goes away. ...
2
votes
0answers
67 views

How to place two plots inside a node?

I'm eager to have two plots (of the algebraic functions) placed horizontally inside a node. I'd like them to be signed, so something like caption (below the plot) is needed. One of them — "the good ...
2
votes
0answers
62 views

3D plot from file

Hi I am currently learning how to do plots in Tex and I found a problem which I cant solve. I would like to do 3D surface plot from file but all what I get is a 3D line. For learning purpose I used ...
2
votes
0answers
87 views

moving axis-labels in a matlab2tikz picture

I'm working with matlab2tikz to make pictures for a paper I have to write. I need a pretty small picture because I'm putting two of them together, each of the two consisting of 2 subplots in Matlab. ...
2
votes
0answers
168 views

Draw a hemisphere (or just a segment of a sphere)?

Drawing a sphere is easy enough using the ball shading, or some more refined form as in How to draw a shaded sphere, but I would like a way to shade only one half (or even just slices). I currently ...
2
votes
0answers
29 views

Using 3dplot package in lyx

I'm trying to get the following tikz code to run with LyX: http://www.texample.net/tikz/examples/the-3dplot-package/ My preamble contains: \usepackage{tikz} \usepackage{3dplot} \usepackage{pgfplots} ...
2
votes
0answers
299 views

latex' arrow tip with arrows.meta library

Consider the following MWE \documentclass[tikz]{standalone} \usetikzlibrary{arrows,decorations.pathreplacing, decorations.markings,arrows.meta} \tikzset{ big arrow/.style={ ...
2
votes
0answers
69 views

Latex PDF - Hyperref Zoom in - pdfview

I am currently strugelling with the following problem: I would like to create a TikZ graph in which I can click on the node text (hyperref) to jump and zoom in to another part of the graph: I ...
2
votes
0answers
159 views

Drawing “beautiful spheres” in TikZ

I found some ready-made code to draw spheres and lines on them in this paper, which refers to this example. Bottom line is that I do not get the presented result using MiKTeX on 64-bit Windows 7, ...
2
votes
0answers
84 views

Tips for making a lightweight long document

I wonder what tips should we keep in mind to keep a long document lightweight. I've written 3 chapters from my thesis with ~30 figs and some math, and document size is exponentially increasing (10MB ...
2
votes
0answers
182 views

Create a triangle in a block diagram with tikz

I've been trying to create a triangle as a buffer in my diagram, but i get the error: !Package pgfkeys Error: I do no know the key '/tikz/buffer' and I am going to ignore it. Perhaps you misspelled ...
2
votes
0answers
87 views

TikZ “containing square” computation problem for a path (application: pdftooltips)

The "pdftooltip" command from the pdfcomment package requires rectangular trigger regions. This is problematic when annotating figures. Take for example: \documentclass{article} \usepackage{tikz} ...
2
votes
0answers
124 views

Comparison of the plots of the same line on the Cartesian plane using pgfplots and TikZ

I have the plot of a line using pgfplots and the plot of the same line using TikZ. I would like them to be identical. I need to correct a mistake in the plot of a line using pgfplots. The point ...
2
votes
0answers
129 views

Matplotlib pgf backend returns “LaTeX returned an error, probably missing font or error in preamble” for all plots

I've spent the last few hours trying to get PGF backend to work. I was trying to use xelatex, but it wouldn't run at all. Now I have made this example: # -*- coding: utf-8 -*- import matplotlib as ...
2
votes
0answers
70 views

inkscape2tikz missing arrowheads

inkscape2tikz doesn't seem to cope very well with arrowheads. Is there a way around this? Maybe my picture is also already too complicated for this extension to work out-of-the-box and I should choose ...
2
votes
0answers
75 views

vertical axis doesn't show in ymode=log with pgfplots

Consider the following MWE (mostly copy-pasted from this example) : \documentclass[12pt,% a4paper,]{scrreprt} \usepackage{pgfplots} ...
2
votes
0answers
57 views

Correct way to make command defined in tikzpicture environment (in an example) available in all documents?

The wonderful answer to the question Easy curves in TikZ shares some code that is defined inside a tikzpicture environment. I share the relevant portion of the answer here: Here is a slightly ...
2
votes
0answers
71 views

mdframed package with tikz rendering lines poorly

I'm using TeX Live 2014 on Windows 8.1, and I'm having some trouble setting up a visually appealing definition environment. I'm trying to use the mdframed package with tikz, and I'm using an example ...
2
votes
0answers
158 views

Is there a (tikz) package that supports flowcharts according to ISO 5807?

I wonder if there is a package that fully supports the flowchart symbols defined in ISO 5807:1985 (or at least a hugh amount of them)? I just found the tikz flowchart package from Adrian P. Robson. ...
2
votes
0answers
95 views

Grouping bins in bar charts?

I have below bar-chart. I want to group the bars together by color. It makes no sense to compare the bins directly, but only the values with the same color directly. Is there a way to create two ...
2
votes
0answers
212 views

tikz/pgf: do not know the key/undefined control sequence

Sorry if the title is not very descriptive, but my problem is that I'm at such a loss that I don't even know how to best describe it. The problem is that I have LaTeX errors with certain tikz figures, ...
2
votes
0answers
76 views

How to use tikz with memoir

I have used the following code after suggestion from an answer here. \documentclass{memoir} \usepackage{amssymb} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[column sep=1.2em] 0 \arrow[r] ...
2
votes
0answers
93 views

! Dimension too large in pgf

I have no familiarity with TEX, PGF, etc -- but somebody was kind enough to offer me code to produce something I'd like to use. Unfortunately, I get a Dimension too large error when I run the ...
2
votes
0answers
178 views

Adjusting Text Vertical Space between lines in Tikz

I have this flowchart and the preamble is set to add a vertical space between lines and when I compiled this flowchart it follwed the preamble i guess. how can I adjust the vertical spaces of lines ...
2
votes
0answers
60 views

How can I make the node order for references in TikZ not matter?

Question I am wondering if it is possible to make the order of nodes irrelevant, such that references work regardless of when they are mentioned...like some kind of pre-parsing of the code that ...
2
votes
0answers
49 views

Verbatim and Bacground&TikZ compatibility problems

If to compile below MWE, you'll get next error: According the error message, the problem is tikz and calc library package, which looks like links with background package. Also, you will not find ...
2
votes
0answers
227 views

Controlling delimiters in matrices typeset with TiKZ

This question is directly related to Loop Space user's answer to question Broken matrix - gaps in brackets, in which an alternative TiKZ method to amsmath matrix typesetting is provided. The ...