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)

0
votes
0answers
5 views

Create circuit using circuittex?

I don't know how to create circuit like the image in the attachment, please help me and thank you.
2
votes
0answers
8 views

Setting global styles for elements in tkz-euclide

Is is possible to set global styles for elements when using tkz-euclide? (I have a document with many tkz figures in it and I want to be able to set different styles for different groups of lines, ...
0
votes
0answers
42 views

Drawing curves with nodes

I can use tikz for drawing graphs with straight edges or a few curved ones (for flowcharts). But now I need to draw the following graphs (and many more complicated versions of these). How do I do ...
1
vote
3answers
71 views

Scenario Trees for Prob

Would appreciate if anyone help me draw this network? Thank you in advance.
0
votes
1answer
23 views

Ignore \pause (from tikz) in scrartcl

I'm bulding up a beamer presentation and an article. Therefore I have to create some figures which are used in both files. So I created an additional .tex file for each figure which I include in every ...
1
vote
1answer
22 views

Text added after and outside the tikzpicture environment lies on top of the image

I have added a rectangle using the tikzpicture environment. But whatever text is added after and outside the environment lies on top of the image. I've been searching for a solution but haven't come ...
7
votes
3answers
113 views

Tikzpicture curvature in path issue

I have written the following code: \begin{tikzpicture} \draw[->] (-1,0) to node [auto]{$f$} (1,0); \draw (-5,-1) node(0)[label=below:{$v_0$}, circle,fill=black,scale=0.3]{}; \draw (-2,-1) ...
2
votes
0answers
37 views

Help with Help Lines

I am plotting lattice paths to two points. I would like to have help lines drawn on top of the Cartesian plane so that any line that is an integral distance from an axis is a solid line and any line ...
2
votes
1answer
42 views

Infographic - need help!

Infographics enable us to communicate incredibly large sets of data in a way that is interesting, meaningful, and engaging to others. I have been trying to create a simple Infographic with TeX - ...
0
votes
1answer
26 views

Align axes across subfigures

How can I align the y axes of subsequent subfigures horizontally? Like in this test case: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepackage{subcaption} \begin{document} ...
1
vote
1answer
32 views

how to save and reuse values between two tikz pictures

I have two pictures in the first, I calculate the angle of a vector, I wish reuse this value in the second figure. How can I save this value from one figure to another. The first picture ...
1
vote
0answers
28 views

TikZ align nodes with different heights

iam trying to make a treeview with tikz of the different hazards modes that exist with lithium-ion batteries. now i have the problem that some nodes have a text with two lines and then it doesn't look ...
1
vote
0answers
34 views

Automatically Diagram Pointer Structure with TikZ

Suppose one has a program with many data objects that have pointers to other objects. How could one use TikZ to automatically draw a diagram of the pointer structure? I'm thinking of outputting the ...
0
votes
0answers
18 views

External TikZ and eskdx issue

I am trying to make TikZ externalization and I have an issue that draws eskdx page frame on every external plot. Here are a minimal example that reproduces this problem ...
1
vote
4answers
83 views

How to draw a circular and a spiral line between to vectors

I'd like to do the next graph: (Sorry for my terrible draw!) I pretend the red line to be a dashed black spiral line, and I'd like the blue line to be a dashed black circular line. What I've got ...
7
votes
1answer
165 views

Simple drawing with TikZ

Let's me begin by saying that I am a complete newbie. I have been trying to draw te following image but didn't get very far: The following is what I have so far: ...
4
votes
1answer
33 views

Line is not centered between edges of nodes

I have this small tree and I want to draw a line between the edges from node A to node B. \begin{tikzpicture}[scale=0.8, level distance=1.5cm, every node/.style={draw, thick, rectangle, minimum ...
2
votes
1answer
36 views

Plot groups of stacked bars

I am using the following code to draw a bar graph with groups. But I'd also like to subdivide some of the bars, shading in at the bottom. So for example, I'd like the leftmost bar to have up until ...
6
votes
3answers
80 views

Imposition for an 8 page booklet using pgfpages

I want to prepare an 8 page booklet by imposing the 8 pages, four at a time on a larger sheet of paper. The front side will look like this: and the back will look like this: When printed ...
2
votes
1answer
32 views

Object juxtaposition by path command in TikZ

Here is my successful attempt to arrange ten circles in a circular formation by \foreach command: \begin{tikzpicture}[scale = 0.5] \foreach \x in {1, ..., 10} \draw[yellow] (\x * 36:10) circle ...
1
vote
1answer
28 views

`every loglogaxis/.append style` not working in PGFplots

I'm trying to apply to scientific notation as constructed in Number format of ticks in log log axis won't change to scientific notation `a x 10^b`, 'a' real, 'b' integer to all ...
3
votes
2answers
264 views

The arrow in my figure is not appearing correctly. What is the mistake?

I am trying to compile the following code to get a standalone pdf output to use it in another document. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) ...
1
vote
1answer
17 views

Inline calculation gives `Could not parse input` error in PGFplots

The inline calculation exp(\tick) in PGFplots gives me a Could not parse input error when compiling the code \documentclass[margin=1cm]{standalone} \usepackage{pgfplots} \begin{document} ...
0
votes
0answers
15 views

Change font only in a tikzpicture in beamer document class

I'm doing a presentatin with the beamer documentclass. I use tikzpicture to annotate a figure. I do it like this \begin{figure}[htp] \centering \begin{tikzpicture} \node[anchor=south west, inner ...
2
votes
1answer
37 views

TikZ — rounded rectangle with transparent holes and custom width of borders

I'm trying to draw a rounded rectangle with round "holes" using this answer but I need the rectangle borders to be thick and "holes" borders to be thin. Is there a better way to do so than: ...
1
vote
2answers
51 views

Number format of ticks in log log axis won't change to scientific notation `a x 10^b`, 'a' real, 'b' integer

I'm trying to set the number format of the ticks in a loglogaxis to the scientific notation a x 10^b ($a \cdot 10^{b}$ in LaTeX, a a real number and b an integer), but it's not working. I use the ...
3
votes
2answers
67 views

Create page border using tikz

I want to create the page border like the image in the attachment but I don't know how to do that? Please help me and thank you.
1
vote
1answer
54 views

Forcing a common z-scale in a surface groupplot

I've come across some similar questions, but not this exact one. And nothing I've tried has been able to achieve precisely what I'm looking for. I have a groupplot that contains two overhead views ...
4
votes
4answers
79 views

Help designing a package to use with personal notation

I am attempting to typeset a notation that I use for my own work, and I am struggling to create flexible commands. The notation involves placing mathematical symbols and expressions as if on the ...
1
vote
1answer
55 views

Diagram in TikZ gives compiling error

Here's my code which is working on the landscape mode: \begin{tikzpicture} \node[rectangle, draw, thick,minimum width=5cm,minimum height=2.20cm] at (0,1){ \begin{tikzpicture} \node[input] ...
4
votes
2answers
118 views

How to draw an EKG tracing with TIkZ

I am trying to draw an EKG tracing using TikZ. This is an of a single heartbeat on an EKG. The following code generates an acceptable simulacrum, but it's hard to use this code as a generator. ...
2
votes
1answer
31 views

Draw over mutliple subfigures [duplicate]

I currently try to document a project where a lot of image processing goes on. The problem is, that often tiny details are important to show, but also the reference in the bigger picture is required. ...
1
vote
1answer
41 views

“fill between” from pgfplots is placed behind other objects

The following is a (more or less) minimal example illustrating my problem: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} ...
0
votes
0answers
35 views

How to scale a figure including picture using tikzscale?

I'm having troubles with the tikzscale package. I'm trying to insert arrows above a picture. And, when I do so, I have the following error : "! Package tikzscale Error: Requested to scale unscalable ...
1
vote
2answers
50 views

Driving on Tikz in Texmaker

My LaTex distribution is MikTeX 2.9 and I am using TeXmaker. The LaTeX has been installed successfully and I have the deserving output for such test: \documentclass[]{article} \usepackage{amsmath} ...
6
votes
4answers
210 views

matrix with tikz

I would like to reproduce the diagram in 2.1 of https://www3.nd.edu/~wgd/Dvi/CalculatingSimplicialLocalizations.pdf So far I have this piece of code but I don't know how to fill cells with ...
0
votes
1answer
16 views

Annotate / plot triangle with slope in PGFplots log log axis environment

As a follow up question on the question posted at Annotate / plot triangle with slope in PGFplots axis environment, how do I do this in a loglogaxis? So, given a relative position in the loglogaxis ...
2
votes
1answer
80 views

Family Tree gone “wrong”

Trying to make a simple tree, but when I finished I realized I'd gone about it totally the wrong way... Would appreciate some help trying to make this the "correct" way. Oh, and also to circle the ...
0
votes
1answer
32 views

How can I randomly perturb the position of a grid of nodes?

I have a grid of nodes generated by the following code: \documentclass[tikz]{standalone} \usepackage{pgfplots} \tikzset{ small-node/.style={ shape=circle, fill=white, ...
1
vote
1answer
68 views

Displaying prime number differences

I am trying to make several nodes in my project like this: \Tree [.S This [.VP ] ] I have searched with no results. I want something like
1
vote
0answers
44 views

Does Tikz extend the traditional picture element commands?

Is Tikz built on the traditional latex picture element commands such as \put, \makebox, \line,\vector? or is Tikz completely different from the latex picture element commands? Also, is the ...
0
votes
0answers
26 views

Two side by side Tikz figures [duplicate]

I am trying to put two TiKZ picture side by side but one appear beneath the other. Relevant parts of my code are: \documentclass[10pt,a4paper]{report} \usepackage[utf8]{inputenc} ...
3
votes
0answers
37 views

texexample, tikz: “Difference Quotient”, why does the curly brace decoration on the x-axis not need a `mirror` decoration option?

Consider the source code for the "difference quotient" example presented on TeXample: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % DIFFERENCE QUOTIENT % % Author: ...
0
votes
0answers
19 views

Latex MacTex GnuPlot Tickz Error

Gnuplot 5.0 is installed. If i type Gnuplot in Terminal, everything is fine. Tex Live Utility tells me there's no updates available. What do i need to do to fix this error: ! Package pgfkeys ...
3
votes
2answers
192 views

Squiggly Double-Lined Left-Right-Arrow (i.e. “approximate equivalence”)

I am trying to create a double-lined arrow pointing to both sides like \Leftrightarrow with a squiggly line. The Comprehensive LaTeX Symbol List did not seem to contain any such symbol, nor did other ...
1
vote
0answers
31 views

Define a reusable TikZ picture with \renewcommand? [duplicate]

I have part of code which is drawing a circle. This circle i have in document many times, so i created \renewcommand and i used this three times: \renewcommand{\DrawCircle}{ ...
2
votes
1answer
34 views

'Dimension too large' in `loglogaxis` plot

I constructed a macro to annotate slopes of graphs by means of triangles in a loglogaxis. It works fine for small slopes, but for large slopes I get a Dimension too large error. Minimum working ...
2
votes
2answers
93 views

Drawing graph decomposition as a tree

Let's say I have a triangle like this which is easily generated by pgf. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ vertex/.style={circle, draw=blue!60, ...
3
votes
1answer
24 views

How to split text lines inside figure [duplicate]

My lines are too long. I want to break them. How should I do this? this is how I am doing it now \tikzset{block/.style={draw,fill=blue!60,minimum width=1.1 em, minimum height= 1em, rounded corners= ...
0
votes
1answer
38 views

Including monochrome TIFF [duplicate]

I have a monochrome TIFF (hand-drawn ornament) which I want to include in my book, but I want in not black-and-white, but pantone-and-white — the book will be printed in two colors. What should be my ...