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.
1
vote
5answers
318 views
Draw an aircraft with Tikz
I want to draw a plane using the Tikz tool.
You will find, attached, a screenshot.
1
vote
1answer
18 views
How to add legend to contour plots?
The following does not work:
\begin{tikzpicture}
\begin{axis}[view={0}{90},legend entries={foo,bar}] % causes compilation error
\addplot3[contour gnuplot={draw color=red,labels=false}] {x*y};
...
3
votes
1answer
93 views
Constructing dag-like diagrams
I want to draw diagrams that look a bit like this. Mathematically, you could describe them as directed acyclic graphs with dangling arcs. They're somewhat reminiscent of route diagrams.
Desired ...
0
votes
1answer
50 views
how to make this circles?
I would like to make in LaTeX these circles.
How can we add the words in them? The color for the big one?
7
votes
1answer
53 views
pdflatex nonstopmode with TikZ stops compiling
I compiled a TikZ code using pdflatex -interaction=nonstopmode. Depending on code errors, compiling stops. I want to know what went wrong. Let me show you two cases, both of which involve a code error ...
3
votes
1answer
48 views
How to color numbers in axis?
I want to color the numbers 3 in blue and -1 in green as show in the picture below.
My code is this :
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
...
1
vote
0answers
49 views
Scale font in TikZ plots
I have a lot (~100) of TikZ plots, autogenerated with a popular matlab script.
I want to resize the font of the plots, because it is currently too large.
I googled a bit, and found some answers (even ...
7
votes
1answer
109 views
Help creating solid cylinders along a path in Tikz for crystal lattice diagram
I am trying to draw a diagram using Tikz that will show the crystalline lattice structure of diamond. It should look like the following illustration (reference).
I have managed to figure out the ...
29
votes
6answers
1k views
Creating gears in TikZ
I am trying to create a gear in TikZ in which the number of spikes can be determined and the size as well. I was looking through the pgfmanual and stumbled upon the decorations section and I tried a ...
3
votes
1answer
85 views
Right Angle Symbol Alignment with TikZ/Calc
I used a solution from @Jake from this post Insertion of Perpendicular Symbol at Intersection of Two Lines, but the alignment is not quite right. I have my suspicions why, but I don't understand the ...
8
votes
3answers
158 views
Parallel lines on a grid and circle best practices?
I am a TeX/LaTeX noob, but I am learning rapidly. I am about to attempt to draw the following figure using LaTeX/TeX/TikZ I already have a, (I think) good working knowledge of how to draw circles, ...
1
vote
2answers
56 views
Calc and \settocdepth break \tikzexternalize
This might well be the strangest TeX behaviour I've ever seen and that's saying a lot. The following really is a MWE as far as the header is concerned:
\documentclass{memoir}
\settocdepth{subsection}
...
0
votes
0answers
46 views
Missing number treated as zero \end{tikzpicture}
I got this error and I try all suggestion in many website, also I canceled some chapter that I got the error from it. but I got another error. Please can any one help me,
this is the text
...
0
votes
0answers
35 views
Write lindenmayer systems/ L-systems in Tikz, documentation? [closed]
I would like to create l-systems with Tikz, and I've noticed that there is a specific library for it ( lindenmayersystems ). Online I've found several examples in tex-code, but I cannot find any ...
6
votes
1answer
580 views
How to generate stem plots with TikZ like stem() in Matlab?
Given a set of (x,y) coordinates stored in a file, how could I generate a stem plot from those coordinates? I would like to achieve something similar as the matlab's stem function: ...
0
votes
0answers
174 views
Title page report with TikZ [closed]
I want to make the front page shown in the attached PDF.
Someone! help me?
6
votes
2answers
104 views
Styling every node without affecting coordinate styles
I am trying to draw a diagram and connect the nodes. Since i want to Place the labels above the lines I use every node/.style={above=.4ex, anchor=base}. However sometimes I draw coordinates at ...
2
votes
1answer
61 views
Text decoration is trimmed off with standalone package
I am decorating an arc with text as shown in this MWE using the standalone class:
\documentclass[10pt,class=article]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
...
4
votes
2answers
79 views
Boxing a number and aligning it vertically along the baseline
I am making a big list of exercises and I'd like to box the number of the exercise at each line.
I found this:
\tikzstyle{square}=[minimum width=0.5cm,
minimum height=0.3cm,
rectangle,
rounded ...
0
votes
1answer
46 views
Where is the pattern list gallery for pgfplots?
Where is the list, or gallery of the patterns available for pgfplots?
3
votes
1answer
38 views
Vertical path to node in TikZ trees
How can I set the path between two specific nodes to "vertical" rather than "direct"?
Currently my tree looks like this:
\begin{tikzpicture}[level distance=1.5cm,
every ...
2
votes
2answers
86 views
'Figure' in tikz makes image move 'forward'
I have a weird problem, whereby if I make my existing tikz picture a 'figure', it suddenly moves forward, as in, past the paragraph that comes after it in the code.
That is, if the code that makes ...
5
votes
1answer
82 views
Circular Arrows and Text on Path
I did some basic tikz figures, but i have absolutely no idea how to do a figure like this:
Each text block should be aligned on a circular path and centered within the arrows.
Could anyone please ...
19
votes
2answers
2k views
Draw a bivariate normal distribution in TikZ
For a small class I want to draw a bivariate normal distribution and show where the means from the two variables meet in the space. Has anyone done this in TikZ?
24
votes
3answers
432 views
How to project text onto a plane?
I'm trying to create the impression that the text "slice" in the example below is written on the cube slice. What is the best solution? To slant the text?
\documentclass{standalone}
...
1
vote
1answer
47 views
Vertical lines in pgfgantt
I'm using the package pgfgantt to create Gantt charts. I've seen that with the "today" key one can have vertical line drawn in the chart. However, only one today key is allowed. How can I have several ...
3
votes
3answers
94 views
Insert text inside a image in eps format
UPDATE:I tried the solution with overpic and it works fine. But the problem is, sometimes, my experimental setup changes and I have to reproduce the eps file using different parameters from Matlab. ...
5
votes
2answers
108 views
Tell TikZ not to draw paths with least one coordinate outside clipping region
Using Paul Gaborit's code for drawing subregions of Penrose tilings, I've created this image:
The code to produce this is:
\documentclass{article}
\usepackage[active,tightpage]{preview}
...
4
votes
2answers
70 views
How to place a symbol under an arrow in Latex when using tikz package
I'm using the tikz package in LaTeX to construct a feedback loop for a control system as a part of a paper on control systems. The problem I'm running into is that I would like to place symbols under ...
4
votes
1answer
90 views
How do I place braces on a line segment?
So I have this code here,
\begin{tikzpicture}
% Draw the axes
\draw [->,black] (-1.5,0) -- (3,0) ;
\draw [->,black] (0,-1.5) -- (0,3) ;
% Draw the line
...
1
vote
0answers
28 views
headlines are not shown with tikz input (plain TeX) [duplicate]
I'm usign plain TeX with custom headlines. If I load Tikz packages with
\input tikz
then headlines are blank. The following are my headlines (some commands don't belong to plain TeX, but I think ...
16
votes
3answers
194 views
Strange behaviour with PGF/TikZ and Plain TeX output routine
I noticed a strange behavior when running PGF/tikZ with pdfTeX on my Debian box :
a simple session without tikz:
pdftex
**\relax
*Hello World
*\bye
do output the page number on the page footer.
On ...
3
votes
1answer
43 views
How can I display tick marks on only one axis of a pgfplots graph?
How can I display tick marks on only one axis of a pgfplots graph?
Here is some simple code to work with:
\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
...
3
votes
2answers
109 views
How can I draw a wave diagram in Tikz/PSTricks
Sorry for the undetailed title, I didn't know what to call this. How can I draw the image below in TiKz or PSTricks?
27
votes
1answer
417 views
Table in the shape of an arrow
Is it possible (and not too difficult) to draw a table in the shape of an arrow? I think it's best explained giving an example:
I'd like to draw a table almost exactly like this. However, the 2nd, ...
6
votes
1answer
83 views
Using nan values in pgfplots
I use addplot to plot a data set which has nan values.
The data file contains 5 columns.
First column is the x-axis (time), the second and fourth is the wavelenght (same element, but 2 measurements) ...
1
vote
1answer
98 views
Disable “clip” and “use as bounding box” in TikZ
Problem
I use a tool which generates TikZ-Code (R with tikzDevice, to be precise). But the generated picture has a wide white border which I want to remove. When I manually (or with a script) remove ...
3
votes
1answer
55 views
PGF's \foreach when list requires completion
Please is there anything I am doing wrong that PGF's \foreach is failing here?
\def\alist{}
\foreach\x in {%
2pt_A,4pt_A,...pt_A,10pt_A
}{%
\xdef\alist{\alist\ifx\alist\@empty\else,\fi\x}%
}
...
6
votes
2answers
45 views
Increasing vertical space between two subpictures
I'd like to increase the distance between the upper pictures and the lower ones (a-c and b-d are too close to eachother). I'm new to tikz and I really don't know where to put my hands on. Thank you.
...
4
votes
3answers
127 views
Adding variables in tikz
I tried looking here for an answer but didn't find anything.
I'm trying to do this (taken from objectmentor.com):
So far, I've got this:
\documentclass{standalone}
\usepackage{tikz}
...
7
votes
2answers
119 views
Create custom node to draw this
I'm very very new to tikz, I've already done this:
With this code:
\documentclass{article}
\usepackage[spanish,es-noquoting]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
...
1
vote
0answers
71 views
Plotting a histogram from a dat file using pgfplot
I want to create a histogram from a dat file with two columns, error and frequency. It also has a large amount of bins, 501.
I have followed instructions provided elsewhere on this site but the data ...
3
votes
3answers
192 views
Drawing system architecture in Latex
I want to draw a system architecture as in the picture below
Can you help me?
0
votes
1answer
62 views
spherical coordinates in tikz 3d
Can we specify direction in spherical coordinates?
I know we can do polar (angle:radius) but what is we are using tikz-3d and want to specify (r, theta, phi) where theta is the azimuthal angle?
2
votes
1answer
55 views
how to centerlize a box in the very center of the paper?
I am trying to draw a box in the center of the current page (A4 size). I try the following code
\documentclass{article}
\usepackage{graphicx}
\usepackage{tikz}
...
0
votes
1answer
47 views
latexmk pointing to a line of code with an error that I don't see [closed]
When trying to compile my code, latexmk keeps hitting me with an undefined control sequences. I have checked above, below, and the line it says is causing the issue, but I don't see anything wrong.
...
0
votes
0answers
38 views
TikZ triming text based on an other node placement
I am using tikz to create a page layout comprising different nodes, each node containing a bit of text.
The nodes are placed relative to each other.
What I would like to achieve is that for some ...
31
votes
2answers
429 views
Draw polarized light
I was trying to draw something like that
Searching through the net to see if it already exists in tikz I came accross in texample.net the following image which looks a lot like what I want to draw.
...
1
vote
0answers
35 views
TikZ rectangle single rounded corner [duplicate]
How to round just one (or two, or three) corners of a TikZ rectangle?
I can only get none or all rounded!
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\node [fill=red, ...
0
votes
2answers
106 views
Color and efficient vector graphics
I want to use complex monocolor vector graphics but I would like to be able to specify the color inside my latex source. Solutions :
Use a pdf, but I can't specify the color afterwards. Perhaps a ...



