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

Separating caption of first figure from top of second figure

I am setting two TikZ subfigures on top of each other by setting 1\textwidth for both subfigures. Now, the caption of the first figure is really close to the top of the second figure. Is there any ...
1
vote
0answers
13 views

Drawing vertical lines on a coordinate plane using Tikz

I am trying to plot the vertical lines x=0 and x=4 using the Tikz environment. What I have thus far is; \begin{tikzpicture}[yscale=1] % 4x4 grid \draw (0, 0) grid (5, 5); % origin point \draw ...
0
votes
0answers
15 views

Are the TikZ libraries cd and external incompatible with one another?

Is there a way to use the TikZ libraries cd and external together? This does not work: \documentclass{article} \usepackage{tikz} \usetikzlibrary{cd, external} \tikzexternalize \begin{document} ...
1
vote
1answer
22 views

Tikz/PGF - Accessing custom anchors in \backgroundpath of custom shape

I'm trying to create a custom TikZ shape consisting of a rectangle with small arrows on the border (representing signal input/output ports). For the most part I can inherit from rectangle but I'm ...
0
votes
0answers
18 views

exsheets \vary with tikz \coordinate

I'm trying to use exsheet's \vary command in a tikzpicture: \documentclass{article} \usepackage{tikz} \usepackage{exsheets} \begin{document} \begin{tikzpicture} \coordinate (point) at (0, ...
4
votes
1answer
52 views

How to “outline” a path in TiKZ?

I have a drawing in TiKZ (of a graph, say) and I want to highlight two paths in the drawing. Is there a way to do that using my already-defined node names, without explicitly making new coordinates? ...
2
votes
2answers
60 views

Filling rectangle in TikZ with more than one color

To draw a rectangle and fill it in gray in TikZ: \draw [fill=gray,very thick] (0,0) rectangle (2,1); Now, I want to fill it in both gray and yellow. The best way would be if I can make diagonal ...
2
votes
1answer
28 views

Showing all the decimal numbers on the y axis clearly in a given chart

I would like to show my y axis as follows: Here is my code: \documentclass[english,12pt]{standalone} \usepackage{tikz} \usetikzlibrary{patterns} \usepackage{pgfplots} \pgfplotsset{compat=1.10} ...
3
votes
1answer
72 views

How to skip ticks in pgfplots plot?

I have frequently the problem that too many data points are available for the x axis, I want to show them all in the actual plot, but I would like to show only a subset of the ticks. For instance, if ...
4
votes
1answer
59 views

Bounding box is larger than expected when drawing in 3D

This is a semi-duplicate of this question I think, but the answers provided there don't seem to work for me with 3D pictures. I'm inputting a tikz picture into a beamer poster, but I think that part ...
3
votes
1answer
18 views

Adding “text-block” to \sbBloc

I'm all new to TiKz and the schemabloc package. What I'd like to know is two things; (1) how to add a "text-block" to a \sbBloc like in the image below (this is the image I'm trying to copy) and (2) ...
3
votes
0answers
51 views

Pgfplots : Shadow in bar chart with restricted domain

I have a following code which plots a pgf bar plot for me. I am able to add shadow to one of the bar plot. However, the other plot which has a broken y bars, I am unable to add the shadow, because ...
2
votes
1answer
67 views

Layered graph with variable number of nodes on each layer

I have created some Tikz code to product he diagram below (slightly simplified). This is my first real shot at Tikz and its taken me about 8 hours now to get this far. But I don't really begrudge the ...
10
votes
3answers
436 views

Draw arrow in picture

\documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}% \usepackage{lmodern} \usepackage[nomarginpar, textwidth = 16cm]{geometry} ...
8
votes
1answer
139 views

This elliptical-orbit diagram compiled fine with TikZ 2.10 but fails with TikZ 3.0. Why?

I borrowed some code on Kepler's 2nd Law from the linked post here on TeX answered by Tosco. I haven't compiled the document it is in awhile but needed today. When I did, I was told dimension too ...
1
vote
1answer
56 views

Simple vertical text in TikZ

How do we write this title vertically in TikZ - similar to vertical text (not in table)?: T T I H T I I M L S S Y E
0
votes
0answers
7 views

Skipping ticks in pgfplots plot [duplicate]

I have frequently the problem that too many data points are available for the x axis, I want to show them all in the actual plot, but I would like to show only a subset of the ticks. For instance, if ...
4
votes
1answer
148 views

How to draw a timeline?

How to draw something like this?
4
votes
2answers
51 views

Text Wrapping in tikz node doesn't work

I would like have a few fixed nodes of size 1cm x 1cm. However, the text inside these nodes should wrap around. I used the following questions help to figure out about wrapping text. However it ...
2
votes
1answer
44 views

Labelling edges drawn by the draw to command

consider the following code: \documentclass{article} \usepackage[version=0.96]{pgf} \usepackage{tikz} \usetikzlibrary{arrows,shapes,automata,petri} \tikzset{ place/.style={ circle, ...
3
votes
2answers
82 views

Draw circle perpendicular to line

I was trying to create a circumference perpendicular to a line similar to this but I only see a tutorial for creating in a axis-plane (xy, xz, yz) \documentclass[tikz, border=15mm]{standalone} ...
7
votes
1answer
102 views

TikZ: inverted cone (similar to linked thread but different issue)

How to draw a simple cone with height and radius with TikZ? In the above thread, a cone was created. However, if I invert the cone, the lines from the origin to the cone edges cuts through the cone. ...
2
votes
0answers
33 views

Problem with pgf library in TexLive

I am using TexLive, and I am writing a paper with someone else. He has sent me all of his files. He uses tikz to draw commutative diagrams. I am trying to compile his files, but I get an undefined ...
4
votes
1answer
40 views

TikZ: issue with lines in foreach loop

\documentclass[tikz]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (h) at (0, 3); \coordinate (O) at (0, 0); \draw (O) -- +(-3, 0); \draw[-latex] (O) -- ...
0
votes
0answers
33 views

TikZ/pgfplots - are there any problems related to externalized figures used on Linux and Windows?

I share a document between Win 7 and Xubuntu 13.10. I just updated my local git repo on my Xubuntu 13.10 installation. I then continued editing in a TikZ figure (not only its style definitions!) but ...
3
votes
1answer
33 views

Would like a mdframed environment style with framed title box inset above without fill

Here's a slight tweak to one of the mdframed examples that produces a framed title inset above the theorem box \documentclass{article} \usepackage{amsmath} %\usepackage{svgcolor} ...
7
votes
1answer
50 views

How to make a dynamic comment box next to \address cluster?

I'm sure you're aware what \address{blah} is. Well, I'd like to make a boxed comment that's just as high as my address and stretches from the left margin of the document to 3cm to the left of the ...
8
votes
1answer
151 views

Increments in \foreach loop with two variables, TikZ

I'm trying to draw a stack of arrows at different angles in a \foreach loop in TikZ. I don't want to have to declare every z coordinate and angle manually so I was using the {1,2,...,10} syntax but ...
4
votes
1answer
62 views

Resize tikzfigure in tcolorbox depending on height of tcolorbox

in my book I got many different type of boxes so I made some macros placing the boxes automatically according to their arguments. That's one of them. So far I made some boxes that have big "+" and ...
3
votes
0answers
35 views

Function not plotted between 0 and 1 [duplicate]

When I am trying to plot the function x^0.5 / ( x^0.5 + 10^0.5 ), the plot will only start at x=1 but not at x=0. See the following MWE: \documentclass{article} \usepackage{tikz} ...
0
votes
0answers
59 views

Draw Block Diagram and Flow Chart Diagram [on hold]

I am new to tex writing and not experiencing with drawing different diagrams. Tell me please that which packages I must use and how I can execute my code. Help me also with links, in which basic of ...
5
votes
2answers
670 views

Drawing SPACE-TIME in LaTeX!

I am creating an article in LaTeX and would like to include an topological image of space-time. I have attached an image of what I am imagining. Any clue how to go about making this? I have been told ...
3
votes
1answer
51 views

tikz : edge loop and rotate

Here is my example : \documentclass{standalone} \usepackage{tikz} \def\test#1{\node[circle,draw](#1) at (0,0) {#1}; \draw[->] (#1) edge[in=40,out=-40,loop] ();} \begin{document} ...
2
votes
0answers
41 views

“Text along path” decorations take absurdly long to be compiled for non-default font sizes

I'm trying to use a text along path decoration in tikz-pgf which causes absurd loading times, sometimes far longer than an hour if I want to print a whopping two (!!) words in for example \large font ...
1
vote
0answers
90 views

Drawing a mesh heart in TikZ

I would like to reproduce the figure created with Matlab here, using TikZ. However, I'm very inexperienced with TikZ, and anything more than just drawing lines is beyond my abilities. Could anyone ...
7
votes
2answers
113 views

Placing tikz objects after a nonlinear transformation

I'm trying to place certain objects on my page. Normally you can use the shift argument to place the object at a set of coordinates, or even current page. None of that seems functional with the ...
5
votes
3answers
262 views

How to create simple funnel in LaTeX?

I have a problem trying to create a simple funnel, as it can be seen on the attached file: I have tried to look at the internet, trying to write the lines, but it won't work. I am using TikZ. The ...
6
votes
2answers
118 views

TikZ: Relative positioning of nodes

I am working on script to build chart depending on the input data and one of the troubles is to place node right of the rightest node. This is MWE: \documentclass[border=.5cm]{standalone} ...
5
votes
1answer
81 views

Reuse tikz picture in another tikz picture [duplicate]

I have a TikZ picture \begin{tikzpicture}[scale=0.5] \draw (-1,0) arc (180:360:1cm and 0.5cm); \draw[dashed] (-1,0) arc (180:0:1cm and 0.5cm); \draw (0,1) arc (90:270:0.5cm and 1cm); \draw[dashed] ...
6
votes
1answer
75 views

How to use i.e. left, middle and right color when using draw as an argument instead of a command?

I'm forced to define colors within my tikzset for one of my projects. This requires me to use the draw command within my tikzset to set a color. Normally I can just use, say \draw command to just ...
8
votes
2answers
149 views

How to draw a simple cone with height and radius with TikZ?

I need to make a very simple cone with h and r (like the picture I've uploaded as example) and I can't find it in previous questions.
4
votes
1answer
147 views

How to draw up this hierarchical diagram?(Or similar way)

I Would like to know how to draw this diagram or similar. Thx. I have started to use LaTeX just a few weeks to try pass a .doc to .tex, but I don't know how do this image. I tried use one exemple to ...
1
vote
1answer
106 views

Plotting an arbitrary function in latex [on hold]

I would like to know how I can replicate the diagram below in latex. thanks. Edit: I can plot a function using tikz/pgfplots if I know how the function is defined. Unfortunately, I don't know how ...
6
votes
1answer
94 views

Draw a rectangle behind tcolorbox

I'd like to draw a rounded rectangle behind an existing tcolorbox. The result should look like this: That's what I've got so far: \documentclass{book} \usepackage[many]{tcolorbox} ...
3
votes
1answer
44 views

Tikz overrides one of my defined colors when I use left color, middle color and right color, how to fix this?

So I want to gradually change colours across the double arrow from white, to olive, to green. How to stop tikz from overriding my middle color? \documentclass[landscape]{article} ...
3
votes
1answer
73 views

How to align a “double arrow” with a tikz arc shape?

I want to align the double arrow shape in the tikz package with an arc, like this one: \documentclass[landscape]{article} \usepackage[a2paper]{geometry} \usepackage{tikz} ...
6
votes
2answers
124 views

How to rewrite this command using \newenvironment?

I once defined a customized latex command, which works well. And now I would like to convert it into a latex environment using \newenvironment command. However, I failed after trying several ways. ...
2
votes
2answers
102 views

Draw block diagram with a switch

I'm trying to draw a simple block diagram that looks like this: schemabloc seems to be the package to use, but then again, it doesn't have the switch symbol that I need. circuitikz doesn't seem to ...
1
vote
1answer
44 views

How to start a curvilinear bezier curve at a specific point?

I'm currently fiddling around with the pgf library curvilinear. What I want to do is make a shape bending like the shape of a grid, a grid very similar to this one: Canvas transformation of grid to ...
3
votes
1answer
68 views

How to crop my page to the size of tikz graph

I want to crop the page to exactly fit the tikz graph in it. When i used standalone document class, all the page content became on one line. Here is my code \documentclass{standalone} ...