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
1 answer
31 views

Remove far left bleed on geometry and TikZ (overlay)

I am getting some sort of undesirable left bleed despite my attempts to eradicate it when I try to use geometry together with TikZ: \documentclass{article} \usepackage{tikz} \pagestyle{empty} \...
user avatar
  • 3,391
0 votes
2 answers
43 views

How to enlarge figure by animate

Objective: First, I put a picture (named test.png) in a circle (made by TikZ). Then, I want to get an animated effect to enlarge the whole figure by controlling the value of the option scale. The ...
user avatar
  • 2,321
0 votes
1 answer
25 views

Adding another shaded region to this parabola

I asked a question yesterday, Filling this parabola with pattern to which was answered by the community and I have one more question to ask - how do I construct a small coloured/shaded strip in this ...
user avatar
0 votes
0 answers
29 views

I am getting an hbox error with my flowchart

I am not sure why I am getting the hbox error. \documentclass{exam} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing} \usetikzlibrary{shapes,calc} \tikzset{fontscale/.style={font=\relsize{#...
user avatar
1 vote
1 answer
29 views

How to navigate away from a given point in tikz?

I know this is a very basic question but I somehow have not found an answer to this searching through the documentation (although I have to say it is probably my bad). But how am I able to navigate ...
user avatar
0 votes
2 answers
78 views

specify a range using random numbers

I am using the following code to illustrate double angle theorem and although it works some of the time, I world like a method to define the random numbers so it always takes the form, as shown in the ...
user avatar
  • 115
5 votes
1 answer
123 views

Adding a "zooming" effect in a tikz scheme

I would like to ask if it is possible to add a kind of "zoom" effect by using tikz ? More precisely : I am trying to reproduce a figure like this : Thanks to another user : I am able to ...
user avatar
  • 163
3 votes
2 answers
229 views

Filling this parabola with pattern

I'm not entirely familiar with tikz but I want to create a drawing of a parabola, shaded (with the pattern, north west lines) and bounded. So far I've got this: \documentclass{standalone} \usepackage{...
user avatar
1 vote
0 answers
96 views

Is there a easy way to plot Jacobi Elliptic Functions with Tikz-PGF?

So The Jacobi Elliptic Functions are a little bit tricky to plot because they depend on the complete elliptic integral of the first kind K(k) that can be written as a sum of double factorials, and the ...
user avatar
0 votes
1 answer
36 views

How do I plot the solutions of an equation of a 3D Plot?

I want to plot all possible solutions for sqrt(|x||y|) = 2 into my plot as a line. My code for the plot currently looks like this \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat = ...
user avatar
0 votes
2 answers
37 views

Ignoring the space occupied by the text in a node in a TikZ diagram

I have text in a node that I would like to occupy no horizontal space. (I intentionally made the text long to show how the TikZ diagram was shoved to the left margin.) I enclosed the text in a \...
user avatar
  • 1,013
0 votes
1 answer
74 views

Problem plotting 3D data from file using surf

I am trying to plot 3d data as a surface plot. However the result is not the one I would like to obtain. Here is the code: \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{...
user avatar
0 votes
2 answers
35 views

Tikz flowchart won't center, unwanted white space on the left side

I am working on a short project for school, which needs a flowchart to show the process I used during the development of analogue films. I found a template for building flowcharts in LaTeX which I ...
user avatar
4 votes
2 answers
180 views

hobby package - alignment of labels to curves

I am trying to label curves which are created by the package hobby. However, I can not align labels properly in the horizontal and vertical direction. In the first image I am able to use specific ...
user avatar
  • 141
2 votes
2 answers
84 views

Making the environment of A Cap B less thick

How do I decrease the thickness of the line encompassing A intersection B? This is my Code: \documeentclass{book} \usepackage{tikz} \usetikzlibrary{patterns} \begin{document} \begin{venndiagram2sets}[...
user avatar
0 votes
3 answers
78 views

Understanding the code and trying to learn

I have used the following code to create triangles inside a circle which works really well. Can anybody point me in the direction to somewhere I can learn to adapt this code so for example creating ...
user avatar
  • 115
5 votes
3 answers
414 views

How to create triangular pyramid of oranges using tikz

I wish to draw triangular pyramids of oranges. The kth layer has k(k + 1)/2 oranges, the kth triangular number. The number of oranges in the nth stack is n(n + 1)(n + 2)/6, the nth tetrahedral ...
user avatar
0 votes
1 answer
42 views

Insert a tikz figure to the top left in Beamer

I am using the following template from Overleaf. I tried to remove the logo from the top left area by changing \setbeamertemplate{headline}{\hspace{0.06\textwidth}\pgfuseimage{\@SINTEFlogo}} to \...
user avatar
0 votes
3 answers
72 views

Drawing a customized frame using tcolorbox or tikz

I am trying to draw this (it should adapt to text width and height). I would like to use either tcolorbox or tikz. Sorry for not providing any MWE, I have no clue how to start. Thank you!
user avatar
0 votes
0 answers
33 views

Layer items in a tikz pic

I am using the following code, but I would like the circle and triangles above the angle marks, is there an easy way to layer items in a tikz pic? \documentclass[tikz,margin=2mm,5pt]{standalone} \...
user avatar
  • 115
0 votes
1 answer
25 views

fillbetween gives undefined sequence error

I wish to create a shaded region between the step function and the curve. The following code gives the below graph. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.18} \...
0 votes
3 answers
84 views

Use exact fractions at tick marks with TikZ

In this MWE, I want to be able to use rational fractions $\frac{1}{9}$ and $\frac{2}{9}$ as labels at tick marks on an x-axis. How can the following be modified to do that? (In the real application, ...
user avatar
  • 6,538
1 vote
0 answers
41 views

How to combine equations and tikz to get helpful notes at equations?

Is there any way to combine the helpful syntax of align environments with the graphical options of tikz? I am looking to reproduce equations that look like this picture: First equation: \begin{align*}...
user avatar
1 vote
1 answer
61 views

Make a special grid with tikz

I want to make a grid(cell size is 1cm x 1cm, the total size of the grid is 26cm x 17cm) by tikz because tikz can control size precisely. Please see the attached figure(yes, the final effect requires ...
user avatar
  • 2,321
2 votes
1 answer
40 views

Why are tick labels all at origin on TikZ axis?

Why are all the labels drawn at the origin instead of their specified positions? \documentclass[tikz,border=0.25mm]{standalone} \usepackage{amsfonts} \begin{document} \begin{tikzpicture}[line join=...
user avatar
  • 6,538
1 vote
1 answer
60 views

Plot graph with labels

How can I draw the following graphs? I wanted to do this with Python or Matlab, but I heard that this also works with LaTeX.
user avatar
  • 403
1 vote
1 answer
62 views

Nodes and text in block diagram (Tikz)

I have the following block diagram Can someone help me with red marked things on my figure? Here is my current code: \usepackage{tikz} \usepackage{float} \usetikzlibrary{shapes,arrows} \...
user avatar
  • 171
1 vote
1 answer
55 views

How to draw arrows on a grid?

I am a little new to LaTeX and I am trying to draw this grid with arrows using TikZ. Currently I am only able to draw the grid using : \begin{tikzpicture} \draw[step=1cm, black] (-1.9,-1.9) grid (5.9,...
user avatar
0 votes
1 answer
38 views

Tikz: how to draw a fat arrow with arched lines

What type of parameters do I need to change in the draw function if I want to get an arrow-like below (see Picture) between my nodes?
user avatar
0 votes
1 answer
38 views

How to align edges of certain levels in forest package?

I have a two-column document and created the following tree: As you can see, the third level overlaps with the text of the other column. To address this issue, I want to place the children ...
user avatar
1 vote
2 answers
148 views

How to draw "ring-like" graphs?

I want this type of plot. I have use tikz and tkz-berge package and write the code \documentclass[11pt]{article} \usepackage{tikz} \usepackage{tkz-berge} \begin{document} \SetVertexNoLabel \begin{...
user avatar
0 votes
1 answer
45 views

Declare new command to denote the condition with additional settings

Can someone tell me how to set the parameters of a declared new command similar to how it is set in the TikZ package? More specifically, I would like to declare a function \condVert{} that sets a ...
user avatar
  • 97
3 votes
2 answers
607 views

How to draw this TikZ figure?

Consider: \documentclass[12pt, a4paper]{report} \begin{document} \usepackage{tikz} \usetikzlibrary{arrows.meta, positioning, quotes} \begin{figure} \centering \begin{tikzpicture}[ node ...
user avatar
  • 609
0 votes
1 answer
49 views

How to correct asymmetric TikZ graphic?

I've created a graph with TikZ. The problem is that the arrows do not have the same length, so the whole graph is asymmetric. Is there a way to correct that? \documentclass{article} \usepackage\[utf8\]...
user avatar
0 votes
1 answer
31 views

Improve TikZ picture

My program is the following one, but, as you can see, I get two errors (Missing $ Inserted) probably because I shouldn't use the cases environment here. If so, what is my alternative? Also, any other ...
user avatar
0 votes
1 answer
40 views

Decoration marks not working with "in" and "out" attributes

I am using this TikZ code : \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.markings, positioning} \tikzset{ mdot/.style={ shorten >=#1, decoration={ ...
user avatar
0 votes
0 answers
29 views

Error when Trying to Plot XY data in Beamer

I'm trying to plot XY data from a .csv file in beamer (Overleaf). I am getting a lot of error codes, but the first one is shown below: LaTeX Error: \begin{axis} on input line 9 ended by \end{beamer@...
user avatar
0 votes
0 answers
35 views

Why Does PGFPLOTs not work in Beamer article class?

I am writing a masters thesis and have many graphs built using PGFPLOTs TIKZ and CSV data files. These graphs work perfectly fine when my document class is article; however, when I try to switch my ...
user avatar
1 vote
2 answers
79 views

Highlighting Edges in TikZ picture

I have attached a picture for sample, I want some edges in color as shown in the figure. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{hyperref} \usepackage{tikz} \usetikzlibrary{...
user avatar
4 votes
1 answer
171 views

Math symbols ruins alignment

When I'm entering this code (an edited version of https://tex.stackexchange.com/a/236098/272441): \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{matrix,backgrounds} \begin{document} \...
user avatar
0 votes
1 answer
35 views

Both filling between two curves and orienting curves curves don't work at the same time

How can I fix the code below to both fill area in between two curves and orient the curves? \documentclass[10pt,thmsa]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage[a4paper,left=2cm,...
user avatar
1 vote
1 answer
63 views

Draw closed-loop flow diagram using Sankey package

I'd like to use the LaTeX Sankey package to draw the following closed-loop circular flow diagram, where the width or thickness of the arrows are indicative of the magnitude of the flow they represent. ...
user avatar
0 votes
3 answers
82 views

Adding two coil paths together in tikz

I have two coils, which I make with code from here I want to add the coils together, like cos(x) + cos(2x), to get a new one. But I am not sure this is even possible with how I made them. Can it be ...
user avatar
  • 365
3 votes
1 answer
46 views

Pgfplots piecewise function wrong plot

Why the plot is wrong? The exponential function is positive so it must not goes below the 0 line \documentclass[a4paper,12pt]{book} \pdfpagewidth\paperwidth \pdfpageheight\paperheight \usepackage[T1]{...
user avatar
1 vote
1 answer
28 views

Assign colors based on values using a colormap spanned by three colors

I am trying to assign colors to lines based on some numerical values. I want the colormap, from which the colors are sampled, to be spanned by three colors: violet, red and yellow (as can be seen in ...
user avatar
0 votes
1 answer
42 views

Failed to use TikZ to draw lines matching \delimsize

In this answer @egreg proposed a method to use dashed line in the notation of sets. In a similar way, I would like to use TikZ to draw the separation line. The idea is also to measure the height of $\...
user avatar
  • 6,080
1 vote
0 answers
62 views

Get page edges coordinates in Metapost and ConTeXt

I have written several macros for my projects using TikZ. Several of them need to be aware of the page edges and margins. For example, this is a small macros I have written to draw rectangles from the ...
user avatar
0 votes
0 answers
22 views

Issues at having definitions, examples, etc. numbered in beamer

everyone! I am trying to have definitions, theorems, examples and exercises properly numbered. I've even tried to have the "examples" that span more than one slide numbered by using \...
user avatar
0 votes
1 answer
40 views

tikz graph with boxes

i simply want to create something like this, i tried something like this: \documentclass{beamer} %layout \mode<presentation>{ \usetheme{Madrid} } \usepackage{tikz} \usepackage{pgfplots} \begin{...
user avatar
2 votes
2 answers
78 views

Package pgfkeys: I do not know the key '/pgf/ color'

I am trying to plot a chart using the following chart: \documentclass[aspectratio=169,10pt]{beamer} \usepackage{tikz} \usepackage{pgf-pie} % Pie chart library \begin{frame}{Work} \begin{figure}[...
user avatar