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
2
votes
1answer
77 views

Multiple Arrows in Table

I currently have the following table: Which corresponds to the following code: \begin{table}[h] \scriptsize % \centering \caption{Permutation Importance} \resizebox{\textwidth}{!}{\begin{tabular}...
1
vote
3answers
64 views

Aligning pictures along the center line

I create a picture like this. How can I align them along their middle lines? My code was like this: \begin{center} \begin{tikzpicture} %some codes to drat the first picture. \end{tikzpicture} \quad ...
7
votes
2answers
308 views

Remove intersect line for one circle using venndiagram2sets

Problem: I wish to remove the intersecting line for circle A (left). Minimal Working Example (MWE): \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds,positioning} \usepackage{...
4
votes
2answers
435 views

How to draw a gif with expanding circles that reveal lines connecting a non-centered point to the expanding circle using Tikz

I’ve racked my brain for weeks trying to create a .gif which is a moving version of what the below diagram represents. The goal is to start with point (A) and (B) at the same position (origin) with ...
1
vote
1answer
37 views

Drawing a number line

I am going through the TikZ tutorial in the manual, and I am trying to make my own examples. However, I cannot understand why my code is not woking as intended. I would like to draw a number line, ...
1
vote
2answers
40 views

Create intersect for Venn diagram and resize circles to adjust to box size

Problem: Two minor issues which I have not been able to solve. How do I fill the intersection for the second figure (on the right)? How do I create "padding" or more "air" around the circles in each ...
1
vote
1answer
58 views

How to add extra x coords and some space between bars in tikzpicture

I have this tikzpicture code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{pgfplots} \usepackage{tikz} \definecolor{trolleygrey}{rgb}{0.5, 0.5, 0.5} \...
0
votes
0answers
12 views

How to draw two graphs for graph matching example? [duplicate]

Please I want to draw an similar graph in my paper.i want to learn that through the following example: Consider please that the graphs are directed. What i sthe best if I want to put several graphs ...
2
votes
1answer
75 views

Draw four partition cone for plane in 2D

I am trying to Draw a figure below where lots labels but I looks difficult. I start with the following code but it seems not good start. Is possible to help draw the plot below: \documentclass[tikz,...
2
votes
2answers
63 views

using '\foreach' loops to draw tikz figures

I am using \usepackage{tikz} to draw something using xyz coordinates. I have a bunch of coordinates named (xyt) such as (000) (001) (020)...(001)(011) etc, they are created by: \coordinate (ijk) at (...
3
votes
3answers
176 views

how can draw a kiviat diagram? [duplicate]

How to draw a kiviat diagram like the following?
2
votes
1answer
48 views

Create dashed intersections with labels using pgfplots and tikz

Problem: I have several minor issues that I can not seem to be able to solve. Add and position labels to x/y-axis Add dashed intersections Show x/y-axis numbers for -1 and 1 Minimal Working Example ...
2
votes
1answer
24 views

Document compiling in online editor but not in TeXworks?

I have the following code, which compiles with no errors in the online editor OverLeaf, but it does not compile in the editor TeXworks that I have on my computer. \documentclass{book} \usepackage{...
1
vote
1answer
57 views

Included graphics in TiKZ with XeLaTeX get displaced

I have a problem with \includegraphics within TikZ with XeLaTeX, namely that the images get displaced. This is similar to the problem described in this question, but the symptoms are different. ...
5
votes
1answer
85 views

Where is my understanding of TikZ styles wrong?

I am trying to learn TikZ by reading the manual (p.34). I know my understanding must be completely off the rails, since nothing is working as I think I should; but I'm not sure what I misunderstood. ...
1
vote
1answer
27 views

Cannot find tikz package

I am trying to install tikz package, but it is not even listed. I am on Win 10 and using MikTex 2.9.
1
vote
0answers
32 views

Functional lines part II

Sorry for the barrage of questions, however I still run into some problems with the code for creating the functional lines. I was able to fix some minor bugs here Functional lines bug. However, the ...
1
vote
1answer
32 views

Functional lines bug

In an old question the user Jake, helped me make some code to create "function Defining a new command for making functional lines / package The code and result is amazing, alas per 2019 this code ...
3
votes
1answer
42 views

Unknown operator | when using data visualization and tikz

Problem: I am trying to get the function y = |x| to work with data visualization library in TikZ but without success. It seems the issue is with the operator |. Minimal Working Example (MWE): \...
12
votes
1answer
639 views

Draw 3D Cubes around centre

I'm trying to draw a set of rotated rectangular cuboids around a centre point in Tikz. I've created an example of what I'm trying to achieve in OpenSCAD below with the code to generate the above ...
1
vote
1answer
28 views

How to prevent label overlapping inside a fit in tikz

I have two nodes fitted inside a fit node. The fit node also has a label. The problem shown by the MWE below: the label is overlapped by the two inner nodes. Q: How to increase the fit node height ...
10
votes
2answers
314 views

TikZ Can I draw an arrow by specifying the initial point, direction, and length?

I would like to draw something similar to this: I was able to draw the triangles, but I cannot figure out how to easily draw the arrows. This is my attempt: \documentclass[12pt]{book} \usepackage{...
2
votes
0answers
62 views

In TikZ, can I place the (0, 0) point myself?

It seems like the location of the origin depends on the dimensions of the pictures I am drawing. Is it possible to fix the location of the origin yourself, or otherwise to manipulate the location of ...
4
votes
2answers
258 views

Replicating this Visual Proof with TikZ

I'm fairly new to TikZ and would like to replicate the proof without words shown here. Is there any way to construct these clean cubes in 3D without drawing them line by line? Thank you for your ...
2
votes
1answer
24 views

PGF Plots remove padding around axis

I created a nice pattern using pgfplots that I want to effectively use as the background to my generated PDF. The issue is that the plot ends up with a lot of white space around it. I think I have ...
0
votes
1answer
60 views

General Directions for Drawing This Diagram?

I was wondering if you can tell me which commands I should use to draw the various pieces with TikZ? I will write the code and adjust all the parameter, I would just like to know which commands are ...
1
vote
2answers
33 views

Colormap drawing order in parametric 3D tube

Similar to this question, I am trying to draw a parametric tube in a PGFplots 3D-plot: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \begin{document} \begin{...
4
votes
1answer
40 views

tikz: curley brace in a non-parallel plane

I am trying to denote some lengthes in a three dimensional tikz figure. But the result looks weird because the curley braces are not properly transformed. The transform shape option (which does the ...
0
votes
1answer
31 views

PGFPlots logarithmic scaling of x axis and ticks base 2

I'm trying to create a plot, where my x axis is scaled to base 2 and the ticks should be at the exact height of the coordinates. I have the logarithmic x axis, but i just can't get the ticks to be at ...
2
votes
1answer
57 views

how to draw bipartite graph with label?

I want to draw a bipartite graph like the following: I tried the following code: \definecolor{myblue}{RGB}{80,80,160} \definecolor{mygreen}{RGB}{80,160,80} \begin{tikzpicture}[thick, every node/....
5
votes
2answers
266 views

Drawing color tiles using Tikz

Hi good people of StackExchange, I want to draw a colored tile using Tikz. Roughly to represent the percentage three kind of things have in comparison to their total. The picture I want can be ...
2
votes
1answer
34 views

pgfkeys error with pgfplots/colormap

Consider the following MWE: \documentclass[tikz]{standalone} \usepackage{tikz,pgfplots} \pgfplotsset{% compat=newest, colormap={orangeyellow}{color=(orange) color=(yellow)} } \begin{document} ...
1
vote
1answer
37 views

Techniques to evenly display a bunch of nodes in a tikz document

To replicate the following picture (namely the evenly laid nodes a, b, c, d -- and I could want in the future to even have multiple rows, instead of just one) one can do one of multiple things: ...
1
vote
0answers
42 views

Tikz-standalone without redefining tikzstyle

I have a tikz standalone, where I make a tikz picture that is using tikzstyles I define in this file. \tikzstyle{block} = [rectangle, thick, minimum width=3cm, minimum height=1cm, text centered, text ...
1
vote
0answers
69 views

How can I improve the drawing of Thomae's function? [on hold]

I 'm trying to draw Thomae's function (in black). I want the plot below. I used marmot's code from here. \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \begin{tikzpicture}[scale=8] ...
9
votes
2answers
846 views

Programmatically Illustrating Permutations

Here's an illustration of what's known as an expansion permutation (the top half). It just means that instead of going straight through (like the bottom half aka. the identity permutation), the signal ...
3
votes
1answer
55 views

Draw dashed line with solid and empty circle using tikz

Problem: Trying to get empty circles to work with tikz and add text to the right of the circles. I have not been able to find the correct command for these two issues. Minimal Working Example (MWE): ...
4
votes
2answers
158 views

Tikz, after defining nodes midway on a path, how to connect those nodes by a draw[->] which matches the path?

I am using tikz to draw a graph. Basically I have a source (node (s)) and a sink (node (t)) that I want to connect with multiple parallel paths, which have multiple links in series. I find that this ...
0
votes
2answers
79 views

Irregular Chessboard and Labels

I need to type only half triangular part of a chessboard with different coloring setting and label the rows and columns not by a,b,...;1,2,... but by other letters. More explicitly, I need to type ...
1
vote
1answer
39 views

tikz circle with text and auto enlarge

How to draw circle with some para inside of circle which need to be enlarge based on text within the circle. I am new in tikz package, could you please help. Please find my MWE file: \documentclass{...
0
votes
1answer
52 views

Two Dimension System with plotting coordinate

I have plot that I need to draw in latex however I am having hard time to plot using latex. I have started the plot bit I am not able to label all the quadrant and do the projection. Please see the ...
3
votes
1answer
58 views

Plotting the difference in y-values between two contour plots

I have the following graphic generated by this code: \documentclass[11pt,a4paper]{scrartcl} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{amsmath} \begin{document} \begin{...
5
votes
2answers
476 views

Power/Loss diagram

I'm drawing the following diagram: My doubt is how to make the arrows curved (smooth) near is base. It seems strange this way. Follows the code: \documentclass[tikz,border=20pt]{standalone} \...
3
votes
1answer
57 views

Rotate circular text

I am trying to approximate the following logo. This is necessary because we might do some corrections to the text, and especially the colors, so it is not desirable to keep going back into an image ...
2
votes
1answer
50 views

TikZ figure arrow problems [closed]

I am trying to plot the below figure using TikZ but couldn't achieve the arrows properly. I could essentially have the arrows from B nodes to A but not of the same type from A to B. Is there a way ...
6
votes
2answers
86 views

Placing text inside a loop

How can I add the same text that appear inside the area surrounded by the arrow above the phrase "Item-based", meaning, {$\mathrm{sim}(u_{a},u_{j})$} but inside the area surrounded by the arrow next ...
2
votes
2answers
33 views

Center labels in a matrix and fix row color

Hi. I need to center the phrase "Active user", meaning, I'd like to put it in the middle and not to the right nor the left. One more thing, I need to color those two cells that are in white right now. ...
6
votes
1answer
87 views

Shadings in TikZ due to vertices

I have this particular problem with shadings in TikZ. I want to convert quadrilateral patch plot to TikZ. What I know - vector of vertices coordinates and connectivity list of patches. What I do not ...
3
votes
1answer
43 views

How to use the coordinate name in round around in tikz?

I'm a student majoring in mechanical engineering and I'm working with plotting the deformation of two links connected at an certain angle. The schematic diagram of the two links is shown below I want ...
4
votes
1answer
47 views

foreach in pgfplots

I want to plot a series of functions, each in another color. I would like to do this with a foreach, but it doesn't work. First I try a simple tikzpicture (from another mwe), this works. Then the ...