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

How to draw \leadsto line? [duplicate]

I wish to replace straight line with the \leadsto line. I tried \draw[leadsto] (s2)--(s3); however it can not work. Below is my code \documentclass[tikz]{standalone} \usepackage{tikz} ...
6
votes
1answer
1k views

How to make a zero-size node?

How can I make a node with zero size and node distance, such that a node that is positioned to the right of it lies on the same spot? My solution to the first node in a node-drawing loop was to start ...
2
votes
1answer
97 views

How to refer to the corner of a node?

Is there a node suffix for the corners of a node? I'd like the brace in this example to go from the lower-left corner of the first box to the lower-right corner of the last. ...
2
votes
0answers
26 views

node at sloped path and/or not respecting every path/.style [duplicate]

I'm producing a schematic Nyquist plot, and I want to create an arc between the x-axis and a straight line, which should be denoted PM (phase margin). I use the intersections library to find the ...
17
votes
2answers
899 views

Creating a triangular table

Is there a way to create something that looks like this? I have looked at the \rotatebox command, but that will not get the same "jagged" edges on the bottom, and looked at How to draw a ...
2
votes
1answer
220 views

ray from the origin of a sphere to the radius

In my previous post shifting a sphere, I have two spheres which were lifted from texexamples.net On the left bottom side, there is a sphere with a ray from the center to the radius of the sphere. I ...
3
votes
1answer
292 views

Shifting a sphere in code from Texample.net

From Texamples - Stereographic and cylindrical map projections, I decided to use the first sphere. However, I want to setup two spheres. When I add another sphere, only the shaded circle shifts ...
3
votes
1answer
677 views

Equivalent of QTikZ for PSTricks

I have recently seen the very useful QTikZ program for interactive viewing of TikZ diagrams. I was wondering if a similar program exists for drawing PSTricks diagrams.
12
votes
5answers
507 views

Parsing hexadecimal numbers to binary and iterating over bits

I'm currently working on a software for an graphic display, so I recreated it in TikZ for documentation purposes: I currently use this to set individual pixels on the display: \setpixel{x}{y} ...
4
votes
1answer
224 views

Is possible to draw graphics with a function or any function?

Let us want to draw a function y=x^3(the first figue) and y=x^4(the second figure),, like graphics this following and i use Microsoft mathematics to draw it.
4
votes
0answers
275 views

Making a family of graphs in TikZ by a few definitions [closed]

I am trying to make in TikZ a family of graphs, as in included pictures. I can make them one by one, using nodes (circle/square/triangle, black/white) and joining them. However it seems to me, that ...
5
votes
1answer
648 views

How to draw a scheduling scheme?

I would like to draw an arbitration scheduling scheme. I tried to draw one with xfig, but the result is... not so nice ;-): Does anyone know a good way to draw this in LaTeX? The result don't have ...
3
votes
1answer
423 views

Vertical alignment of TikZ within text

I have a bit of TikZ in my text, namely: \documentclass[]{standalone} \usepackage{tikz} \begin{document} Some text (\tikz{\node[scale=0.5,solid,draw,thick,blue,rectangle,fill=white] {A};}), ...
5
votes
1answer
669 views

How to get text above fork style edges in a TikZ tree

I'm new to TikZ and have a problem with a decision tree. In the example below I would like to have text above the horizontal line of an edge. Something like: Check A | ...
7
votes
1answer
223 views

Error message with hobby package

