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
1 vote
1 answer
26 views

How to extract text from argument

The following code tries to extract plain text from formatted argument(here is \bfseries) and fails. \x is used to store the expansion result of \pgfkeysvalueof. \edef is for fully expansion of \...
1 vote
1 answer
32 views

How to paint the regions?

I wanto to paint the figure But, I can only do the drawing without the painting. My codes: \documentclass[12pt]{article} \usepackage{fontspec} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
1 vote
1 answer
40 views

How to turn square brackets into curly brackets?

I'm using the forest environment to draw systems/trees. This is the tree I am drawing. In the tree there are five brackets. However, I would like to turn the first square bracket (the one embracing ...
27 votes
1 answer
78k views

Drawing rectangle with tikzpicture

I would like to draw three small rectangles 0.3*0.3 cm at the positions (11.1,5.5) resp. (11.1,5) and (11.1,4.5). I have tried do like this: \documentclass{article} \usepackage{tikz} \begin{document} ...
4 votes
2 answers
81 views

Draw previously named path(s) in TikZ

I have a slightly different question from the already asked here on TeX.SE. I would like to define many paths inside a foreach statement and then use their names later on in the drawing. When having ...
1 vote
2 answers
78 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.
0 votes
1 answer
52 views

Unexpected behavior when drawing a regular polygon

I'm practicing using pin and marks on \coordinate and \node. Goal/Expected output A regular polygon parametrized by the number of sides n with each vertex marked by a circular dot and a label outside ...
2 votes
1 answer
302 views

How to rotate 3D arrow

