Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

4
votes
1answer
48 views

How to connect a node between two 3d tikzpictures

I apologize if this is a repeat of another question, but I would like to connect the nodes A and B from the left hand side of this picture to the top and bottom of the circle in the right hand side: ...
1
vote
1answer
32 views

Problem with colormap in tikz

I'm trying to convert a colormap from python. I'm using matplotlib2tikz but there's an error I don't understand. This is the colormap in python: And when I try to compile I got this error: ...
4
votes
2answers
130 views

Tikzpicture timeline + underbrace

I have created a timeline with ticzpicture which looks nice (and is working) but I was wondering if there was any way to put underbraces with text below it? Here is a picture of what I mean: This is ...
1
vote
0answers
41 views

TikZ symbols bounce around upon zooming

I've created a small custom symbol in TikZ and I've noticed that when I resize the resulting pdf the symbol "bounces around" inconsistently. This means that when zoomed out the result looks odd, with ...
19
votes
4answers
779 views

How do we compile and visualize the animations of TikZ 3.1?

I copied and pasted the example from page 221 of manual 3.1 and tried to compile it with Texmaker. \documentclass[dvisvgm]{standalone} \usepackage{tikz} \usetikzlibrary{animations} \begin{...
0
votes
1answer
42 views

Modify indentation of a tikz-kaviat graph in a friggeri-cv

I'm trying to use the friggeri CV template and to add a kaviat graph using tikz-kaviat in the leftmost part of the CV. The problem is the alignment is not good at all and I can't change it using /...
12
votes
1answer
978 views

Creating a Falcon's logo

I have been trying to trying to replicate this logo for my team (not to mention in LaTeX ofcourse:-)): So where I am now: \documentclass[11pt]{standalone} \usepackage{tikz} \usepackage{pgfplots}% ...
2
votes
1answer
52 views

Duplicate and overlapping edge labels in tikz graph

on the following graph (using the new Tikz syntax), I have 2 edges with different labels pointing towards the same node. But one of the edge have both labels overlapping ! Here is a minimal example (...
3
votes
1answer
64 views

TikZ: How to pass default option to pic?

Is there a way to pass default options to a pic? In the MWE, the option transform shape is passed to an instance of a pic. Is it possible to make this option the default for all pics square such that ...
3
votes
1answer
54 views

How do I get these specific pathlines to nodes?

I have four nodes, one parent and three children. I am trying to link with these specific arrow paths: I have only just started working with the tikz package and my code so far looks like: \...
2
votes
3answers
102 views

Draw Circuit Diagram

I am trying to draw this diagram and I got stuck in Antenna text position. In addition I am not happy with semicircle antenna draw. I am also missing curved arrow inside the circle. Can you some one ...
3
votes
1answer
59 views

Customize a layered block diagram

I have a diagram where layers of blocks are stacked on top of each other as shown in the image. Using this code: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz} \...
0
votes
2answers
90 views

How can I create this Logo in LaTeX [duplicate]

I made this using a combination of LaTeX and powerpoint. I was wondering how it can be made purely in LaTeX code?
0
votes
1answer
58 views

Creating Diagrams with Tikz? [duplicate]

I am still new to Tikz, and wondering how to make the diagram below using Tikz. Does anyone have any advice or know how to do this?
1
vote
1answer
59 views

tikz \foreach to iterate over a python list via pythontex

I am using pythontex to read in a large python list from disk into my .tex file; I wish to use the \foreach command from the tikz package to do some typesetting for each of the items in the list. MWE ...
2
votes
1answer
42 views

How to make sure the tail of a rho-shaped graph remains on the left?

This question is a sequel to this other question, nicely solved by @marmot. The new question is due to a new situation that arises. In the new sequence 2, 12, 34, [43, 28, 25], where brackets denote ...
1
vote
1answer
51 views

How to make a $\rho$-shaped graph for various lists of numbers as nodes?

This question is derived from this other question, where @marmot solved it nicely. However, that solution assumes the cycle will always have a number of nodes more or less like 11. When you apply ...
2
votes
2answers
77 views

Grid with coordinates on all sides?

