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)

1
vote
1answer
26 views

pgf-pie aside block trouble

I have trouble with a pie chart (pgf-pie). I can't put pie in block aside why? \RequirePackage[absolute,overlay]{textpos} \setlength{\TPHorizModule}{1cm} \setlength{\TPVertModule}{1cm} ...
2
votes
2answers
97 views

How can I draw an implicit equation with pgfplots?

I need some help plotting y^2=x^2(x+1) in pgfplots. I want to print it in the domain -10 to 10. I tried for sometime, but it did not work. Also it should be a smooth curve and not a dotted one.
1
vote
0answers
27 views

TikZ always starts from Center [duplicate]

Trying to use TikZ to draw a diagram, I used the example below, but I see that I could not start the beginning point from a bit left of the page. I checked this question but it's too long and I don't ...
14
votes
4answers
453 views

How to draw an equilateral triangle with TikZ?

I'm trying to draw a little picture with TikZ. It should show an equilateral triangle with length 1 and circles with radius 1/2 on each corner of the triangle. Next, the intersections of the circles ...
1
vote
0answers
58 views

Draw a 2d space-time diagram in latex [closed]

I am very new to tikz. I was wondering if someone could tell me how to go about drawing a space-time diagram pretty much like the one included below within latex. Thank you
4
votes
1answer
66 views

Filling the intersection area of two circles and ellipse

I found a picture like this. I want to fill the intersection area of two circles and ellipse. This is what I have done: \documentclass{article} \usepackage{geometry} \usepackage{tikz} ...
0
votes
0answers
23 views

pgfgantt - adjust vgrid with \gantttitlecalendar

I am using \gantttitlecalendar to generate my title block that consists of months and weeks. The default behaviour of vgrid is to take each unit as a day, or if compress calendar is true, each unit ...
31
votes
7answers
2k views

Generate analog clock with numbered face, add seconds, Roman numerals

Looking at the excellent answers here, I can't help wondering how I can accomplish two apparently simple modifications: I wanted to be able to generate a traditional Roman-number clock; It would be ...
1
vote
2answers
68 views

Putting arrows Properly in Tikz