How to flip the 3D arrow in the y-axis, as shown in the graph and also add the veritical arrow with polarization. I found this code from stack exchange website. \documentclass{standalone} \usepackage{...
0 votes
0 answers
22 views

How to draw a plot as a zoomed portion of another plot?

I am new to Tikz. I've been trying to draw two plots, one is a zoomed branch of the other but I have been unable to achieve this using Latex. Basically what I wanted to do something like this (this ...
0 votes
0 answers
15 views

trying to produce a cross diagram with quadratic inputs

I produce something like below but have not able all I have is the nodes but it doesn't work, any help would be appreciated \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} ...
0 votes
2 answers
46 views

How to draw this picture use TikZ?

I want to draw this picture, i saw \draw[domain=0:360,samples=1000] plot (\x:{2*sin(2*\x)});,But they are not very similar,and my MWE as follows: \documentclass{standalone} \usepackage{tikz} \begin{...
0 votes
1 answer
17 views

Adding Offset to Node Fitted on 2 Matrix

I have 2 problems with the following diagram: I need to decrease space only between two matrix N2 & N5 I need to offset the node to be slightly larger then the matrix N2 & N5 that it is ...
0 votes
1 answer
35 views

How to add details to this LQN flowchart with TikZ?

I am trying to reproduce the following chart with Tikz: Here it is so far what I obtained: with the following code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \...
1 vote
0 answers
73 views
+50

How do I programmatically typeset Polynomial Long Division with connected parenthesis and line? (Possibly using TikZ)

I generally am fine with using the \polylongdiv{<dividend>}{<divisor>} macro from the polynom package: but I was wondering, How do I programmatically typeset Polynomial Long Division with ...
0 votes
1 answer
31 views

There's no line here to end with a caption of tikzfigure

When compiling the following MWE I get a "There's no line to end here" on line 15. MWE: \documentclass[a0poster]{tikzposter} % See Section 3 \title{MWE} \author{Baaboo} \usepackage[utf8]{...
1 vote
0 answers
38 views

TikZ equivalent cover background of METAFUN

I have this code % cover in METAFUN \startuseMPgraphic{cover} StartPage ; fill Page withcolor white ; pickup pencircle scaled 2mm ; path p ; p := tensecircle(1cm,.75cm,.15cm) xsized(PaperWidth-2cm) ; ...
0 votes
4 answers
105 views

How to draw semi cyclinder with tikz

I want to draw below picture. How can we calculate the tangle angle automically. %https://tex.stackexchange.com/questions/564162/drawing-half-cylinder-under-a-pyramid-through-tikz Thank you in ...
0 votes
1 answer
43 views

Silly problem: font in y labels do not change

I never encountered these problems, in a plot I am able to set the font size and family of labels in the x-axis. With the same command I am able to set the size of the font of labels in the y-axis but ...
1 vote
2 answers
39 views

TikZ Causal Graph Details (bold, arrow positions, text above paths)

I am having a hard time to figure out how to design a causal graph with TikZ. The graph should look like this: The code below is as far as I get, but it does not have some important details (see ...
1 vote
1 answer
45 views

Transfiguring an Image with Multiple Tikz Shading Angles

Consider the code \documentclass{book} \textheight=10in \usepackage{tikz,graphicx} \begin{document} \thispagestyle{empty} \begin{tikzpicture} \node[opacity=0.5, inner sep=0pt](A) at (0, 0) {\...
2 votes
1 answer
114 views

TikZ grid lines shifted slightly

I know that this is not really important, but it bothers me that I do not know if is an internal rounding error, or there are some offsets I do not know about!? The lines of a grid are shifted ...
14 votes
1 answer
11k views

How do I draw a circle around a term in an align* equation?

Here's what my equation looks like; it's in an align* environment: I want to put a circle around $\varepsilon \frac{dL}{d\varepsilon}$ and everything else unchanged. Q: How do I draw a circle ...
2 votes
0 answers
41 views

Using tikzmark in leaflet

There seems to be some problems when using tikzmark (or similar) in a leaflet document. I'm guessing this has to do with the strange positioning leaflet performs. Here is a MWE: \documentclass{leaflet}...
3 votes
1 answer
42 views

Fully customized figure template - align figures and text (captions) at will

I would like to manipulate subfigures and captions exactly as I want. The result I want to obtain is visible just below: I want to display Image 1 at 0.8\textwidth (the width/height ratio will always ...
0 votes
1 answer
72 views

How to properly insert .tikz file using \graphicspath?

I am trying to get the following tikz file to run % Red-black tree % Author: Madit \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \tikzset{ treenode/.style = {align=center, inner ...
2 votes
2 answers
86 views

Palindrome animation pausing at beginning and end

I have created a nice animation using tikz and the animate package, which I am playing in palindrome form. It's something like the following example, although of course this is simpler than my real ...
1 vote
1 answer
76 views

How to access an array of dates (tikz calendar)

I have defined an array of ISO-dates. Next, I need to convert the dates to Julian days. As the following code shows, this is possible using the \foreach statement + \pgfcalendardatetojulian (method 1)....
0 votes
0 answers
41 views

How to reproduce this flowchart with Tikz? [closed]

How can I create a graph representing a Layered Queuing Network with Tikz? I have to create something that resembles this flowchart which represents an LQN. I am new to Tikz and I really don't know ...
6 votes
1 answer
123 views

Draw boxes around nodes in tikz

I want to create something like this: from the following code without the boxes: \documentclass{beamer} %layout \mode<presentation>{ \usetheme{Madrid} } \usepackage{tikz} \begin{document} \...
1 vote
1 answer
26 views

Embedding a Pspicture within a Radial Fading Tikzpicture

The following MWE is taking some code from How to Produce a Colorized Aura About an Image and Which Resembles That Image which produces a "radiant" Norman Window. Consider, \documentclass[...
2 votes
1 answer
41 views

Properly center math mode with indices within TikZ nodes

When making a graph in TikZ where the labels of some nodes have indices and the labels of others do not, there is a very ugly effect where TikZ tries to center the entire label instead of the baseline,...
0 votes
0 answers
46 views

drawing conceptual framework in latex

How I can I draw my PhD conceptual framework in Latex in step wise buildup way any one who can help
2 votes
2 answers
59 views

Adding horizontal offset to node (TikZ)

I'm currently trying to create a small diagram with arrows between two nodes and text next to the arrows. Currently, my diagram looks like this: But, I would like to have the text at the left of the ...
0 votes
0 answers
25 views

Tikz externalize not working on Tectonic despite shell-escape enabling

While trying to compile some graphs with PgfPlots I incurred in the out-of-memory error in Tectonic. I therefore looked around for solution and Tikz externalization presented itself as a solution. ...
0 votes
1 answer
48 views

How Do I Typeset Horner's Method / Scheme of Regular Synthetic Division and Expanded Synthetic Division for Monic Divisors and Non-Monic Divisors?

I personally do not like the \polyhornerscheme[x=x_0]{<a_0 + a_1 x + ... a_n x^n>} macro of the polynom package because of personal aesthetic preferences and how it doesn't have a general enough ...
41 votes
2 answers
9k views

TikZ \foreach loop with macro-defined list

I have a small problem with the TikZ \foreach loop whenever the list, over which we loop, is defined my a macro. The following code example will show my problem: \documentclass{scrartcl} \usepackage[...
0 votes
0 answers
34 views

creating random questions for a worksheet

This might be too much to ask but I would like to create a worksheet like the one below, \documentclass{article} %AdditionCode % \usepackage{amsmath} \usepackage{mathtools} \usepackage{enumitem} \...
7 votes
2 answers
6k views

Where to find the gnuplot lua-tikz-terminal?

Where can I still download the gnuplot tikz terminal? I keep winding up at broken links... Or is there another alternative that makes gnuplot output tikz drawings? Oh, and will I be able to get it ...
5 votes
0 answers
56 views

Capillary waves in tikz-3dplot

Here I am again humbly pleading for your assistance. I need to replicate this figure: So far, I have managed to get this (the view point is not so important): But I am struggling to replicate the ...
0 votes
0 answers
41 views

Tikz: call self defined coordinate of local bounding box

I am drawing a tikz picture with some arrows. There are two separate sets of formations which have to be rotated against each other in a specific way. That's why I am using two scope-environments. To ...
1 vote
2 answers
427 views

PGF groupplot ylabel not aligned

I have some multiplot I created via matlab2tikz with multiple ylabels. Those were not aligned. I also tried the solution in [this answer] but still. This is the wrong output using my code (see below)...
0 votes
1 answer
81 views

Tikz - LaTex - Creating the vertices of a triangle using arguments

I have a .sty file for my project and I'm trying to write a newcommand in there to take 3 arguments that are the 3 side lengths of a triangle and then draw the triangle. I'm not quite sure how to ...
0 votes
1 answer
32 views

Stop titlerule from overlapping with image

I’m using the “Abey Resume Template” from Overleaf’s Resume Templates. How to stop the titlerule of \section from overlapping with the image? Thanks!! Picture: MWE: %------------------------- % ...
-1 votes
1 answer
33 views

2 lines intersecting at the origin

How can I draw these colored pictures in Latex? I am not caring about the thickness of the coloured lines in both pictures, ordinary thickness is fine. Also the letter below the first figure is $\...
0 votes
2 answers
73 views

expansion of tikz coordinates

I trid to draw a line with TikZ and failed, as the code of version 1 shows. I think this is because the expression \pgfmathresult\textwidth for the end coodinate does not expand. So I tried the code ...
0 votes
0 answers
34 views

Brackets and circumflex in TikZ coordinate calculations [duplicate]

What's the difference between \draw[domain=-3:2] plot(\x,{-0.07*(\x)^4+1.51*(\x)^3-9.58*(\x)^2+23.94*(\x)-17.59}); and \draw[domain=-3:2] plot(\x,{-0.07*\x^4+1.51*\x^3-9.58*\x^2+23.94*\x-17.59}); ? ...
0 votes
0 answers
17 views

Showing "Runaway Argument?" error

\documentclass[25pt]{article} \usepackage{animate} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{frame} \begin{animateinline}[loop, controls]{4} \newcounter{x} \setcounter{x}{0} \...
0 votes
2 answers
50 views

Universal method for put y label at middle of y axis

As the title suggests, I would like to know if there is a "universal" method to position the label of the ordinate axis horizontally to its left and vertically to its center. In other words, ...
1 vote
0 answers
29 views

How can I fix this beamer presentation error?

I am making a beamer presentation that has some tikzpictures and pgfplots and I get this error : >Illegal parameter number in definition of \beamer@doifinframe. I tried adding fragile in \begin{...
0 votes
2 answers
38 views

How to write text in each subpart of box?

I want to write a letter in each box mentioned below. I also want to write a text on the top of the rectangle. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \begin{document} ...

1
2 3 4 5
627