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
79 views

tikz node position

I have a diamond split in four triangles and I would like to write inside each triangle at it center and having difficulties with position. Please help me fix that problem.Thanks ...
7
votes
2answers
153 views

Vertically align nodes in tikz graph

I have taken to drawing automata in TikZ, as it will position the nodes for me, and generally requires very little post-processing in terms of options. I know I can force nodes to be in the same ...
3
votes
2answers
94 views

Aligning flowchart with tikz

I'm working on some flowcharts for a programming course and have an alignment issue with one of them. Usually lines in a flowchart are directed from one symbol to another. However, I want the line to ...
2
votes
1answer
51 views

Is it possible to assign to two extra x-tick labels different colors?

I think the question says it all. I'd like to have two extra x tick labels with different colors. I thought of using a cycle command, but I couldn't figure out how it should work. I changed the color ...
5
votes
1answer
129 views

Convert PSTricks to TikZ

I use pstricks for all my graphics. Now I am submitting a paper to a conference which, unfortunately, does not allow to use PostScript. I have to send them tex source, which they compile with ...
3
votes
2answers
114 views

adding a coloured-box in flowchart

I am trying to make a flowchart in Latex, I want to put some of steps in a coloured box with a label, e.g. Deterministic Annealing, I added scope part but it doesn't compile with the new change. ...
6
votes
1answer
291 views

Latex code for patch simulation

I am trying to code the above picture. This is my current code, but it does not look like the intended figure: \begin{tikzpicture} \draw[thick,->] (0,0) -- (8.5,0); \draw[thick,->] (0,0) -- ...
2
votes
1answer
54 views

Positioning of a (newly defined) symbol *relative* to a textbox

I defined a set of chevrons with tikz (see below) and would like to be able to put them at the boundary of a rectangle (text box). As you can see, the code below does this, but with absolute ...
3
votes
1answer
60 views

Multipart graph with linear and circular node patterns

I'm trying to draw a graph (PDF output of code below attached) that's a linear process, with a potentially circular element in it. As you may see in the upper picture, the the B,C,D elements aren't ...
1
vote
3answers
144 views

Drawing tools regarding

I am using TikZ to draw pictures... Here i will give one of my drawing. I thing i used here is so lengthy. So is there any simple way of drawing this? \begin{document}\begin{center} ...
3
votes
0answers
45 views

Horizontal extent of tikz picture: Why is it being truncated?

Here's my code: \documentclass[border=2pt]{standalone} \usepackage{pgfplots} \begin{document} \[ \begin{tikzpicture} [scale=1] \begin{axis}[ axis x line = center, axis y ...
1
vote
1answer
46 views

Inline alignment of tikz graphic

How it should look like I want to achieve the following result using TikZ. The graphic should be aligned to the right of the text body and to the top of the line's text it is placed in. Besides, ...
22
votes
3answers
868 views

Tracing a border formed by circles

Suppose I have some code that draws a few circles. These circles overlap each other in such a way that they form one "group" -- there are no groups of circles completely separated from the rest. For ...
0
votes
0answers
37 views

I have 3 data series and 2 different y-axis. How can I add, outside the graph, the legend for each of three series?

Does someone know how can i change the position of my legend to right-side of my graph? I try many things but i can't. Please give me some help! Here is my code! \resizebox{\textwidth}{!}{ ...
2
votes
0answers
28 views

Missaligned tikz matrix [duplicate]

I'm trying to create a matrix of nodes that I will then use as a grid for overlaying my real nodes on top of it, but for some reason the grid appears misaligned once I overlay something on top of it, ...
0
votes
0answers
72 views

Cartesian Coordinate System In TikZ VS Pstricks

I have been using pstricks to add cartesian coordinates to my exam document class structures for years. But, now I have switched to a Macbook air and I am using Texpad. The newsiest version of Texpad ...
1
vote
2answers
91 views

tikz package for drawing thermodynamic cycles

Is there a extension of tikz library that allows one to draw thermodynamic cycles easily? For example the picture you see in the link: ...
2
votes
1answer
93 views