I have the following code \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes,arrows,shadows,calc,fit} \usepackage{amsmath,bm,times} \newcommand{\mx}[1]{\mathbf{\bm{#1}}} % Matrix ...
1
vote
1answer
53 views

tikz-cd.sty not found

I have certain codes written in LaTeX with several diagrams in tikz-cd. I must compile these codes in other computer (with Ubuntu 12.04 LTS) and when I compile appear this error: tikz-cd.sty not ...
5
votes
2answers
88 views

Indicating lengths of line segments

I would like to label the length of four line segments in a certain plot. In the plot, the length of line segment PQ should be labeled a, the length of line segment QS should be labeled b, the length ...
2
votes
1answer
32 views

tabular inside tikz matrix

The matrix is not being layed out correctly. It should be a 2x3 matrix. What's wrong with the code? MWE: \documentclass{article} \usepackage[table]{xcolor} \usepackage{tikz} ...
1
vote
0answers
43 views

Ending a tikzpicture environment in conditional causes “Missing } inserted”

I want to create a number of tikzpictures. I have a number of items I want to draw. Each tikzpicture takes up a whole page and may contain up to 4 items. (It is not good enough to to have each item in ...
4
votes
1answer
96 views

Tikz relative positioning with ++

The red rectangle is in the correct position, but I need the blue ones to be 4 and 8mm to the right of the red on the same height (not below, as my code makes it). What is wrong with my use of ++? ...
1
vote
1answer
69 views

how to remove the background for png picture

I would like to make the background transparent. In Texmaker, if I right-click on the TikZ picture, I can save it as a png image as follows If I save this picture, I get the white background. Is ...
3
votes
1answer
41 views

tikz: text in rectangular split inside matrix

I have a tikz matrix, some of those cells are of shape rectangle split, how do I set text in both parts of the rectangle split? Here is a MWE. I would like to have text in both parts of the ...
4
votes
2answers
63 views

Comparing calculated real numbers

"\ifdimless" can compare two real numbers. But, how can we feed the result of a calculation to this function ? \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{etoolbox} ...
2
votes
1answer
79 views

Plotting a Bivariate Normal Distribution in Tikz

I have been trying to make a 3D plot of a certain bivariate normal distribution but that is far from ideal at the moment. The code I have been using is \begin{tikzpicture} \centering \begin{axis}[ ...
7
votes
5answers
325 views

How to draw this simple box diagram with Tikz

I'd like to draw this very simple diagram below. No need those rounded corners on the feedback line. I tried to follow other guides, but I don't know how to draw the feedback line nor how to ...
6
votes
2answers
252 views

how to add tip for a curve to make it look likes an arrow

I would like to draw a filled arrow around a circle. So far my picture is I need to add tip at the end of the green curve in the above picture. I would like to be able to add tips for either ...
2
votes
0answers
43 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. ...
1
vote
3answers
244 views

Drawing a 3-circle Venn diagram using TikZ

Please help me, I am typing a book \documentclass[x11names]{article} % Set operations illustrated with Venn diagrams % Author: Uwe Ziegenhagen % This is an expanded version of an example provided ...
3
votes
1answer
47 views

How to get rid of white space when drawing lines in TikZ with documentclass=standalone?

I get an annoying white space in my rendered graphics with lines that begin or end at the page's borders. I am using the "standalone" document class for actually not having those margins. Let us ...
1
vote
0answers
49 views

tikz - maintain scale while adding plots

I want to superpose some plots like this one, but shifted in the x-axis: \documentclass{article} \usepackage{tikz,pgfplots} \begin{document} \begin{figure} \pgfplotsset{ ...
2
votes
1answer
66 views

Rotate around the origin of coordinates in Tikz

I use rotate command in Tikz to rotate graphics around the origin. However, this does not work when I substitute coordinates with references. \documentclass[a4paper,12pt]{standalone} ...
1
vote
2answers
100 views

How to align text and picture horizontally and vertically?

I'd like to align text and a picture horizontally as well as vertically, based on the text area. So far I have tried using TikZ. I managed to get the effect alignment of the items in either direction, ...
2
votes
2answers
452 views

Logo hexagon in the form of a ribbon

I wish to make a logo like the one in http://math.et.info.free.fr/TikZ/aideLogoSite.html. But with a hexagon pattern as in the attached picture. It has no text, and it is better with two options: ...
-1
votes
2answers
99 views

tikz picture with LFG architecture

I have a jpg file showing the LFG (Lexical-Functional Grammar) architecture which I would like to draw using tikz, so that I don't have to load the jpg into my pdf (which would result in quality ...
3
votes
0answers
37 views

luatodonotes and tikz externalization won't mix

Consider the following code: documentclass[11pt]{report} \usepackage{pgfplots} \usepgfplotslibrary{external} \tikzexternalize %\usepackage{luatodonotes} \begin{document} \begin{tikzpicture} ...
4
votes
0answers
80 views

Drawing a 3 dimensinal region

I want to draw a region in a 3D envirement. At the moment I'm doing this using tikz. The region is defined by the addition of a translation (1) and a rotation (2). The resuling region in 2D would be ...
6
votes
4answers
207 views

Relative node position

I am trying to replicate the very simple figure shown below Below is the attempt I have made \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} ...
2
votes
1answer
84 views

How to add a zoombox effect to different images?

According to link it is possible to create magnified subfigures and corresponding boxes for portions of a large image like this one: I would like obtain the same effect but with different ...
1
vote
1answer
38 views

Including a matrix of math nodes in a TikZ figure in a minipage in a landscape in an afterpage

I want to include a TikZ figure, containing a matrix of math nodes, displayed in landscape mode on its own page in my thesis, in such a way that the nominally surrounding text, which is in fact on the ...
0
votes
1answer
91 views

Drawing an array data structure using Tikz

I would like to implement the following pictorial representation of array using TikZ/Latex. Please provide some hints to go in the right direction.
1
vote
0answers
54 views

Bar graphs with tikz scientific axies=clean

I really like theaxis generated by tikz datavisualization with scientific axis=clean. However I can not find a bar graph visualizer in the documentation. Does such a visualizer exist? Or (even better) ...
3
votes
1answer
51 views

hatching table cells fails when using positioning

I'm trying to hatch some table cells by following the code here. It seems to work fine, but then when I change the positioning to \begin{table}[!h] the hatching stops showing up. The correct result ...
2
votes
1answer
106 views

How I can draw a semitransparent gray sphere shell with a hole using TikZ?

I need to represent a gray sphere of radius R with a hollow circle defined by a cone of angle alpha, and I have the cone part but I do not know how to draw the sphere .... I Have this: ...
17
votes
4answers
734 views

Faulty plot of logarithmic function

Trying to plot a log function, \begin{tikzpicture} \draw [->,>=latex] (-2,0) -- (5,0) node [below] {$x$}; \draw [->,>=latex] (0,-3) -- (0,3) node [left] {$y$}; \clip ...
1
vote
1answer
58 views

shift draw to the left

I need to shift the draw a little bit to the left \begin{flushleft} \begin{tikzpicture}[inner sep=7pt,node distance=.8cm,every text node part/.style={align=center}] \tikzstyle{block} = [rectangle, ...
2
votes
1answer
79 views

Problem with my chart in TikZ

Hello I hope somebody can help me. I would like to add arrows to the last two boxes "Prinzip" and "Verstellbarkeit" like the arrows to the other boxes. This is my Tex-Code: \documentclass{article} ...
1
vote
1answer
44 views

Get x and y labels for tikzpicture

I have plotted a scatter diagram with pgfplots: With this code: \begin{figure}[H] \centering \begin{tikzpicture} \pgfplotsset{ticks=none} \begin{axis}[ymin=0, ymax=10.5, ...
1
vote
0answers
53 views

Error in TikZ pgfplots that previously compiled

I'm trying to compile the following code with no luck. The odd thing is that it was working and then suddenly it is no more working (I edited something in the document and upgrade CSV files, but this ...
2
votes
1answer
51 views

How to avoid that stacked bars overlaps error bars?

I have a stacked bar chart with error bars that sometimes dips below the top part, which hides the remaining part of the error bar. (see both blue and red for x=5 and the red for all others). I want ...
0
votes
0answers
49 views

TikZ Animation in beamer class and mathematical formula

I'm using TikZ in documentclass beamer, so far, so good. But now I try to make an animation on one slide during the presentation. Until now, the animation works well (pdflatex and Acrobat Reader as ...
3
votes
1answer
77 views

How to draw a bubble column chart with a legend?

I am very new to plot in Latex, and am trying to piece together a bubble column chart with a legend and labelled axes. So far, I have a working chart, but can only get the legend or a labeled x-axis. ...
2
votes
1answer
43 views

Using titleformat* with tikzpicture (leaving horizontal mode)?

I'd like to use the same code as in Using tikzpagenodes with crop package? - except with \titleformat*, not with \titleformat. Why? Because in the original code I got with the template for my real doc ...
1
vote
0answers
52 views

tikzcd in 2.1 and 3.0

If I have a code written in 2.1 pgf version for tikz-cd and I install the 3.0 version, I could compile that code? I know some syntaxis has change, but maybe the latest version accept both.
1
vote
3answers
50 views

Using tikzpagenodes with crop package?

Using the code from Background margin fill for (first line of) section titles?, I have this MWE: \documentclass[10pt,twoside,openright]{book} \usepackage[ paperwidth=15cm, paperheight=20cm, ...
1
vote
2answers
50 views

Background margin fill for (first line of) section titles?

I'd like some of those "flaps" (how are these really called in typography, actually? Is it "thumb index"?) which is a bit of fill, extending to the margin; so that when you "bend" a book, you can see ...
2
votes
1answer
133 views

Strange defect on TikZ diagram

On one of Beamer slides for my dissertation defense I construct a TikZ diagram, representing my research software's workflow. It works fine with one exception: there is a "defect" on the east side of ...