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

Pgfplots: Calculating linear regression, but ignore outliners for certain Y values

So i have a scatter diagram and generated a regression line. There are some outliner that heavily influence that line. I would like them to be ignored for the calculation of the linear regression. It ...
user avatar
  • 1
0 votes
0 answers
15 views

solving equations in a tikz picture

I am trying to use the following code but automate the inputs $5$ and $6$ to represent $ax^2 +bx +c$ with the product being c and the sum being b. \documentclass{article} \usepackage{tikz} \...
user avatar
  • 117
2 votes
1 answer
40 views

Expansion of foreach loop inside \draw

I have a hard time understanding the response to the GitHub issue pgf-tikz/pgf#356. The original question asker has posted the following MWE. I've wrapped it with \begin{document} for completeness. \...
0 votes
1 answer
40 views

Help with a tikz picture

I am trying to create something like the picture below, here is the code I have so far but it will not render I am not sure where I am going wrong. \documentclass{article} \usepackage{tikz} \...
user avatar
  • 117
2 votes
1 answer
131 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 \...
user avatar
  • 2,343
8 votes
2 answers
276 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} ...
user avatar
1 vote
1 answer
47 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 ...
user avatar
  • 13
4 votes
2 answers
105 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 ...
user avatar
  • 1,277
0 votes
0 answers
23 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 ...
user avatar
0 votes
0 answers
16 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} ...
user avatar
  • 117
0 votes
2 answers
49 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{...
user avatar
  • 875
2 votes
1 answer
309 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{...
user avatar
  • 21
0 votes
1 answer
56 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 ...
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 ...
user avatar
  • 185
0 votes
1 answer
32 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]{...
user avatar
  • 3
1 vote
0 answers
40 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) ; ...
user avatar
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 ...
user avatar
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} \...
user avatar
  • 205
1 vote
1 answer
48 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) {\...
user avatar
  • 5,285
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}...
user avatar
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 ...
user avatar
  • 205
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 ...
user avatar
1 vote
1 answer
27 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[...
user avatar
  • 5,285
2 votes
2 answers
87 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 ...
user avatar
  • 10.4k
3 votes
1 answer
43 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 ...
user avatar
  • 33
6 votes
1 answer
126 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} \...
user avatar
0 votes
0 answers
48 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
user avatar
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,...
user avatar
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. ...
user avatar
  • 1
2 votes
2 answers
61 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 ...
user avatar
  • 23
0 votes
0 answers
37 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} \...
user avatar
  • 117
5 votes
0 answers
60 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 ...
user avatar
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 ...
user avatar
  • 169
-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 $\...
user avatar
0 votes
1 answer
49 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 ...
user avatar
1 vote
1 answer
95 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 ...
user avatar
0 votes
2 answers
74 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 ...
user avatar
  • 2,343
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} \...
user avatar
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{...
user avatar
0 votes
2 answers
40 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} ...
user avatar
  • 35
0 votes
1 answer
34 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: %------------------------- % ...
user avatar
  • 51
0 votes
3 answers
69 views

How to draw an arc in tikz?

I am trying to draw an arc based on How is arc defined in TikZ? \documentclass[tikz,border=5pt]{standalone} \begin{document} \begin{tikzpicture}[thick,font=\sffamily\Large] %\draw[red] (2+0.02*cos(330)...
user avatar
  • 141
0 votes
2 answers
51 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, ...
user avatar
0 votes
0 answers
33 views

Self loop in ln latex

\documentclass[12pt,a4paper]{article} \usepackage{tikz} \tikzset{mynode/.style={inner sep=2pt,fill,outer sep=0,circle}} \begin{document} \begin{tikzpicture}[scale=.60, thick, acteur/....
user avatar
  • 313
0 votes
0 answers
38 views

tikzpicture ends up way outside the limits of the page

In my document which is defined as A4, I want to place our logo in the upper left corner of the first page. The code I'm using for this is: \begin{tikzpicture}[remember picture,overlay] \node[...
user avatar
0 votes
2 answers
51 views

Bulleted list with vertical lines and closed loop

I would like to have a bulleted list with vertical lines as in this thread: Bulleted list with vertical lines ...but with an additional connection between the first and the last element, as in the ...
user avatar
0 votes
0 answers
54 views

Unwanted words appear on first page [closed]

I currently have an issue the cause of which I cannot find. On the first page of our document, a weird text which says "pgfcalendar" appears (see picture). Usually I would guess, that this ...
user avatar
  • 11
0 votes
0 answers
27 views

Same options with different order cause different behaviour

I had believed that the typeset positions of Exp1 and Exp2 in the following code should be the same on paper. The only difference between Exp1 and Exp2 is the order of the options xshift and scale. ...
user avatar
  • 2,343
0 votes
0 answers
28 views

How to utilize svg2tikz?

I am trying to convert an SVG image (or a PDF image) to TikZ code. I installed svg2tikz two ways, 1) as an Inkscape extension and 2) as a Python pip extension. The documentation is useless. I cannot ...
user avatar

1
2 3 4 5
627