I am trying to use the hobbypackage with this minimal example from the manual: \documentclass{article} \usepackage{tikz} \usetikzlibrary{hobby} \begin{document} \begin{tikzpicture}[scale=.5,use Hobby ...
1
vote
0answers
58 views

Draw a cone in TikZ [duplicate]

How could I do something like this in TikZ?
2
votes
1answer
218 views

Paragraph Spacing within a Tikz Environment

I am looking to replicate the look of paragraphs within a tikz environment (actually a minipage). \documentclass[letterpaper,12pt]{book} \usepackage{tikz} ...
10
votes
4answers
871 views

Trapezium rule for integration using TikZ

I have problem to draw graphic with LaTeX (especially TikZ)? Like this:
1
vote
1answer
360 views

how to make mindmap nodes links within presentation

Wanting to make secondary and tertiary nodes links to other frames within presentation. A great example would be linking the mountain bicycle node to the frame titled "mountain bicycle". The code I ...
8
votes
2answers
560 views

how to make mindmap fit on frame?

I'm in the process of creating a Beamer presentation using some tikz concepts, how do I make a mindmap fit to the slide? My code is as follows: \documentclass[T]{beamer} ...
5
votes
1answer
275 views

question about pgf-blur package in xelatex

Here is my code: \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{shadows.blur} \begin{document} \tikzfading[name=fade down, top color=transparent!30, bottom ...
6
votes
1answer
351 views

Create a Frequency Allocation Diagram

I need to reproduce a frequency allocation diagram in TeX. I prefer TikZ but open to PSTricks. I can create a simple bar allocation char using \node but unsure how to create layered blocks like the ...
9
votes
1answer
149 views

Where is the trailing space after TikZ node text gone?

I've been fiddling with TikZ nodes to get framed text (part of mdframed boxes, but that's beside the point) when I discovered something that puzzles me. If you run the code below: ...
7
votes
2answers
1k views

How to elegantly create a pyramid hierarchy in tikz

I want to create a pyramid hierarchy in tikz with smooth sides (unlike this step-pyramid) and place text in each level. Shown below is how I am currently doing this, is there a better way? ...
2
votes
1answer
540 views

how to draw double circle nodes in tikz more clear?

I like the drawing final states in Peter Linz's Book, more clear than final states in tikz. can do it with apply an option in tikz, or other packages?
6
votes
2answers
826 views

How to make an image for backgrounds with exact A4 dimensions?

In order to make a background image that fits the page perfectly, I have tried two things. The first is to use a document class where the dimensions of the page can be set to that of A4, which ...
6
votes
1answer
1k views

Equal (=) sign within TikZ label

I was trying to use an equal sign within a TikZ picture as a subcaption of an inner TikZ picture for comparing two images. Here is my code: \documentclass{report} \usepackage{amsmath} ...
2
votes
1answer
211 views

Multithread integral function executing picture

I need to make a picture that should look like I saw a similar question here but the red function line appears neither when I use --shell-escape nor when I use --enable-write18. I use TeXstudio, by ...
3
votes
3answers
452 views

Create an automaton with LaTeX [duplicate]

I want to create this automaton with LaTeX: The code: \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm, semithick] \node[initial,state] (A) {$1$} ; ...
7
votes
2answers
628 views

How to decrease the counter in tikz foreach loop

I have the following code: \documentclass[11pt]{article} \usepackage[a4paper]{geometry} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{tikz} \usetikzlibrary{positioning} ...
3
votes
1answer
265 views

drawing diagram from the circle

I am trying to wrap the following diagram in a circle and I am facing some problems. I am using the some codes from, Wrapping a Feynman diagram in an ellipse or a circle? , but I cannot make the lower ...
4
votes
1answer
506 views

Combining diagonal table cell lines with minimum row clearance

So, yeah, it just never ends I guess. I'm fully aware that the following table is not exactly going to win an award for its stunning beauty no matter what. But the most important problem is that in ...
8
votes
1answer
657 views

TikZ data visualization - multiple plots in the same axis

I am trying to declare a new data format with the TikZ data visualization library for a custom data file format. The data files have a header section with Field name = Value followed by a blank line ...
2
votes
1answer
191 views

resizebox fails for tikzpicture when used in conjunction with listing package

Here is the example that fails \documentclass{standalone} \usepackage{tikz} \usepackage{float} \usepackage{listings} \usepackage{color} \usepackage{textcomp} \usetikzlibrary{shapes,positioning} ...
3
votes
1answer
279 views