TikZ and compatibility of PGF

Reading several posts I understand that TikZ does not support the newer PGF library. How do I downgrade PGF to the last supported version? Are packages other than TikZ become non-compatible by this ...
1
vote
1answer
41 views

Alternating layout for every odd and even page (tikz frame with text in a flowframe)

\documentclass{article} \usepackage{geometry} \usepackage{fontspec} \usepackage{flowfram} \usepackage{tikz} \usepackage{ifthen} \usepackage{changepage} \usepackage{ifoddpage} \usepackage{lipsum} ...
3
votes
1answer
46 views

How to incorporate tikz elements into latex labels without (xe)latex apparently hanging

I am very new to TeX, and having seen the fantastic wine label examples I thought I would see what I could come up with for some homebrew which is ready to bottle. I've got some Avery labels (MD4001, ...
3
votes
3answers
128 views

Tikz-Create a Picture Legend

I am trying to create a legend inside a tikzpicture. The picture shows an accelerator and I would like to make a legend that will explain each part. My code is \documentclass{standalone} ...
0
votes
1answer
88 views

Drawing a gameboard

I desperately need help drawing a board for a board game which looks like the one in the picture or an even better one. The corners could be made to look more appealing visually.
2
votes
4answers
203 views

Plotting several functions with TikZ/pgf

How do I plot several functions in Latex with tikz? I want it to look something like this: With the this code: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} % GNUPLOT ...
5
votes
2answers
239 views

Graphing an exponential function and its inverse on the same Cartesian plane

I would like to graph an exponential function and its inverse on the same Cartesian plane using TikZ (or pgfplots). I have code using TikZ. Apparently, there is an error in the \addplot command. I ...
1
vote
0answers
52 views

This small TikZ example does not work because of “x axis={include value=0}” [closed]

Here is a small example of TikZ plotting: \documentclass[10pt,a4paper]{article} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{datavisualization} \begin{document} \begin{figure}[h!] ...
3
votes
1answer
76 views

Add tikz styled Summary heading

As per MWE, I currently use two kinds of section header bars: a rounded grey bar for ordinary unnumbered sections ('osections' in MWE) and a 'Topic N', for numbered sections (where N=section number) ...
3
votes
3answers
875 views

How should I start with this image?

I have an old image with ppt style and I would like to customise it a bit. Main problem is I'm a beginner in Tikz/PGF and i really don't know where to start and which environments I should use. If ...
0
votes
0answers
37 views

Using tikz or pgfplots with plasTeX

I'm using plastex to convert LaTeX files to xml code. Is there any way to use tikz or pgfplots with plastex? plastex example1.tex compiles fine: %example1.tex \documentclass{article} ...
3
votes
0answers
50 views

Reduce number of input files for group plot in pgfplots [duplicate]

In the pgfplots groupplot below, I have three sets of data represented by data1, data2 and data3. Each of the data have three subtypes. And I need to plot a graph for each of the subtype. The file ...
2
votes
1answer
90 views

How to define a special tikz node?

I want to define a special tikz node, that I'll use that way: \specialNode[name=mynode, label=mylabel, otherTikzOptions...] (node_name) at (some_coordinate); And gets coverted to: \node[circle, ...
1
vote
3answers
256 views

How to create a 32 by 32 grid?

I want to create a 32 by 32 grid as shown below. And I also want to add two labeling in x and y directions. 1) 0 - 31 (grid number) 2) 0- 1 (box unit) I a next slide I have to draw a new box ...
5
votes
1answer
59 views

Adding node to last coordinate

I have a loglog plot and would like to highlight the last coordinate. For example \begin{tikzpicture} \begin{loglogaxis}[] \addplot+[] coordinates{(0,0) (2,20) (3,100) (4,4000)}; \end{loglogaxis} ...
2
votes
1answer
74 views

How to Place 2 TikZ Plots Side by Side

I'm working on something that involves placing plot sketches side by side. The trouble is, even though I begin the next picture on the same line as the previous one ends, it doesn't look nice: ...
1
vote
1answer
55 views

