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
1answer
26 views

my centering command does not work! why?

I am going to plot a bar histogram using the following command: \documentclass[a4paper]{report}‎ \usepackage{pgfplots}‎ \pgfplotsset{compat=newest}‎ \begin{document}‎ \begin{tikzpicture}‎ \centering‎ ...
4
votes
0answers
33 views

How can I force the pin angle in a TikZ data visualization?

Please note that I am not using the pin option of a node as in How can I force TikZ pin angle? and TikZ node pin angle in 2D plot, but am instead using the pin in data option in a TikZ data ...
3
votes
3answers
47 views

vco lowpass etc. don't work. Circuitikz

How come that circuitikz does not give me the vco I intend to build? See this code: \documentclass[tikz, border=10pt, 12pt]{standalone} \usepackage{circuitikz} \usepackage{verbatim} ...
1
vote
1answer
36 views

How to draw specific shapes for input and output message like Tikz ones?

In an algorithmic representation (i have been helped for that a few months ago, thanks to tex.stackexchange !), I would like to use 2 spécific symbols for input and output data : Here is the actual ...
2
votes
0answers
60 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
1answer
22 views

Why does including brackets in a TikZ datavisualization label give me an error?

My questions concerns the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{datavisualization} \usetikzlibrary{datavisualization.formats.functions} \begin{document} ...
3
votes
1answer
153 views

I need some hints on how to draw this figure

This is the figure I hope to draw in Tikz. I need to draw 4 components. Two Banana-like objects facing each other. Two curves with a certain curvature connecting the two Banana-like objects A ...
2
votes
0answers
44 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
53 views

Error in GeoGebra-Generated Tikz Code [on hold]

I used GeoGebra 5.0.0 to draw a diagram consisting of a few points, lines, and circles inverted in a circle (it's called `reflection in a circle' in GeoGebra). I then exported the graphics view to ...
2
votes
1answer
55 views

Split nodes (again)

Using an idea posted here I'd like to draw a graph of vertices and edges using some split circular nodes (and colored differently). Unfortunately the edges are not ending nicely. It would also be ...
2
votes
1answer
24 views

Adding a legend with connector to a picture with overpic and tikz lead to a misspositioning of the bottom left corner of the tikz picture box

I try desperately to make a macro which allows me to simply add a circled number with connector on a figure. To do that, I try to use into the command \put of overpic a tikz function which makes the ...
0
votes
1answer
38 views

Can TikZ be used in a caption block?

I want to get the following effect: I wrote the code show below, but itt cannot be compiled. I don't know what is wrong with it, or how to get the effect of Figure 1. What should I do? ...
1
vote
1answer
41 views

Is it possible to use TikZ shading with XeLaTeX? [duplicate]

When adding the second solution to this answer, I initially tried to compile with XeLaTeX so that I could use fontspec. However, that didn't work, although compiling with LuaLaTeX did. I've now ...
2
votes
1answer
65 views

Coordinate System in Tikz with plottet with one equation

I would like to have this coordinate system (with numbers on the axes): I know how to make it in Tikz; but the numbers on the axes are missing and I would like to add a plot: ...
3
votes
0answers
54 views

Pgfplots Boxplots with a thick line at the mean value

pgfplot produces nice looking plots, that have consistent look and feel. But sometimes you have a good reason to change that look, and I found it tricky to change style of an specific line, circle, ...
3
votes
1answer
32 views

Tikz and ctable incompatibility, gives error when printing

When I print a report I get an error: An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem ...
2
votes
1answer
46 views

linking a dot and a triangle

I am trying to link a triangle and a dot but I couldn't figure it how to do it. here is followed by the image of what I get: \documentclass[border=3mm]{standalone} \usepackage{etex} ...
2
votes
0answers
52 views

rotate around and calc [duplicate]

I found a strange problem in my tikz picture. I use calc library to draw a line, and rotate this line with some angle, but I find I cannot specify its rotate center point. In other words, the rotation ...
2
votes
1answer
142 views