This is a request for an enhancement to this fairly amazing answer by Loop Space: How can I show coordinates by grid in TikZ automatically?. This answer gives a recipe for placing a grid on a page ...
1
vote
0answers
110 views

pgf package + pstricks | MikTeX | still 'broken' [duplicate]

So, after waiting until today (Jan. 8) to try updating pgf for my MikTeX install(s), went ahead and gave it a try (first after backing everything up in my MikTeX root directories). Install pgf using ...
1
vote
1answer
78 views

Draw two opposing planes setting

I have been trying to draw something like this: I have the image above. I found something similar to this drawing here: How to modify this TikZ code to draw in another locations But I cant ...
6
votes
2answers
359 views

How can I make a graph rho-shaped whose nodes are numbers?

I managed to get the two pictures below. I think I'd have to rotate the straight line and connect its end to the number 615 so that it looks like the letter rho (ρ). How can I do that? Feel free to ...
1
vote
2answers
58 views

How to make all circles in this example have the same radii?

The nodes with less than 4 digits appear smaller. I'd like to have them all of the same size and I can't seem to understand enough of the documentation to get it right. Feel free to suggest me a ...
2
votes
1answer
43 views

parametric line renders a mesh: how functions are parsed

In the code below I define three functions u(x, y), v(x, y) and w(x, y) which just define a simple parameterization of the unit sphere u(x, y) = sin(x) * cos(y) v(x, y) = sin(x) * sin(y) w(x, y) = ...
1
vote
2answers
62 views

How to draw intervals in latex using tikz or otherwise?

Sometimes we require to represent multiple intervals on a single number line so that we could see their intersection easily. One illustration is given below I can draw line and make nodes using tikz ...
0
votes
1answer
26 views

Coloring edges of a polygon differently