Intersection of paths with constructed names

This question is a "follow up" of the question naming paths inside a TikZ foreach loop. I can construct the name of paths, but there are errors when using them to calculate intersection. An example ...
7
votes
1answer
411 views

Problems with filling a path that includes decorations in TikZ

I want to construct a rectangle with two sides having a slight curvature and the other two sides being zigzag lines. In the end, I want to fill it. While the construction of the path worked the way I ...
1
vote
0answers
92 views

error generating separate pdf from pgfplots [closed]

When I followed the chapter 7pgfplots manual (Revision 1.8) to generate seperate pdf files from the pgfplots figure I could not get the required pdf files. MY file name is test.tex Here is the ...
19
votes
2answers
1k views

High level digital design in TikZ

I am very new to TikZ and I have trouble making a diagram similar to the one here: My problems are specifically making MUX to get to inputs which would be on 1/3 and 2/3 of the width. Taking sigma ...
11
votes
1answer
282 views

Join two function-based curves in Tikz

I have the following: \begin{tikzpicture}[line cap=round,line join=round] \draw[dashed,domain=0:9,samples=20] plot (\x,{1/(\x+.5)+3}); \draw[dashed,domain=0:9,samples=20] plot (\x,-{1/(\x+.5)+2}); ...
4
votes
1answer
506 views

Help with arrow formation in TikZ flowchart [duplicate]

I'm trying to create a simple flowchart (it's actually an archaeological diagram called a Harris Matrix) using TikZ. Below is the code for a small part of the finished diagram which illustrates the ...
2
votes
1answer
146 views

Problem with Folding Library in Tikz package [closed]

I'm trying to run through a trail but can't seem to get it to work. Code goes as follows. \documentclass[11pt]{article} \usepackage{tikz} %optional libraries ...
4
votes
1answer
376 views

Specify positions for top/bottom in Beamer vertical shading

MWE \documentclass{beamer} % Yes, this is a poster, if that matters in the slightest %\usepackage[orientation=portrait,size=a0]{beamerposter} \mode<presentation>{} ...
3
votes
0answers
63 views

Fill a region between two sinusoids [duplicate]

I would like to fill with shade color the region between two sinusoids. Here's my code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=1.3, every ...
7
votes
1answer
758 views

tikz inside lstlisting inside tikz

Here is the minimum working example: \documentclass{article} \usepackage{tikz} \usepackage{float} \usepackage{listings} \usepackage{color} \usepackage{textcomp} \usetikzlibrary{shapes,positioning} ...
18
votes
1answer
599 views

Can I define a new shape with predefined filling and shading to be used in decoration?

I defined a new shape that draws a flower with predefined filling and coloring: \makeatletter \pgfdeclareshape{flower}{ \savedanchor{\center}{% \pgfpointorigin} \anchor{center}{\center} ...
4
votes
2answers
676 views

Position an automata below another, both centered

I want to draw two automata in a tikz picture. The second automaton should be below the first, and both should be centered horizontally. \documentclass{standalone} \usepackage{tikz} ...
1
vote
0answers
174 views

Tikz code: Cartesian space vs hough space [closed]

I would like to write down using tikz the following graphs. It would be great and extremely helpful if someone could post me the code.
8
votes
3answers
620 views

How to Improve my TikZ Code to construct a Triangle Diagram

I'm inviting interesting, alternative TikZ solutions to improve on the code for a "triangle diagram" that may be found further on. One of the problems with the code is that I hardcoded some lengths ...
12
votes
1answer
672 views

Using beamer overlays with forest generated trees

I am using the forest package from Sašo Živanović in order to create a wide tree on a beamer slide. Previously, I was using qtree. But due to the easier way of arranging nodes automatically with ...
7
votes
2answers
696 views

Two fills between functions calculated by pgfplots

This question resembles fill the area between two curves calculated by pgfplots, however I'm not able to use the stack plots solution. I want to fill the left part of the lined area with one fill, ...