Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-pgf]

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.

1
vote
1answer
65 views

Tikz Block DIagram

Can you help me into making this block diagram made with power point in tikz?
2
votes
1answer
50 views

Tikz & Beamer: Change color “after pause”

I have a tikz drawing, where I want to change the color of the edge in the second slide. Right now I'm doing that in the brute force way of drawing a new edge in red over the previous one. Is there ...
3
votes
1answer
57 views

Tikz drawing layer by layer

I wanted to make a similar structure based on this example. But I'm currently stuck at this point: The top layers should be left and rigth aligned I think the code can be WAY better Here is my MWE: ...
4
votes
4answers
166 views

Draw tree in tikz

I would like to replicate this powerpoint sketch in LaTeX. I tried it with tikz, but didn't come to a result. Any help appreciated!
7
votes
2answers
147 views

Two lstlistings side by side with refering arrow

SE I am trying to draw the image below in LaTeX using lstlisting, tikzpicture, minipage, and tabular The code that I got so far can be seen below \documentclass{article} \usepackage[utf8]{inputenc} ...
1
vote
2answers
76 views

How to move the pgf-spectra boxes in a TikZ

I am trying to draw a diagram that looks approximately like this: The red boxes are the items I would like to add to the diagram. They represent spectra lines that can be generated using the pgf-...
2
votes
1answer
51 views

TikZ grid for drawing over image yields arithmetic error

The line \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);, which is of course taken from Drawing on an image with TikZ, nowadays generates an error. I must admit I have not kept up with LaTeX, ...
0
votes
1answer
75 views

Plot latitude and longitude lines

I am having problems finding how to draw a longitude line like the one show in the figure. I do not want to have a complicate drawing just similar to the one in the picture. I have found some order ...
9
votes
1answer
298 views

Brownian motion and rotated normal distribution

I found this interesting and (I believe) quite pedagogic representation of a brownian motion and its related normal distribution at a specific time forward. Tikz Brownian motion explains how to ...
3
votes
3answers
265 views

Drawing an Inflection Point with Tikz

I am trying to draw a point of inflection with this program: \documentclass{article} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture}[scale=1] \draw[->] (-.5,0)--(6,0) node[...
1
vote
1answer
73 views

improve this tikz picture “graphe of |1/x|”

I want to write in the left "A" and in the right "B" and delete in axis (1,2,3,..) and just put $\frac{-\varepsilon}{2}$ and $\frac{\varepsilon}{2}$ inter left and right respectively of the x axis. \...
6
votes
3answers
464 views

how to write a formula that branches into two?

I would like to write a formula (see the picture), how can i fix the arrows? This is my code: \documentclass[a4paper,12pt]{article}[12pt] \usepackage[italian]{babel} \usepackage[T1]{fontenc} \...
3
votes
1answer
39 views

Tikz - Set all nodes in sans serif font

So far I had the understanding that providing font commands after a "parental" scope/more global definition was given, is additional, but I was wrong. How can I get nodes which are only set in the ...
2
votes
1answer
45 views

Arrangement of triangles via tikz

Task: I am trying to arrange four triangles via TikZ. Below, you see the output: As you can see, I face two problems with my solution: A) It seems hand-made since the borders do not fit perfectly ...
4
votes
1answer
176 views

Tikz - increase the spacing between 2 nodes of a stencil