I would like to draw a regular 21 polygon, where the edges are labelled and have arrows in the middle using different colors. This is what I have done so far using this code \documentclass[...
3
votes
2answers
45 views

How to change arrowheads to lie on a plane

I have a minor inconvenience in the following drawing. I would like to change the arrowhead that shows the distance d to lie in the yz plane. I am unsure of how to do this if anyone can help me out ...
0
votes
1answer
64 views

sign scheme diagram in latex

I tried to draw a following diagram using tikz. I used the following commands \draw [black, very thick] (0,0) -- (9,0); \draw [black, very thick] (3,1/4) -- (3, -1/4); \draw [black, very thick] (6,...
0
votes
1answer
64 views

Using TikZ package in TexStudio [duplicate]

Im trying to use the package TikZ by inserting \usepackage{TikZ} into my preamble on TexStudio however it keeps coming up with the error that TikZ.sty is not found. I have MiKTeX and have checked the ...
10
votes
6answers
560 views

Topology diagrams (labelled edges)

What is the best way to create diagrams like these in LaTeX? Is Tikz the way to go? (Code for these specific instances would be useful but is not absolutely required, since I'll be needing to make ...
8
votes
2answers
250 views

circuitikz vs. tikzpicture: generating multipage standalone documents for animations

This is a problem I found a while ago, and haven't been able to figure out. Maybe is something wrong with my distribution, but don't know exactly how to fix it. Here is the idea Consider this script ...
13
votes
2answers
414 views

What's new in the latest version 3.1 of TikZ?

TikZ version 3.1 is available on CTAN since January 5, 2019. Christian Feuersaenger published the latest version on sourceforge on the same day. The manual of version 3.0.1a which had 1161 pages ...
3
votes
0answers
61 views

“File tikz.sty not found” error after updating MiKTeX 2.9 [duplicate]

After the update today I get the error message: File `tikz.sty' not found. There must be a problem with the latest version of MiKTeX 2.9.
0
votes
0answers
55 views

MikTex doesn't install tikz [duplicate]

I installed MikTex on my PC. Now I want to create a document. Always if I want to include tikz I get the following Error: File `tikz.sty' not found. \author But MikTex didn't tried to install ...
7
votes
2answers
514 views

pgf/tikz no longer works after update

I use Texstudio and Miktex on Win 7 as a portable version. Today i updated my miktex-packages and everything worked fine except the "\usepackage{tikz}" command. I made a fresh reinstall with the ...
3
votes
2answers
72 views

Fitting Shapes Around Irregular Nodes In TikZ

I have the following Hasse diagram which uses the following code: \documentclass[a4paper, 12pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{fit} \begin{document} ...
0
votes
1answer
46 views

Gnuplot error without any log

I am trying to recreate this TikZ picture I saw https://tex.stackexchange.com/a/212936 (specifically the last image) However upon compiling I get a message saying that the process exited ith errors ...
1
vote
1answer
33 views

How to draw a convex shape in a 3d graph that covers a set of points?

Consider points in a 3d scatter plot, such as the following: \documentclass{article} \usepackage{pgfplots} \usepackage{datatool} \DTLloaddb[noheader=false]{coordinates}{data.csv} \pgfplotsset{compat=...
1
vote
1answer
33 views

Color the sides of a 3D box

I have wrote this latex code to draw a 3D box. \documentclass{article} \usepackage{tikz} \usepackage{circuitikz} \begin{document} \begin{figure} \begin{center} \begin{circuitikz} \draw (0,0) to[...
2
votes
1answer
50 views

change position of edge label and caption

I have create the following graph \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{amsmath,amssymb} \usepackage{tikz} \usetikzlibrary{shapes.geometric,automata,positioning} \...
3
votes
4answers
583 views

Diagrams in category theory

Can someone help me please? I'm wondering how to draw this diagram with LaTeX. Thanks.
2
votes
1answer
54 views

Cut part of radialshading out as node shape circular sector

Part of the radialshading should be cut out of it. With this \clip(?)ed part I want to fill the \predefined node shape (here: \node maerz). Sorry for my english. The \shade works for two colors (...
2
votes
1answer
120 views

Is zero-length line with an arrow in TikZ a bug?

Question Is zero-length line with an arrow in TikZ a bug? \documentclass[tikz,border=12pt,12pt]{standalone} \begin{document} \begin{tikzpicture} \draw[->](1,1)--(1,1); \end{tikzpicture} \end{...
6
votes
2answers
253 views

Seven segment display with TikZ

Consider the following MWE: \documentclass[border=5pt,tikz]{standalone} \usepackage{ifthen} \newcommand{\binary}[3]{ \pgfmathsetmacro\number{int(#1*2^0+#2*2^1+#3*2^2)} } \newcommand{\sieben}[1]{ ...
2
votes
1answer
100 views

How to pass boolean value to a tikz option key

I have trouble understanding how to properly use tikz keys and pass them. Let's say I want to code two tikz pics with both a "fill" argument. I sometimes end up writing things like the example below. ...
3
votes
1answer
49 views

filling an intersection between shapes

I need assistance in finding out how to fill the intersection between the shapes RO1, RO2, RO4, RO5 in the following. Assistance appreciated. \documentclass[border=5]{standalone} \usepackage{tikz} \...
5
votes
2answers
80 views

Formatting the color and scale of a pgfplot

I have the pgfplot of the image below. The bars on the chart are colored, I would like the colors of the bars to be grayscale. If you observe too, the values ​​of the axes are overlapping because they ...
1
vote
2answers
66 views

How to draw a sample from a probability function and the show it in a tikz surf plot?

I saw this post bivariate which plots a bivariate normal probability density function. What I want is to draw (statistically) a number of points based on this probability function and then show it in ...
2
votes
1answer
41 views

label positioning in gnuplot

I'd like to have the x and y labels at the end of the axis, next to the arrows: \documentclass{scrbook} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture}[thick,scale=0.7, ...
4
votes
1answer
135 views

How to shade only selected areas for an inscribed circle in a square

Can anyone please tell me how to achieve what I have drawn in the sketch below: What I have so far: \documentclass[]{article} \usepackage[margin=0.5in]{geometry} \usepackage{pgfplots} \usepackage{...
2
votes
0answers
81 views

recent l3kernel package and TikZ library calligraphy are not compatible [duplicate]

Today I update my MikTeX installation. Among updated packages is l3kernel which doesn't work with calligraphy library, even if it is not used in TikZ picture: \documentclass[border=1mm, tikz]{...