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
0answers
9 views

Tikz Draw Element At The Top Aligned Relative To Element At The Bottom

I am trying to make a Latex command which allows me to deploy some kind of progress bars. Ideally something like this is the goal: As a side note, I'll probably replace this progress bar later with ...
0
votes
0answers
11 views

Symmetric Economic Curves

When I try to create symmetric curves for the left of the y-axis I get weird results. Does anyone have any idea what to do to get symmetric results? \begin{figure}[h!] \caption{???} \centering \begin{...
0
votes
0answers
19 views

Add decoration to set of arrows with pgfplots

I have this code for a set of joined arrows. How can I add a wave effect to them so I can control the length and amplitude of the wave? \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{...
0
votes
2answers
43 views

Graphing correctly a quadratic function

I have the following MWE \documentclass[tikz,border=2mm]{standalone} \begin{document} \begin{tikzpicture}[domain=-1:6] \draw[very thin, color=green, step=0.2cm](-2,-3) grid (7,11); \draw[color=cyan](-...
0
votes
0answers
22 views

Several Curve Image to Accompany the Brachistochrone Problem

I would like to produce the following image in Latex: I have searched this site for a Brachistochrone picture that I might modify and found one contained in this post: Coding brachistochrone curve in ...
0
votes
0answers
24 views

Directed Graph Pertaining to the Collatz Conjecture

The following directed graph contains sample orbits of the Collatz Conjecture. I think it may have been originally produced with Mathematica. Is it possible to produce something similar with Latex? ...
1
vote
0answers
27 views

Shading with polar curves when using tikzfillbetween

I am currently trying to plot a portion of a ring which got distorted at one point. To this end, I am plotting two curves into polar coordinates with tikzfillbetween these two paths. Here is the ...
2
votes
2answers
49 views

Why is tikz foreach behaving strange when visiting nodes

I want to use foreach to draw connections between a sequence of nodes. But, for some reason, foreach forgets the position of the last node. Here is an MWE illustrating my question: why are the two ...
0
votes
0answers
27 views

cs system of tikz fails when using newlength

I found this nice answer on reversing tikz coordinates Reverse coordinate system/axis in TikZ However, it fails one you use \newlength as shown in this example: \documentclass{standalone} \usepackage{...
0
votes
0answers
31 views

tcolorbox.sty and tikz not supporting spot color (using dvips)

My codes are follows: % Using spot colors with xcolor and pstricks. % process with: % $ latex xcpst % $ dvips -h tex.pro -h xcolor.pro -h spot.pro filename.dvi \begin{filecontents*}{PANTONE2925C.pro} %...
0
votes
0answers
17 views

How to generate a centered and captioned TikZ figure in a .docx file that has been converted from .tex with pandoc?

Recently, I have been having some issues with TikZ in LaTeX. I want to convert my PhD dissertation, written in LaTeX, to .docx using pandoc. I am able to use lua filters to have pandoc convert TikZ ...
0
votes
1answer
34 views

tikz: specify the size of image

Consider this example: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0.0, 0.0) rectangle (1.0, 2.0); \end{tikzpicture} \end{document} How can I have the ...
0
votes
1answer
42 views

TikZ: rounded rectangle specifying dimensions

I am studying Draw a rectangle with rounded ends in TikZ but it appears that the dimensions of the rectangle are dependent on the text in the node. How can I draw a rounded rectangle specifying ...
0
votes
0answers
26 views

Can't reduce the size of my Tikz figure using ```clean figure``` from matlab2tikz

I have a MATLAB figure that has 3 subplots in it, each subplot has around 45000 points in a scatterplot. Since most of the points cluster around the origin, I tried using cleanfigure from matlab2tikz; ...
0
votes
1answer
51 views

How to draw a linear axis with different labels and references

In line with my previous question How to draw a linear axis with tick labels at different alternative distances?, which was answered successfully by @user30471, now I need to make a variation based on ...
7
votes
2answers
256 views

A professional stamp in relief

Related to these previous my questions A special annulment (i.e., cancellation) of a stamp and Date time in two rows in Italian format and time zone I have created another MWE to have some different ...
1
vote
1answer
39 views

How to place arrows horizontally above/below a table?

I am trying to draw arrows next to a table like this: I was able to draw vertical arrows using the technique shown here: $\left. \begin{tabular}{|c|c|c|} \hline medium & high & high \\ ...
1
vote
1answer
42 views

Re-creating a scatter plot(s), changing background colours and layout

I am trying to create something similar to this plot: I have managed to create the first 3 scatter plots and now I would like to try and replicate the image. Add horizontal and vertical lines colour ...
0
votes
1answer
41 views

Get value f(x) declared in the tikz environment

I've declared my f(x) in the tikzpicture environment, and tikz draws the graph of it. OK, now I want mark a point on the plot of my function. I thought, I could \coordinate point M at (x, myrandomf(x))...
2
votes
2answers
99 views

Schematic diagram with switches

I want to do this diagram in latex. I know how to draw rectangles and arrows (basic tikz user) but doing it symmetrically such that the arrow head is in the center of the box consumes a lot of time (...
1
vote
1answer
63 views

Plot of function composition by coordinates

I'm try to plot the function $2^f(x)$ where $f(x)$ is a piecewise function. $f$ is given by a set of coordinates, i.e: \addplot[blue,line width=1pt,rounded corners=1pt] coordinates { (-6,4) (-2,0) (-1,...
-1
votes
1answer
82 views

Best way to draw graphs of functions for students [closed]

My question is more like ask for a common advice from more skilled people. Let's say you write a manual covering some math or physics topics. You know TeX quite well, you can write complicated ...
1
vote
1answer
28 views

“Crossing over” not working for down arrows in tikzcd

Here's my code: \begin{equation*} \begin{tikzcd} 0 \arrow[rr] & & A\arrow{dd} \arrow[rd]\arrow[rr]&& B\arrow[rd]\arrow[rr]\arrow{dd} && C\arrow[rr]\arrow[rd] ...
2
votes
1answer
39 views

Drawing multiple arrows between two given points with pgfplots

I need to draw some arrows between two given points in my diagram. I want to turn the shorter arrow into four smaller ones and the longer one into seven, all joined together. How can I draw them ...
1
vote
1answer
32 views

Irregular Array With Cell Borders [closed]

I'm looking for advice about how to use tikz (or something else) to create images like the following (ignore the sloppy undeleted top border) in a beamer presentation. I will need to fill various ...
1
vote
2answers
45 views

Representing n-Nodes in Flow Diagram

I am trying to do the following using Tikz code adapted from my previous Question1 and Question2 The code I am modifying credits to @Zarko: \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{...
0
votes
0answers
32 views

Unwanted spacing between text and tikzpicture caused by “non-visual” code lines

I want to show some subgraphs of a certain graph. I want them side by side and labeled. This is what I've got: I can't provide working LaTeX-code, since I have implemented the graphdrawing ...
1
vote
0answers
28 views

Multi Line Frame Title with Image in Beamer

I'm wanting to try and make a header in beamer like the following (mockup from libreoffice, ignore the grid): I've been trying to use a number of methods, but I just can't get it right. This is where ...
2
votes
2answers
65 views

Line and dashed line in one object

I would like (see picture) to have a line (calculated automatically) that is partially dashed and partially visible. I hope there is a way to do this. Thanks in advance! \documentclass[a4paper]{...
2
votes
2answers
103 views

Draw perpendicular arrows in TikZ

How can I draw straight vertical arrow in my tikzpicture using \draw[arrow](position1)--node{text}(position2); My diagram looks like \tikzstyle{kaesten}=[rectangle, rounded corners, minimum width=3cm,...
2
votes
2answers
70 views

How to choose the right sequence for intersection segments?

I would like to fill the intersection between the disk and the form delimited by the folling plot : \documentclass[11pt]{report} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween}...
1
vote
0answers
29 views

Pgf set shade color [closed]

This question is asking about a command code and i don't have a specific MWE. I use \pgfsetfillcolor{cyan} to fill background of the beamer slide. But this command only gives me one color, cyan. Can i ...
2
votes
1answer
24 views

TikZ's \foreach tuple in PGF

I would like to plot a list of data and add according legend entries. I tried to use \foreach for tuples which is implemented in pgffor package and loaded with TikZ. Unfortunately, the second variable ...
1
vote
1answer
40 views

Why Tikz picture doesn't position after text?

I'm writing a report that is divided into sections. Each section has figures that I produced in MATLAB and used the matlab2tikz function to get the .tex file of the tikz figure. The problem is that I ...
1
vote
1answer
17 views

Axis label in tikzpicture is shifted [closed]

Why the x axis label not in the right position \documentclass[convert={density=300,size=1080x800,outext=.png}]{standalone} \usepackage{tikz,pgfplots} \pgfplotsset{compat=1.5} ...
0
votes
0answers
17 views

Exporting a PNG fails

I'm trying to generate a png image using the below command, however, the code only generates a pdf file, what is the problem? I used terminal and the command pdflatex --shell-escape test.tex \...
0
votes
0answers
28 views

How to vertically align and connect potential energy graph and phase space

I'd like to vertically align and connect each other two different graphs with two dotted lines: the first is the Epot(x) graph, and the second one is p(x) (phase space). You can see the output I want ...
2
votes
3answers
72 views

Labelling Angle Issues

I am trying to label the angles of a triangle. I can't figure out why my code is kicking the name to the outside. My apologies for any formatting issues; this is my first post here. \documentclass{...
4
votes
1answer
134 views

How to use pandoc to convert .tex file, containing a TikZ figure, to a .docx file?

What I want to do is to convert a .tex file, containing several TikZ figures to a .docx-file using pandoc. I have tried to follow the pandoc documentation and to use lua filters to achieve this. ...
0
votes
1answer
49 views

Generating a Moodle Quiz using latex fails

My code is below, and the error I got is details: Package tikz Error: Sorry, the system call 'pdflatex -halt-on-error -interact ion=batchmode -jobname "Midterm-tikztemp-1" "\def\...
1
vote
0answers
31 views

Undefined control sequence for tikzpicture bar plot [closed]

I am getting Undefined control sequence. error for the following tikzpicture code. it's generated at \end{axis}. I have checked the code multiple times but coundn't figure out the error. Please note ...
0
votes
1answer
30 views

How can I draw in an existing tikzpicture from an lstnewenvironment?

The below example works fine if I move the tikzpicture environment into the after command of the lstnewenvironment. However, if I want to draw in an existing tikzpicture, the node content is not shown....
1
vote
0answers
13 views

TikZ-Picture in Description Item Label [duplicate]

I would like to explain a diagram created in TikZ by creating a description environment with small parts of the diagram as item labels. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{...
1
vote
1answer
33 views

nesting multiframe

I wonder whether the following is possible. I'd like to nest animateinline and multiframe environments to simulate the time dependance of a signal for different parameters. Something like that: \...
3
votes
2answers
159 views

How to draw extension of sine function on tikz?

I want to recreate the following figure Here is my MWE \documentclass{article} \usepackage{subcaption} \usepackage[labelformat=parens,labelsep=quad,skip=3pt]{caption} \usepackage{graphicx} \...
-1
votes
0answers
72 views

Creating a trajectory plot in latex [closed]

I am preparing my presentation slides in beamer. I would like to create a plot, to illustrate location traces of participant's trip, indicating potential points of possible change in travel mode as in ...
0
votes
0answers
63 views

How to export the following geometric figure from GeoGebra to LaTeX?

I remember there used to be an option to export a trace from GeoGebra to LaTeX, but it seems that now it is not working anymore. Is there a way to export this figure to LaTeX using perhaps the tikz ...
0
votes
0answers
33 views

Error Undefined control sequence. \c@lor@to@ps ->\PSTricks

I'm trying to use the code given by Svend Tveskæg, however, when I compile I got this error ! Undefined control sequence. \c@lor@to@ps ->\PSTricks Drawing 3D Transformer with TikZ or PSTricks [...
11
votes
4answers
2k views

How to draw a diagram for “Rope Around the Earth” problem?

I would like to produce an image to help students to better understand the celebrated ``Rope Around the Earth'' problem, which asks---how much slack must be added to a tightly fitting rope around the ...
2
votes
2answers
95 views

Tikz tree diagram classification with functional levels

I'm trying to achieve the following tree diagram with functional level scheme, using the Tikz/forest package for my literature report: I'm still learning how to use these packages, but I'm stuck on ...

1
2 3 4 5
543