I want to increase the spacing between 2 nodes of a stencil. The original design of the stencil comes from this question. \documentclass[a4paper, 12pt]{book} \usepackage{pgfplots, tikz} \newcommand{\...
4
votes
1answer
84 views

Tikz-dimline label position

MWE: \documentclass[tikz, border=1cm]{standalone} \usepackage{tikz-dimline} \begin{document} \begin{tikzpicture}[ plotmark/.style = {% draw, fill=red, circle, inner sep=0pt, minimum size=4pt ...
2
votes
1answer
45 views

Multi input block diagram using TikZ

i want to create a block diagram that has multiple inputs into the next block, but do not seem to be able to get it to work at all. I would like to produce it like: This is what i have right now: \...
4
votes
2answers
89 views

How to scale down the size of tick on an axis of graph in Tikz

How to scale down the size of tick (j-1, j and j+1) of a graph in Tikz? Moreover, as I don't have a lot of experience with Tikz, if there is a more standard/efficient way of writing the whole graph, ...
1
vote
0answers
46 views

Path Variable Problem in TikzEdt on linux

There is already a (unanswered) question to this topic in windows, but I thought it is clearer if I open a new one. When I start TikzEdt on Linux I get this error message: It might be that you do ...
6
votes
1answer
179 views

How to plot the function the absolute value of x*(x-1)^(1/3) using tikzpicture environment

I am trying to plot f(x)=abs(x*(x-1)^(1/3)) on [0,2]: I have to use tikzpicture environment but I am not able to do it in a nice way. MWE: \documentclass{article} \usepackage[english]{babel} \...
3
votes
1answer
69 views

tikz: increase the spacing between the nodes

I want to increase the spacing between the nodes in a stencil, linked to each other by a stroke \documentclass[a4paper, 12pt]{book} \usepackage{tikz} \newcommand{\stencilptbig}[4][]{\node[circle,draw,...
2
votes
1answer
59 views

Pgfplots plotting data from a csv file

I'm trying to create a diagram with three x-axes at the bottom. I found a code which creates 3 axes but when I try to plot the data from a csv file I get an error stating: ! Package pgfkeys Error: I ...
11
votes
2answers
703 views

Drawing a half-full bottle in TikZ

I want to fill half of the bottle. I tried these kind of commands: %\filldraw[color=black!100, fill=cyan!30, very thick](-3,-2.4) arc (180:230:2.5) .. controls (-2,-5) and (-1.9,-5.2) .. (-1.8,-5.5) ;...
4
votes
2answers
165 views

Having arrows entering and leaving at different points on a single node

I wish to essentially remake the below image using TikZ, but with more colors and using a different language inside the boxes. I've tried the following: \documentclass[tikz]{standalone} \...
2
votes
1answer
57 views

Draw arc between points and label

As shown in the attached picture, I wish to draw that red arc between the left node and the right node and label it as ABC (shown in attached image). How can I do it? The code that I have worked out ...
0
votes
2answers
52 views

draw graph showing an electrical event

Can you help me to plot this graph?
1
vote
1answer
43 views

draw graph showing the variations in distance in an intensity of light

How can I plot the function/graph below in the picture? My trial was not quite like what it should be \documentclass{standalone} \usepackage{tikz} \begin{tikzpicture}[scale=.6] \draw[thick, ...
2
votes
3answers
132 views

Tikz: Draw lines between edges of rectangles

The following code \documentclass[tikz,border=1mm]{standalone} \usepackage{tikz} \begin{document} \newcommand{\opacity}{0.6} \begin{tikzpicture} ...
1
vote
1answer
30 views

Relative coordinate in node placement

When I try to use relative coordinates in \node using the syntax: (x,y)++(a:r) it gives me an error, but when I just specify the second coordinate as ++(a:r) it's like the (x,y) first coordinate is ...
3
votes
1answer
77 views

TikZ: help coordinate grid lines [duplicate]

When creating tikz pictures I quite often think that it would be quite useful to display a coordinate grid like this in the background of my picture in order to align certain points, lines, etc. I ...
3
votes
2answers
81 views

Tikz: Connect chain of rectangles with lines

I want to be able to connect the white rectangles with lines as shown in the picture below (this example consists only of two rectangles, the original code consists of more than 10 of such rectangles)....
8
votes
2answers
224 views

Filling a box excluding circles inside it

I was trying to create an image in TIKZ. My code is as below: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, shadows, fit, arrows, ...
1
vote
0answers
49 views

Make a floating box anchored to text using inline code

I'm trying to make an Organizer, including a weekly planner, based on one I found on the net using tex. I've managed, until now, to make some changes to adapt it to my needs and, for example, include ...
1
vote
1answer
59 views

Draw a circle with a pointed radius using tikZ

I would like you to help me create this graphic. I would like to be able to use this one as an example for other graphics that I have to do.
1
vote
2answers
75 views

problem with creating a graph using tikz

I have a little problem. I have create with latex a graph. Here is my code \[ \begin{tikzpicture}[->,>=stealth,shorten >=1pt,auto,node distance=2.5cm, semithick] \...
0
votes
1answer
45 views

How to modify the following code to add 3 adjcent lines to the left of the generated code?

I made this lines in tkiz to make 3 adjacent parallel lines \node (A) at (-8.5,+1){}; \node (B) at (-8.5,-15){}; \draw[-] (A)--(B); \node[right=-10.3 of A] (b) (...
3
votes
2answers
67 views

Tikz: Create depth effect with circles

I want to draw circles to create a 3D effect. I'm having trouble figuring out how to rotate the image. Here is the code: `\documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{...
1
vote
2answers
62 views

Adding a small colored rounded box around inline text [duplicate]

Is it possible to write a command using TikZ to produce a small rounded and colored box around a piece of text, inside sentence? I know the \framedbox command gives a rectangle around a piece of text (...
2
votes
2answers
52 views

legend style customization in pgfplots

I have this bar graph, and I want to do 3 things: Remove the numbers in the bars, they are overlapping (If possible keep only one, symbolizing that both bars have the same value); Within the frame of ...
1
vote
1answer
46 views

How to scale down a group of tikzpictures and label texts independently

I have a multipicture figure \documentclass[parskip]{scrartcl} % \usepackage[margin=15mm,landscape]{geometry} \usepackage{tikz} \newif\ifcuboidshade \newif\ifcuboidemphedge \tikzset{ cuboid/.is ...
5
votes
5answers
158 views

font or tikz to draw tally counting symbols (///)

In a book I have the following to illustrate the traditional counting symbols used for hand tallying. They were drawn using PPT and saved in a PNG image, but look ugly and when I try to use one in ...
4
votes
2answers
107 views

Help with a node diagram

I am trying to recreate this diagram from a paper for my thesis. The idea would be that I can scale it to different sizes, only use parts of it and insert different nodes like the circles and ...
4
votes
2answers
107 views

Using a data file as input in tikz

I have a sorted data in a file (named data.dat). These data should be plotted vertically. I prepared a code in latex using tikz that works. The problem is each data is typed one by one in the main ...
1
vote
1answer
85 views

How to increase font using Tikz for the following dense protocol?

This figure is made with Tikz package, I need suggestions to make font more bigger and more readable. I tried many solutions such as \Large but still not able to increase the font more clear. My ...
4
votes
1answer
62 views

Placing a Tikzpicture and Matrix together

I need help a little on the matrix again and putting together the matrix and tikzpicture I created. \documentclass{article} \usepackage{tikz,amsmath} \usetikzlibrary{decorations.pathreplacing} %%% ...
3
votes
3answers
611 views

Reproduce a geometric drawing

How can I reproduce the following drawing using LaTeX? I suspect that TikZ has the right instruments to do it, but I'm not familiar with the package. Indeed, the most I can do with it is drawing ...
3
votes
1answer
69 views

How to scale a TikZ matrix?

I have the following matrix: which is obtained from the following code: \usetikzlibrary{patterns} \usetikzlibrary{matrix,decorations.pathreplacing,calc} %opening \title{} \author{} \pgfkeys{tikz/...
0
votes
1answer
99 views

What is the most efficient way to draw sets in LaTeX?

What is the best way to draw sets in LaTeX. I want to have a visualization of the Sets of a certain proof because it is way easier to see than to read. But I am not sure if it is worth the effort to ...
4
votes
1answer
67 views

How to make cuboids with different dimensions xyz with TikZ

I want to plot blocks (transportation pallets). Each block has 0.8m width, 1.2m depth, and 2.15m high, and they are placed horizontally (only one block height) grouped 2x2, 3x3, 4x4, 5x5, 6x6, 7x7 ...
4
votes
2answers
141 views

Making a (filled) surface in a 3d plane to look like a (filled) ellipse in 3d plane

I have the following MWE: %&lualatex % !TeX program = lualatex \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis}[ ...