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)

2
votes
0answers
67 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
47 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
25 views

Draw axis line on top macro does not work with colorbar

I have a macro from here: Force "axis on top" for plotmarks in pgfplots Which allows me to draw the axis line on top of the markers. However, if I use it in conjunction with a colorbar, it ...
2
votes
0answers
25 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
64 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
76 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
66 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
40 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
53 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
71 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
67 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
66 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
63 views

I need an ellipse with semi-axes irrational measures. How to proceed?

\documentclass[border=3pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} %calculos no ambiente tikz \begin{document} %ok \begin{tikzpicture} \draw (0,0) ellipse (2 and 1); ...
2
votes
0answers
59 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
64 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
54 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
71 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
147 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
213 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
62 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
141 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
79 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
158 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
84 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
113 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
110 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
61 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
70 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
53 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
188 views

TikZiT issues (Mac OS X Yosemite)

I was wondering if people here using the TikZ editor TikZiT are experiencing issues with said tool after upgrading to OS X Yosemite? I can't get it to compile a preview, and I am not able to see the ...
2
votes
0answers
65 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
140 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
94 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
145 views

Why isn't pgf honouring my font selections for matplotlib-generated graphics?

I wanted to use a euro symbol in my axis descriptions for matplotlib plots saved as pgf files with the pgf backend. When I use the following code: import numpy as np import matplotlib.pyplot as mplot ...
2
votes
0answers
174 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
71 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
85 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
166 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
56 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
216 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 ...
2
votes
0answers
184 views

TikZ ER-Diagram double edge looks ugly

Drawing an ER-Diagram in TikZ and using double edges results in ugly connections of those edges into the nodes. What can be done to connect those edges nicely to other nodes? \documentclass{scrartcl} ...
2
votes
0answers
121 views

Raising a matrix of math nodes in tikz

I'm drawing a series of diagrams with many parallel edges, which I typeset with many instances of paths, yshifted as necessary. I'd like to use the same code for all diagrams, but some of them ...
2
votes
0answers
143 views

Tikz Sphere without using Shade

I am using following graphic in my beamer slides I use evince pdf viewer and I find that the pdf displays very slowly. When I click for next page, it appears around 15-20 seconds later. I have a ...
2
votes
0answers
194 views

Question on compiling pgfplot/tikz figures through latex+dvips+ps2pdf

I have a lot of problems when compiling pgfplots/tikz figures through the latex+dvips+ps2pdf chain. I can successfully compile the same set of pgfplots/tikz figures through pdflatex. The reason that I ...
2
votes
0answers
129 views

How to scale hatch in tikz figure in LaTeX?

I have ellipses with hatch. I want to use lines or bricks hatch but more rare than default. I can change spread between lines in this way Custom and built in TikZ fill patterns. It worked, but it's ...
2
votes
0answers
83 views

Problem with Dense distribution

What is poisson.sty? and how can i fix this problem because I want to run the below code but there is an error ( poisson.sty not found) \documentclass{article} \usepackage{tikz} \usepackage{poisson} ...
2
votes
0answers
136 views

Arrow head at end of spiral curve

Folks, Here is my MWE. I need to draw a spiral for trigonometry more than one revolution. How to place an arrow head on the spiral where it meets the terminal end? \begin{tikzpicture}[scale=1.5, ...