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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
30 views

How to auto-arrange nodes of a mindmap in TikZ (to avoid overlapping nodes and connections)

There is a library in TikZ for creating mind (or concept) maps (https://pgf-tikz.github.io/pgf/pgfmanual.pdf#section.60). However, it doesn't seem that intuitive to use. I want nodes to automatically ...
user avatar
  • 85
4 votes
2 answers
212 views

tangent to a triangle

I would like to produce like this, but here is as far as I got; \documentclass[12pt,a4paper]{article} \usepackage{tkz-euclide} \usetikzlibrary{arrows.meta} \usetkzobj{all} \begin{document} \Huge \...
user avatar
  • 115
2 votes
1 answer
75 views

Help with Tikz picture

What I need My attempts I'm not good at tikz at all, so could You help me draw this horrible thing, please. I used mathcha.io as an editor(bad idea) code \documentclass{standalone} \...
user avatar
0 votes
0 answers
24 views

How can I change the domain of my pgfplot to $\{x,y \geq 0, x+y \leq 5\}$?

I have the picture \documentclass {standalone} \usepackage{pgfplots} \pgfplotsset{compat = newest} \begin{document} \begin{tikzpicture} \begin{axis}[hide axis, x={(-0.8cm,0cm)}, z={(0cm,0.4cm)}, y={(...
user avatar
2 votes
2 answers
47 views

Flowchart generated with tikz is too big for the slide - How to adjust the size?

I generated a flowchart using tikz. The flowchart is way too big for the slide as seen on the attached picture. . \begin{frame}[c]{Hypothesis} \begin{itemize} \bigskip \bigskip \bigskip \bigskip \...
user avatar
1 vote
1 answer
23 views

Put Table and paragraph side by side

I wanted to put a table and a paragraph side by side like this: After struggling for 2 days I still don't know how to do it. I can only be able to put them one after another as shown below. Could ...
user avatar
  • 13
1 vote
3 answers
52 views

How to make an environment for a tikz nodes content

(Sorry the title is not very good.) I came across Centering full-page tikz images - with mid-document paper size change and its answer https://tex.stackexchange.com/a/55421/11820 which I use as a ...
user avatar
  • 1,971
0 votes
1 answer
44 views

How to coordinate shift in axis coordinates

\documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \begin{document} \begin{tikzpicture} \begin{axis}[axis equal, ymin=-10,ymax=17,xmin=-10,xmax=30] \...
user avatar
  • 1
0 votes
1 answer
58 views

How can I make this exact figure

I want to make this tikz picture but finding problem making these node filling black, the middle dotted line and also want to smaller the size of number on arrows. \documentclass{article} \...
user avatar
-1 votes
0 answers
43 views

How to draw a three-body Jacobi coordinates

I am requesting anyone to assist me in drawing the three-body Jacobi coordinates, as shown on the attached picture using latex.
user avatar
2 votes
1 answer
52 views

Filling the wrong area after doubling

After doubling around a path, and filling the comment \fill is filling the wrong area, how can I fill what's inside, please? \documentclass[tikz,border=2mm]{standalone} \def\A{(2,1) to[out=80,in=0]...
user avatar
  • 75
-2 votes
1 answer
49 views

Trapezoidal Rule [duplicate]

I want to give a lecture note to my students explaining the trapezoidal rule. Can anyone help how to draw these shapes together using latex.
user avatar
  • 5
4 votes
2 answers
135 views

How do I make an arrow on a curve in TikZ?

I have three questions: How can I draw the arrow marks in the picture below? How can I customize the location of the labels of the axes? How can I change the axis line style as latex? Current Code: \...
user avatar
3 votes
2 answers
162 views

Draw a curve at a constant distance from part of a boundary (another curve)

I am trying to use tikz to draw the red curve which should be at a constant distance from the blue part of the boundary of the domain. all I could do is to use coordinates but that's not accurate. Is ...
user avatar
  • 75
0 votes
0 answers
51 views

Draw a tangent line to a curve [duplicate]

I would like draw a curve (without knowing the function) then place a tangent line at a point on the curve. Basically the same as below but with a smooth curve. \documentclass{exam} \usepackage{tikz} \...
user avatar
1 vote
2 answers
97 views

Tikz gradient with 3 or more colors using pgfdeclarehorizontalshading

I am trying to get a gradient to work with 3 distinct positions by using \pgfdeclarehorizontalshading. I have read the docs here and it seems rather straightforward that the different colors should be ...
user avatar
  • 189
0 votes
0 answers
15 views

Problem with beamer and tikz spy when using opacity

I have this problem. When I am using the library overlay-beamer-styles with spy and opacity, spy doesn't work well. The problem starts when I use visible on=<> with two different \spy and ...
user avatar
4 votes
1 answer
55 views

Multiple text alignments in TikZ legend entries

I am looking for a simple way to have multiple alignments in a TikZ legend. I have the following code which produces a TikZ figure: \documentclass[11pt,a4paper]{article} \usepackage{pgfplots} \...
user avatar
1 vote
2 answers
79 views

How can I align arrows' labels into readable place?

I am having difficulty to align label of arrows into compact and readable position. In drawing program I can easily put the text of arrow into readable places but its much difficult in tikz. Please ...
user avatar
  • 418
2 votes
0 answers
46 views

No page numbers in Beamer slides with TikZ

I am making some simple drawings with TikZ, and would like to spread the drawings over several slides (ie. on each slide something additional is drawn on the frame). I have succeeded doing it with \...
user avatar
1 vote
1 answer
26 views

colorbar upside down (highest values at bottom) in pgfplots

For a project I need a scatter plot w/ a colorbar in which the lowest values are at the top and the highest ones are at the bottom of the colorbar. I could not find information on how to do this in ...
user avatar
  • 35
0 votes
1 answer
59 views

Progress bar with sections and subsections, beamer

I am using beamer for a presentation, and I would like to include a progress bar, in the top part of the slide. I would like it to be something similar to the one which apperas here: (Beamer: How to ...
user avatar
0 votes
0 answers
24 views

Setting pdf page to a tikz picture dimensions in the pdftex

I was trying to set a pdf page accordingly to a picture dimensions using pdftex (Plain TeX) (a kind of standalone). Such picture should appear centered in the document. But I've failed terribly. \...
user avatar
2 votes
2 answers
57 views

Using \usepackage{tikz,xparse,xstring,fp} to create a lattice a lattice multiplication

\documentclass[tikz,border95=3mm]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[case/.style={minimum width=2cm,minimum height=2cm,draw},line/.style={blue!10!gray,line width=...
user avatar
  • 115
0 votes
2 answers
59 views

I would like to answer this code to make a 3 by 1 grid

\documentclass[tikz,border95=3mm]{article} \usepackage{tikz} \usepackage{xcolor} \begin{document} \begin{tikzpicture}[case/.style={minimum width=2cm,minimum height=2cm,draw},line/.style={blue!10!...
user avatar
  • 115
3 votes
2 answers
69 views

Is there some Tikz library/package for automated fusion operations?

By fusion I mean to insert boxes connected with wires such that the wires can be tangled or fused as shown in the picture below. You see in the right hand side that the yellow cable goes below the red ...
user avatar
  • 465
2 votes
2 answers
71 views

How to place tikz elements within a custom paper geometry to reach all four corners, with margins

I am trying to design a book cover for a document, the pages of which will be printed on 8.5"x11" letter paper, as a 17"x11" document. I have added into the geometry the margins I ...
user avatar
  • 189
0 votes
1 answer
120 views

A simple chart using TikZ

Can you help me draw a chart using TikZ as follows:
user avatar
  • 243
0 votes
2 answers
48 views

Rescaling a picture from Geogebra

This is the code of the picture from Geogebra. But it seems that the picture is a bit large and I was wondering how to rescale it? \begin{figure}[!h] \definecolor{ududff}{rgb}{0.30196078431372547,0....
user avatar
  • 115
-1 votes
2 answers
117 views

Real Projective Plane with TikZ/Pstricks

I have no idea how to draw the Real Projective Plane $\mathbb{RP}^2$ — or $\mathbb{P}^2 \bigl(\mathbb{R}\bigr)$ if you prefer — in LaTeX, using TikZ or Pstricks. I'd to like to obtain one of these ...
user avatar
  • 847
0 votes
3 answers
123 views

Draw and shade a region in $\mathbb{R}^2$ parametrised by functions

I'm trying to draw this region of the plane D = {(x,y) ∈ ℝ2 : x ∈ [a,b], −x2 +x ≤ y ≤ −x3+2x; 0 ≤ x ≤ 1} this is what I've at the moment \documentclass[preview, convert={size=598x414,...
user avatar
0 votes
1 answer
50 views

How to vertically position the page number at the height of a TikZ picture in a footer?

In the following picture, my page number is higher than my rectangle. I'd like the page number to be lower. Really lower. The best for me would be to have both the rectangle and the page number ...
user avatar
  • 114
2 votes
2 answers
173 views

\pgfsetfillopacity fails to work with mathematical fomula

I'd like to make some transparent effect with \pgfsetfillopacity(from tikz). It works all right with common text, but fails to work with mathematical fomulas, as the following fraction showes: number ...
user avatar
  • 2,321
33 votes
2 answers
1k views

PGF/TiKZ: When should I choose "--", "to" or "edge" to connect nodes?

Is there a summary of the differences of "--", "to", and "edge" and what is the best current practice to choose one these path commands to connect nodes?
user avatar
  • 921
1 vote
1 answer
47 views

Fail to detect if "external" TikZ library is already loaded

Based on this answer, I try to detect if a TikZ library is already loaded or not. For a reason I ignore, it cannot detect external while it's called in the preambule. Adapted MWE \documentclass{...
user avatar
  • 2,495
4 votes
3 answers
177 views

Adding a shape (square, circle, etc.) to part of a math expression in beamer (tikz and overlay)

This might be a trivial question and I saw similar questions but for some reason, I did not manage to resolve it. Consider this slide \documentclass{beamer} \usefonttheme[onlymath]{serif} \...
user avatar
0 votes
1 answer
43 views

How to add a label below sequencediagram?

I haven't found a way to add a label (like in images) below a sequencediagram. Is it possible? I want to make references to diagrams in my text but I dont know how to display a label for each ...
user avatar
0 votes
1 answer
96 views

Extending the Features of the Glowing Star Posted by User Sandy G

This following code extends a bit, an answer posted by the user Sandy G in How to Give Stars a Glow Effect which asked for a way to produce a glowing star with LaTeX. \documentclass{book} \textheight ...
user avatar
  • 5,283
1 vote
1 answer
82 views

Blurred in TikZ and 3D shadows

I want to produce a 3D object like the one in the picture using TikZ. I am able to make the first one, clipping some svg paths on the object. But how can I blur it?
user avatar
0 votes
1 answer
31 views

Externalise tikz figures and LaTeX output in different directories

I have the following tree: . ├── main.tex ├── output └── tikz I would like to compile main.tex using output for LaTeX output, but having the tikz PDFs externalised in the tikz directory, which would ...
user avatar
  • 1,304
-3 votes
1 answer
104 views

How to reproduce this figure with Latex/TikZ?

I would like to reproduce this figure properly in Latex. I have several imported figures (.eps but I guess it does not really matter) and I want to draw arrows (instead of lines) between some of them (...
user avatar
0 votes
2 answers
74 views

Cannot compile my TikZ

I use Ovearleaf and it gives me a time-out because of the following TikZ picture: \begin{tikzpicture}[font=\footnotesize,scale=1.4] \tikzset{ solid node/.style={circle,draw,inner sep=1.5,...
user avatar
1 vote
2 answers
55 views

Tikz labels for axis \foreach loop

I am wondering if there is an easier way to build the axis for my diagram. I do use the \begin{axis} \end{axis} for graphs as well, but I am wondering if there is a line of code that I could use to ...
user avatar
  • 494
1 vote
1 answer
41 views

Clip a rectangle by the size of another (small) rectangle

I'm trying to make a hole in the 2nd rectangle by the dimension of the 3rd rectangle. It seems that \clip, as it specified in the manual, is clipping all the subsequent drawings. Is there an invert ...
user avatar
  • 602
1 vote
2 answers
40 views

How to use circledsteps in a caption?

I am using the circledsteps package to typeset numbers, as shown in following MWE: \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \usepackage{circledsteps} \newcommand{\mycircle}{\...
user avatar
  • 2,892
0 votes
0 answers
20 views

node labels: inherit node color

Is it possible for node labels to "inherit" their parent's color? More specifically, I'm doing this: \node[red, label = {[red]above:label}] {node}; but I want to be able to do this: \node[...
user avatar
  • 1,329
0 votes
2 answers
91 views

Draw a circle with radius

I want to draw a circle between the x and y-axis. I also want to write a word over the radius. The arrow in the radius is not showing, how to improve it? \documentclass{article} \usepackage{tikz} \...
user avatar
  • 35
0 votes
1 answer
56 views

Add arrow and a side note to a table

Could anyone know on how to add arrows and side notes to a table like this, I spent 3 days but I'm still struggling with that :( : \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
user avatar
  • 13
0 votes
1 answer
40 views

tikz node, auto-strut to drop descenders

I am using a (huge) tikz picture to emulate a fillable form. As a result, the text in the nodes has to line up. To handle descenders, I have created a strut that "drops" the text back to ...
user avatar
  • 189
1 vote
1 answer
85 views

Tikz this surface picture

Can someone help me how to draw an image like this in Tikzpicture? I've been looking for an editable image like this on internet but there is not. I actually need to be able to edit the labels on this ...
user avatar