The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
5
votes
1answer
62 views

Edge style for certain types of nodes in TikZ-Tree

I have the following TikZ tree: \begin{tikzpicture}[grow=south, level 1/.style={sibling distance=50pt}, level 3/.style={sibling distance=25pt}, level distance=30pt, every node/.style={draw, circle, ...
3
votes
2answers
55 views

Vertical Plots in Vertical Triangle

So I want to have several vertical curves in a vertical triangle, like . I tried several things, but simple three point arcs cross the boundary of the triangle. Plotting a sine (which is still ...
0
votes
2answers
43 views

Change center and status of radius in random deformations of circle

Thank you for your answer. In the following code: \begin{tikzpicture} \path[use as bounding box] (-1.8,-1.8) rectangle (1.8,1.8); \draw[clip] plot[smooth cycle,variable=\t,samples at={0,45,...,315}]...
1
vote
1answer
30 views

plots-3d not applying transformation properly

I'm trying to plot a rectangle in 3D, but the following code I've written is giving unexpected results: \documentclass{minimal} \usepackage{tikz,tikz-3dplot} \begin{document} \begin{tikzpicture}[...
1
vote
1answer
64 views

Systeme and Tikzmark

The following program outputs the image below. My question: Can I improve this program to achieve a more precise image? The node were not calculated but were achieved by a trial-and-error. Any idea ...
1
vote
2answers
52 views

Best matplotlitb to Tikz conversion tool

What are some good, well-maintained packages for converting matplotlib plots to Tikz files for inclusion in latex documents?
1
vote
1answer
32 views

Tikz: Reuse parts of a plot and use parameters?

I have used Tikz to make a cube and now I'd like to make multiple instance of it at different position. Therefore I imaging something like a parameterized pic or a "normal programming function" to ...
5
votes
1answer
100 views

How to add a column with a week reference to a tikz-calendar

I would like to create a calendar like this one : And I found a code which was OK for me (once modified) but I don't know how to add the left column withe the letters A-B-C-D to qualify the weeks in ...
4
votes
3answers
727 views

Can't make parabola without including the tip

I am trying to make an absolute value parabola function with TikZ. When I try to create the right and left sides of the parabola(the ones that would be underneath the x-axis in a normal function) I ...
1
vote
1answer
70 views

Ellipse in perspective plane around 2 points in 3d space

I have the following trajectory, which should depict some path of 2 points on a rigid body. Each point is characterized by a coordinate frame. Now I'd like to use ellipses around the points instead of ...
3
votes
2answers
63 views

How to perfect the line joins?

I'd like to perfect my linejoins. How can I accomphish this? I tried line join=round in the \begin{tikzpicture} environment, like so \begin{tikzpicture}[line join=round], but it didn't solve the issue....
4
votes
1answer
98 views

Cube around 2 points with correct perspective

I'd like to display a moving rigid body with 2 coordinate frames attached to it. The body should be displayed around every link in the image below, so that the body is parallel to the line connecting ...
1
vote
1answer
32 views

Positioning Tikz over a table line

I'm trying to make a custom CV class with a job history timeline. Specifically, I would like a black dot over the table line next to the title. I've tried to do this with Tikz, but it isn't quite ...
3
votes
1answer
71 views

Differential equation solutions plot with quiver

I am trying to plot with \addplot3 but I don't know what are the inputs in quiver. I want a plot like this: The three points are the solutions of a differential equation. I need to plot other ...
1
vote
1answer
24 views

Tikz-Network angle creates extra margin

I am using the package tikz-network (https://ctan.org/pkg/tikz-network?lang=en). Following is my code: \begin{figure}[h] \begin{center} \begin{tikzpicture}[scale=0.5] %\SetVertexStyle[fontsize=\...
8
votes
1answer
277 views

Tikz: How to use multiple parameters in pic?

How is it possible to use multiple parameters in a single pic? It works nicely with just 1 parameter, but always results in errors in case of more than 1 parameter. I found this post, which didn't ...
1
vote
1answer
26 views

Callout (with line) into an image in function of the coordinates of a point

We suppose to take, as example, a very good @Jake's solution: Drawing on an image with TikZ where I have put a generic image (I not remember where I have download it). \documentclass[tikz]{standalone}...
3
votes
2answers
104 views

How can I draw overlapping triangles?

I need a non-equilateral triangle ABC and an equilateral triangle DEF to be overlapping ABC (with all 6 lines showing). Lines AD, BE, and CF need to be perpendicular bisectors (cut in the middle) of ...
13
votes
2answers
1k views

Plot irregular circle in latex

How to draw figure of attached file in LaTex?
1
vote
0answers
47 views

Problem with beamer and pgf for shading, related to theorem environment

I'm having problems when using beamer document class with certain themes. For example, with Warsaw theme, I get these errors: ! Undefined control sequence. \pgfsys@vertshading ...rSpace \pgf@shading@...
0
votes
2answers
52 views

Plotting (x,y, z axes)

I have some problems with this. I need to plot x, y and z axes, and then, this 3d figure. On the Net I did not find something similar (examples etc.). I need some hints or links that can help me with ...
1
vote
0answers
24 views

How to make clean junctions of line with `\draw` [duplicate]

Here is the MWE (sorry it's not too short) \documentclass[border=2pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{pgfplots} %pour Tikz et pgfplot \usetikzlibrary{positioning} ...
2
votes
1answer
26 views

Simple tikz `\draw` -| fails when the points are exchanged, why is that? [duplicate]

Here is the MWE : \documentclass[border=2pt]{standalone} \usepackage[utf8]{inputenc} \usepackage{pgfplots} %pour Tikz et pgfplot \usetikzlibrary{positioning} % pour le positionnement ...
5
votes
1answer
51 views

Double lines appearing at the border of tikz matrix table cells

I have a piece of latex code: \documentclass[parskip]{scrartcl} \usepackage[margin=15mm]{geometry} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{matrix} \definecolor{arbitrary}{rgb}{0.9,1,...
3
votes
1answer
104 views

Adding arrowheads to functions?

I have the following code, which outputs the red function. I would like to add arrowheads to the ends of the red lines, to indicate that there should be no endpoint. I can't figure out how! Any advice?...
0
votes
0answers
18 views

Geogebra not asking for range when exporting

So, I have a figure in geogebra, but when I export it as a Tikz code, geogebra doesn't ask me for the region of the grapsh I want, so I eventually get a third (at best) of my figure. Any idea why ?
2
votes
1answer
145 views

How to create an animated flowchart with LaTeX?

I need to draw a simple animated flow chart that describes the flow from each node to node. In the picture timeframe, denotes how the flow of the animation.
0
votes
0answers
65 views

Package pgf Error: Undefined shading “beamer”

I am writing a slide using Latex beamer documentclass. I have encountered **Package pgf Errors**: **Undefined shading** "beamer@barshade", "beamer@aboveframetitle", "beamer@belowframetitle". I have ...
8
votes
5answers
919 views

How to draw a Venn diagram for X - (Y intersect Z)?

I need to draw a Venn diagram for$ X - (Y \cap Z), but I can only figure out how to get $X - (Y \cup) Z)? Can anyone help? \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,...
2
votes
1answer
39 views

Trying to re-create a tikz figure

I am trying to create the following image, I have started it but its not how I expect. I would like the option to add colours to the network also - like: How can I add these changes? If I can just ...
1
vote
1answer
90 views

How to draw fractional power functions with Tikz in Latex?

I want to draw function .... with the LaTeX package but I can't. I draw the function in GeoGebra but it does not run in LaTeX. Please guide. \begin{document} \begin{tikzpicture}[line cap=round,line ...
1
vote
0answers
56 views

How to construct a relational database in latex for beginners

I would like to do an neat scheme of my database to pin down ideas, particularly I would like to do something like in the attached picture. Even though I have looked in internet thoroughly, I have not ...
0
votes
0answers
177 views

pgfplot ; animate ; pythontex : a plot of a derivative

With the BIG help of @njsg (Nuno Silva) I made this plot. The goal is use it as a animation inside a beamer slide. \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{...
2
votes
1answer
85 views

Stroke a path so that it's rendered half in one color and half in another

This is a question that's been asked twice before, but both of the previous solutions involve clipping; my paths are more complicated and I have a lot of them, the clipping solutions provided here and ...
5
votes
2answers
118 views

How to modify this code to add more vertical space in timeline that uses Tikz

I am using code by @szantaii from How can you create a vertical timeline? I know there other timeline code in Latex, but I like to use the above solution, since the vertical timeline has the actual ...
2
votes
1answer
38 views

How to add animations to presentation made by Latex?

I am using latex template from overleaf to make my own presentation. In Microsoft Power point, it is very easy to do animations. Could you please let me know how to add animations to the following ...
4
votes
1answer
50 views

Add text inside circuit component in circuitikz environment

Consider the following MWE: \documentclass[border={1mm}]{standalone} \usepackage[europeanresistors]{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0)to [R,o-o](3,0); \end{circuitikz} \end{...
1
vote
0answers
49 views

PGF generated plot via Matplotlib and using relative font sizes when input to LaTeX

I can produce plots on matplotlib and export them to pgf successfully. But I believe that by first defining a base font size on matplotlib rcParams (11pt for example), and then defining things like ...
0
votes
1answer
33 views

PGF Math Error: Unknown function when using babel with option ngerman

Here's the MWE for drawing a box with a width matching some text using TikZ: \documentclass{article} \usepackage{tikz} \usepackage[ngerman]{babel} \begin{document} \begin{tikzpicture} \node [...
1
vote
1answer
24 views

Plotting stdev error graph from external data file

I am trying to plot a tikz error (standard deviation) graph but i keep getting a parsing error: ! Package PGF Math Error: Could not parse input 'D1-1k' as a floating point number, sorry. The ...
1
vote
1answer
30 views

Latex Grouped Barchart

I am trying to draw a group tikz barchart (2 groups, 4 bars each) in Latex. I looked at all the questions and answers here but couldn't find a similar problem. My problem is that the graph output has ...
3
votes
2answers
53 views

Modify size of nodes and their opacity

I am drawing bipartite graphs using Tikz and I do not seem to make the nodes smaller (you can see in the code that I specified different sizes for nodes) or to make them seem opaque/2D. If you look at ...
3
votes
1answer
60 views

Why is the bounding box not updated when using arrows.meta arrowheads in inline tikz?

I am using inline tikz calls to create annotations in my documents. I am using the (below defined) \Curve macro to annotate graph plots (e.g. created with pgfplots) and \Curvee macro for more ...
13
votes
1answer
823 views

Speedometer as a symbol into awesomebox

Actually I'm using awesomebox package to draw blocks around text. Here there is an example. \documentclass[a4paper,12pt]{article} \usepackage{awesomebox} \usepackage{fontawesome5} \usepackage{lipsum} ...
3
votes
1answer
31 views

How rotate a part of label in circuitikz environment

Please consider the following MWE: \documentclass[border={1mm}]{standalone} \usepackage[europeanresistors]{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0)to [R,l={{{{\rotatebox[origin=c]{...
0
votes
1answer
22 views

Insert a component on the curved line in circuitikz environment

Please consider the below MWE: \documentclass[border={1mm},multi=circuitikz]{standalone} \usepackage[europeanresistors,siunitx]{circuitikz} \begin{document} \begin{circuitikz} \coordinate (N1) at (...
1
vote
1answer
20 views

Rotate the label of branch in circuitikz environment

Please consider the following MWE: \documentclass[border={1mm}]{standalone} \usepackage[europeanresistors]{circuitikz} \begin{document} \begin{circuitikz} \draw (0,0)to [R,o-,a=$+\;\; v_1\;\; -$](4,...
1
vote
0answers
45 views

Scale tikz down including lines and arrowheads

I want to scale down a tikzpicture, so it fits on one page. With [thick,scale=0.6, every node/.style={transform shape} that works pretty well, except for line thickness and arrowheads. So I was trying ...
0
votes
0answers
19 views

Text not aligned on baseline in TikZ [duplicate]

I have a problem in TikZ with text inside a node being aligned to total height, instead to baseline, as shown below. Notice how "Source" and "Load" are aligned to the baseline, but "Storage" is not ...
2
votes
2answers
88 views

How to draw this diagram with three boxes in TikZ?

My goal is to make a Tikz picture that looks like the example with the white boxes and letters inside. This is what I did so far (my example has gray boxes). I am not sure how to stack it evenly as ...