TikZ bounding box too big

I'm fairly new to LaTeX and I'm trying to make a homework template that uses figures generated in LaTeX but when I use TikZ I get a bounding box that is way too large. What is the easiest way to ...
1
vote
1answer
50 views

TikZ Issue With Function Plotting

I am trying to create this simple TikZ plot of a quadratic function. But the code does not compile, and the error is detected at the part where I introduce the function. What is wrong with it? ...
3
votes
0answers
35 views

Tikz, Tangent Line to a Circle [duplicate]

Why is the tangent not really horizontal? \documentclass{article} \usepackage{tikz} \usepackage{circuitikz} \usepackage{pst-solides3d} \usetikzlibrary{shapes,decorations} ...
14
votes
3answers
621 views

How to draw the following box using TikZ?

How to draw the following box using TikZ?
2
votes
1answer
84 views

Path shaded perpendicular to its direction

Is ist possible to apply a shading to a path perpendicular to it's current tangent. I want to draw some kind of 3d-pipe. My question is related to this question. I want to draw 3d-molecules and I am ...
4
votes
1answer
86 views

How do I set only one side of a tikz node's border color?

I want to have a node with different border colors: One for the upper and left border, one for the lower and right color. The result should look like this: Is this possible? From all examples I ...
1
vote
2answers
47 views

Labels that are parallel with edges of a triangle

The following code is compiled to give a right triangle. The labels for the lengths of the legs and hypotenuse are present and "sloped." I would like them to be outside the triangle. ...
4
votes
1answer
59 views

Changing axes' origin adds weird whitespace

I would like to display points in a Tikz picture, whose y components are all negative. That is per se no problem, but I want the y axis to be a bit higher than the x axis to emphasize the negative ...
4
votes
3answers
142 views

Drawing a curve in Tikz

I would like to redraw the following graph on latex. I can make the grids but cannot reproduce the graph correctly. Any ideas on how to reproduce the curved line?
3
votes
1answer
57 views

How can a style applied to a given node be inherited by all descendants of that node?

I'm using the graphs TikZ library to draw directed acyclic graphs. When I apply a particular style to a given node, I would like that style to be inherited by all descendants of the node in question. ...
2
votes
1answer
65 views

Tikz/Forest: highlighting level background

I am using the Forest package and I am trying to paint a gray background for odd and even rows, as well as a label. I already had a version of this diagram that I wrote "manually" with tikz. But it ...
2
votes
1answer
49 views

h- and v- phantom a tikzpicture

I try to hide a tikzpicture : Depending on a boolean, I want to see or not the tikzpicures of a document (show them on display, but hide them on paper) in order to students draw them. The hidden ...
3
votes
1answer
57 views

Erratic behaviour with TikZ … \foreach

I am using TeXShop v 2.47 on a MAC (OSX 10.6.8) and trying to learn TikZ; which is very powerful but not the easiest package to get to master. I have been getting very strange behaviour with the ...
5
votes
1answer
67 views

Understanding TikZ border anchor

Consider the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node(a)[rectangle,draw,minimum size=3cm]{}; \node ...
1
vote
1answer
56 views

Draw curved lines with arrow in LaTeX (TikZ)

I need to write a paper and include some graphics. The image I want to include by TikZ is the one on the link. The idee is to draw three curved lines, en put in the middle an arrow (the directions in ...
3
votes
0answers
65 views

how to draw plate indices in graphical model by tikz

I made my Hierarchical model with tikz by following code: ‎‎\documentclass[10pt,a4paper]{article}‎ ‎\usepackage[utf8]{inputenc}‎ ‎\usepackage{amsmath}‎ ‎\usepackage{amsfonts}‎ ‎\usepackage{amssymb}‎ ...
1
vote
2answers
59 views

Interval of x tick labels are to close

I have some trouble with the interval of the x tick labels. I have two much labels so the text overlap each other. My code is following: \begin{figure} \begin{tikzpicture} \begin{axis}[ ...