How can I draw the integers with labels?

I want to draw a representation of the integers with numbers below the marks. So far my code is this: \begin{tikzpicture} \foreach \x in {-5,-4,-3,-2,-1,0,1,2,3,4,5} ...
11
votes
2answers
144 views

LaTeX figure, how to make it?

I want to draw this figure in LaTeX but I failed. Here is what I get from my code. Could you help me please? There is my code. Thank you. \documentclass[11pt, letterpaper]{article} ...
2
votes
0answers
202 views

How to make the beautiful Thesis Time Schedule in LaTeX? [on hold]

I want to make the Time Schedule in LaTeX but it's not working properly. First I want to make the atleast three rectanuglar boxes and when in TASK row I start writing full picture forward. So need ...
4
votes
0answers
174 views

Batman Equation in LaTeX

Based on the answer from Gonzalo Medina, the Batman Equation in LaTeX is nearly finished. \documentclass[border=10pt, tikz]{standalone} \usepackage{pgfplots} \usetikzlibrary{arrows} \tikzset{ ...
4
votes
3answers
64 views

avoid overlapping between line label and nodes

I'm using tikz to draw a info flow diagram which contains a few long labels. What I get is unacceptably ugly, mainly resulting from various overlapping between labels and shapes. Ideally, I want the ...
3
votes
2answers
58 views

Creating a new command for commutative squares

I'm trying to define a command having as inputs the vertices and arrows of a commutative square. But I'm having problems. Here's the code: \newcommand{\csq}[8]{ \begin{tikzcd} #1 \arrow{r}{#5} ...
2
votes
1answer
40 views

Filling in with pgfplots and draw

I created the following polygon: \tikz \draw[very thick,name path=A] (0,15) to [out=0,in=270] (15,30); \draw[very thick, name path=B] (0,15) to [out=0,in=90] (15,0); \draw[very thick,name path=C] ...
5
votes
2answers
255 views

Drawing a circular arc between two rays

I have two rays drawn with a common endpoint at A. I mark a point 3/7 of the way from A to the end of one of the rays, and label it P. I want to draw a circular arc centered at A through P between ...
3
votes
3answers
102 views

Diagram of a charged particle in motion in an E- and B-field

I need help with some vector in Tikz. I don't know how to put the place the angle between B and v! It should look like this (without the fat yellow q+ bobble): Here is what I have tried: ...
0
votes
3answers
79 views

TikZ draw objects with fields

How can I draw using TikZ (or other libraries) something like this:
1
vote
2answers
21 views

Problem with Tikzpicture and \matrix

I need to write two words in each node for a tikzpicture. The probles is that the words are not displayed correctly [see the code below]: I want to write the two words inside a single node (e.g., ...
-1
votes
1answer
69 views

Spiral around cylinder [duplicate]

i want to draw a spiral around cylinder. Can you help me? something like that http://www.unitmath.com/um/p/Examples/GeometricSolids/Spiral.gif Thank you very much.
1
vote
0answers
43 views

pgf/TikZ: environment pgfinterruptclipping?

Is it possible to interrupt clipping? In other words: Does anything similar to the pgfinterruptboundingbox environment exist? I tried it with the pgfinterruptpath environment and am a bit surprised ...
7
votes
1answer
63 views

Static labels on rotating arrows in TikZ

Update after answer: After employing the very helpful answer below, my animation now looks like this, and all labels are "glued" in place. Thank you very much!* Original question: I have the ...
2
votes
0answers
23 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 ...
10
votes
2answers
398 views

Esperanto flag in Tikz?

I have this code: \documentclass{standalone} \usepackage[html]{xcolor} \usepackage{tikz} \definecolor{verda}{HTML}{009900} \definecolor{blanka}{HTML}{FFFFFF} \begin{document} \begin{tikzpicture} ...
4
votes
1answer
95 views

Font color is always black in mdframed

When building the MWE below in Linux (Centos, TeXLive 2013, mdframed=1.9b,2013/07/01) I get the expected red text on pale yellow inside red rounded rectangle in the body, and red on full yellow in the ...
0
votes
2answers
95 views

Find cylinder tangent in 3D

I am trying to draw a complicated form that is loosely based on a half cylinder. I am using tikz-3dplot to be able to accurately draw arcs in planes other than the xy-plane and to nicely set the ...
3
votes
2answers
112 views

Marking angles in a parallelogram congruent using TikZ

The following code is compiled to display a parallelogram with opposite sides marked with "|" and "||" to indicate congruence. I would like to mark the eight angles at the vertices similarly. I want ...
5
votes
1answer
39 views

Why does \renewcommand not overwrite \includegraphics from tikzscale?

I have the following tex code \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{tikz} \usepackage{tikzscale} \usepackage{filecontents} \usepackage{graphicx} ...
0
votes
0answers
26 views

How to modify pattern of dashed line to not start/end with a space? [duplicate]

How can I force the pattern of a dashed line to be shifted/modified in such way that it does not start/end with a space? Simple example: \documentclass{article} \usepackage{tikz} \begin{document} ...
1
vote
1answer
25 views

Tikz: axis overlays markers

I am creating a simple graph having plots with markings. I use the decorations.markings library to create markers with a uniform distance between them. However, the markers close to the borders of the ...
1
vote
2answers
99 views

How to increase resolution of a picture in tikz?

While trying to draw a parabola in tikz I used Geogebra. But the resolution of the picture is doesn't come out to be that great as is the case in using directly tikz. The code that Geogebra generated ...
3
votes
1answer
46 views

How to draw dashed horizontal line in sequence diagram using pgf-umlsd?

I am drawing a sequence diagram using Tikz. I first tried tikz-uml, but it has some issues which I asked about in another question. I am now trying out pgf-umlsd, but it lacks the support for the ...
6
votes
0answers
94 views

HowTo: Tikz 3d Plot of an object

Hi I have problem with plotting an integration area. In the x-y-plane the area ist bounded by the polynoms 3x^2-1 and 3-x^2. In z-direction there are the limits z=0 and z=4-x-y. Now I want to plot the ...
1
vote
0answers
32 views

Tikz-UML sequence diagram: how to extend lifeline and shrink vertical space before \umlfpart?

I am using Tikz UML to create a sequence diagram. How can I extend the lifeline of c:C and d:D to match the lifeline length of b:B? And how can I shrink the vertical space before the dashed line ...
3
votes
2answers
270 views

Tikz television screen

I've tried to improve my Tikz skills - I've tried to make a simple figure. I wanted to try the foreach function out. But I have some trouble with the arranging of the blocks. Here is the code: ...
3
votes
2answers
140 views

PSTricks equivalent to TikZ

Is there a way to make the grid in \psgrid look the same as the one in the tikzpicture? \documentclass[12pt,pstricks]{exam} \usepackage{tikz} \usepackage{pst-all} \begin{document} \psset{unit=0.5cm} ...
1
vote
1answer
60 views

How to fit a Tikz picture into a tabularx cell?

I am trying to put a Tikz picture into a cell of a tabularx. The problem is that it doesn't fit in my cell. Here is the code : \documentclass[10pt,a4paper]{article} \usepackage[utf8x]{inputenc} ...
4
votes
1answer
73 views

What is the easiest way to draw a graph with asymptotes using TikZ?

I have a graph with some extra graphics on it: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ declare function={ f(\x) = 4/(1+pow(\x/5, 2)); }] % partitions ...
5
votes
1answer
90 views

Draw zipf curve and luhn cuts with tikz

I'd like to draw a picture in latex, like the image below. I've tried to study the pgfmanual, but i couldn't figure out how to do it. Can anyone help me, please? ...
1
vote
0answers
46 views

\RequirePackage{tikz} in dissertation .cls file

I'm trying to edit the standard .cls file provided by my university towards dissertations to include TikZ pictures. I tried adding \RequirePackage{tikz} in the class file and separately, adding ...