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.

learn more… | top users | synonyms (3)

0
votes
1answer
20 views

To selective box and label parts of an image

I want to let these boxes and text-labels fade after sometime, as it would lead to unwarranted cluttering in the image. Also, I want to ultimately put the image slideshow as a part of the beamer ...
1
vote
0answers
28 views

How do I use TiKz to draw lines in 3D grid?

I would like to draw this 3D picture using TikZ. Any suggestions?
0
votes
1answer
19 views

Adding text between two nodes in mindmap

I can't seem to find an example online that adds text in between two nodes. I can find a few examples that add annotation to the left or right, but I'd like to add text along the connection between ...
1
vote
1answer
69 views

Making a diagram like this in TeX?

I want to make two diagrams, along these lines: I'm having trouble finding a way to do it most simply, I've been able to do it with bubbles which I then don't draw the borders of, but that leaves a ...
1
vote
0answers
29 views

TikZ: double line, one dashed?

I'd like to draw a double line between two nodes; one of the two lines in the double should be solid and one dashed. I'd prefer not to have to manually shift one of the lines, but maybe this is the ...
1
vote
0answers
27 views

Changing filling of some node in tikzpicture using \matrix

I have used the handy \matrix trick in a tikzpicture (see code) to build up a graph. Now I wanted to change the filling of one node. I can't find out how! Of course, I can find out, how to change ...
3
votes
1answer
39 views

pfgplots plot in degrees

Everywhere on the web, and in this forum, tells me pfgplot plots trig functions in degrees, which is what I'm after. Here is the code for my graph: \begin{figure}[H] \centering ...
3
votes
1answer
35 views

adding single points to bar figure in pgfplots

I have a bar plot, in which I would like to add some single points overlayed on the bars. Those points are in another scale compared to the error bars. Below, I'm illustrating those single points in ...
1
vote
1answer
26 views

redundant number in the border

I have a piece of latex code and I would like to remove the redundant number 1 form top left of the border. How can I do this? \begin{algorithm}[t] \centering \small \resizebox{\linewidth}{!}{ ...
1
vote
1answer
32 views

Issue in plotting a grouped bar chart

I was getting the X-axis labels to be printed without spaces. There is an issue with legends, it is in the way of the delay values How do I keep the values horizontally and enlarge them for better ...
1
vote
1answer
29 views

Increasing the fontsize in a TikZ picture beyond \HUGE

I am using the follow code to create name signs for my students. How can I increase the size of the font beyond \Huge? I'd like to scale the size of the word without scaling the whole picture. ...
2
votes
1answer
35 views

Reason for multiple bars in Legend entries

I am have a similar Grouped Bar Chart as shown in this question and wish to know why there are multiple bars in the legend entry. Is it possible to modify the legend so as to consolidate these bars? ...
6
votes
2answers
194 views

Lua code with Tikz

Is there a reason why the code below leads to the error: ! Illegal unit of measure (pt inserted). <to be read again> e l.16 ...t [domain=-.1:.1,samples = 100] (\x,{G(\x)}) ...
0
votes
1answer
64 views

Triangle design/texture for Pythagorean theorem

I found a very nice and intuitive figure for a proof of the Pythagorean theorem: My main question is how to get that "look" for the triangles--I really like how the colors complement each other and ...
2
votes
1answer
52 views

TikZ/PGF number in shape name

I'm currently creating my own shapes in TikZ. I'm trying to get a multiplexer to work, but I named the shape mux4to1 and one of its anchors D0. Basically, I'm getting a syntax error with the ...
8
votes
1answer
77 views

Arrows are crossing in tikz

The arrows from Training Examples and Hypothesis Set are crossing eachother. Is there a way to avoid this, i.e. that they change the "dock" position on Learning Algorithm? \documentclass{article} ...
1
vote
0answers
18 views

Draw a set in set (subset) with tikz [duplicate]

I want to draw a set in a set with M being the subset and N the other set. I want them to look like "clouds", not perfect circles. I only came up with drawing perfect circles using the \draw (circle) ...
1
vote
1answer
71 views

Tikz: Shading a rectangle diagonally,

I'm trying to draw a 3D picture with some shading to make it look a bit prettier. So far it's just a cuboid, and I discovered the shading command. Here is what I have so far: ...
2
votes
2answers
140 views

I am trying to post a picture adjacent to bullet points

Please check the code block below: \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} { \frametitle{Characteristics of ABCDE} \begin{minipage}[c]{.5\linewidth} ...
1
vote
2answers
97 views

Flow chart path specification

I would like to draw a flow chart like one shown in the image. The problem with the code I have generated is the arrows leading to top blocks and the bottom blocks, i.e., B&C,D&E meet at a ...
2
votes
0answers
42 views

How to position vertically more letters according to alphabetical order in the margin of the page?

The original question with accepted answers shows how to set a letter to the margin of the page and position it vertically according to alphabetical order. There appears two issues that I need to ...
0
votes
0answers
27 views

TikzFooter and Page Numbering

I have an issue with Tikzfooter which I have not had before. When I compile the tex file the Tikzfooter (a Orange coloured node with page number does not appear on my document but no error message. ...
0
votes
0answers
30 views

Highlighting specific parts of the figure [duplicate]

I want to know if I can use a particular type of formatting to differentiate one part of the figure from the text. For example, in the figure below, I would like to talk only about the role of part M5 ...
1
vote
1answer
18 views

Latex figure labeling using overpic: rescaling problems

I am using overpic package to lay over different pictures in latex. I am also labeling the axes of the figure using \put. The problem is say I have labeled the figure correctly. Now sometime later I ...
3
votes
1answer
63 views

tikz, pgfplots and polaraxis

I found a nice template for a polar graph 1 and I adjusted it as follows: \documentclass[12pt]{standalone} \usepackage[x11names]{xcolor} \usepackage{tikz} \usepackage{pgfplots} \begin{document} ...
3
votes
1answer
101 views

How to draw a cube wich covers the square exactly?

I want the top face of the cube that is whit and the otherfaces that are black. \documentclass{article} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture}[scale=.4] ...
2
votes
2answers
52 views

Build PGF/TikZ matrix from CSV file

I want to automatically build a PGF/TikZ based drawing based on some external data that is read using csvsimple. My main issue at the moment is that most of the nodes are part of a matrix, mainly to ...
2
votes
1answer
70 views

Why in the following code, Father always goes below %mother?

I want that "Father is over mother". Why in the following code, Father always goes below mother???? \documentclass{article} \usepackage{calc} \usepackage{tikz} \usetikzlibrary{trees} ...
4
votes
2answers
69 views

Is it posssible to embed list items `\item` in `NewEnviron` environments?

Question Is it possible to keep the \item commands in the body and wrap the itemize list environment with \NewEnviron from the environ package? I am also trying to wrap the list inside a TikZ node, ...
0
votes
0answers
44 views

TikzFooter and page numbering

I have a line of code in my TeX file \fancyfoot{\tikzfoot{\thepage\ / \pageref{LastPage}}} Since I updated my software the footer no longer appears on my PDF document once compiled. Has anyone ...
0
votes
0answers
35 views

More control over section headings than in my MWE; would using \titlesec and TikZ be better? [on hold]

\documentclass{book} \usepackage{xcolor} \usepackage[explicit]{titlesec} \titleformat{\section}[block]% {\bfseries\itshape\fontsize{13.6}{20}\selectfont} {} {1pt}% ...
3
votes
1answer
35 views

Spacing issue in subfigure/tikzpicture when labelling arcs

I have two simple graphs side by side that align perfectly when the arcs are not labeled, but as soon as I add the labels I get a spacing issue where there is a space between the second figure and its ...
4
votes
1answer
76 views

Plotting in random color within axis environment

I want to plot lots of (50, to be precise) function (Brownian motions, if you want to know) in one TikZ axis environment, with each line with a different randomly chosen color. I achieved to do it, ...
2
votes
0answers
26 views

Problem with `in` (to path) angle when negative scale factor are applied

Trying to convert a coment into a complete answer for How do determine the arrow form in Tikz I think that my solution there worked by chance and that MWijnand found a wrong behavior in to path ...
5
votes
1answer
44 views

Defining drop shadow as macro not allowed?

Is it really not possible to define drop shadow (with or w/o options) as a macro? \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{shadows} \newcommand{\test}{drop shadow={shadow ...
0
votes
1answer
145 views

Drawing gamma function in LaTeX

Is there an elegant way to plot gamma function (or some similar non-elementary function), http://en.wikipedia.org/wiki/Gamma_function via TikZ or pgfplots? The graph I have in mind is something ...
4
votes
1answer
59 views

Align itemize bullet within tikz environment, v2

This is a direct follow-up to my question Align itemize bullet within tikz environment. I basically have the same question as then, except that this time, I need to align the itemize bullet with an ...
0
votes
0answers
27 views

calculating coordinates of a path within a \newcommand

I am trying to draw the layout of an optical system. It includes some components like mirrors and the light path. To make templates, I use \newcommand which draws the corresponding path do a desired ...
0
votes
0answers
44 views

Plot convolution neural network architecture

I've seen two common ways to represent convolutional neural network architectures: The one used in the imagenet paper(figure2), and the original one. I would like to build my own using PGF/TikZ. Do ...
0
votes
2answers
79 views

fixing a diagram in Homework Problem Sheet

could someone make this homework problem looks good-looking here is my code \documentclass[12pt]{article} \usepackage[pass]{geometry}% just to show the page margins \usepackage{tikz} ...
0
votes
1answer
38 views

weird behavior of tikz with arrow tip in the middle

\documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.markings} \begin{document} \tikzset{->-/.style={decoration={ markings, mark=at position .5 with ...
1
vote
1answer
76 views

Drawing triangle inside square

i would like to add this figure in math.stack and for my document by make it in latex How to make it looks in good-looking with different style \documentclass[tikz,border=2pt,png]{standalone} ...
1
vote
1answer
45 views

Placing nodes on a visible grid in Tikz

I am trying to place two nodes near a specific point on a grid, this seems simple enough but when I try: \documentclass{article} \usepackage{tikz} \begin{document} \usetikzlibrary{calc} ...
0
votes
1answer
51 views

Tikz: foreach loop ignores part of the edges

I would like to draw some more or less advanced grid, using three consecutive (non-nested) foreach loops. For unknown reasons, the third loop seems to be ignored... Here is the code: ...
-1
votes
1answer
49 views

differential solid angle [on hold]

how can one draw these figures with tikz ? http://www.seos-project.eu/modules/laser-rs/laser-rs-c03-s02-p02.html Thank you GT
0
votes
0answers
34 views

How to make Tufte style 'data based labels', showing the maximum and minimum of the data

I'm trying to make a graph where the maximum and minimum of the plotted data are reflected on an axis and the axis line stops after that value. Although sometimes I want noisy data to appear at ...
0
votes
0answers
43 views

Tikz/pgfplots problem: change x-axis counting at certain x-coordinate

In order to create a particular diagramm, I need the possibility to change the x-axis-counting at a certain x-coordinate so that x runs from 0-10 in steps by 1 and then changes at 10 put in further ...
1
vote
0answers
36 views

Solved - Skins and pgfkeys problems using tcolorbox special features [closed]

I'm new to this forum where I have often found useful replies. I hope I'll be accurate enough here. I've been trying to create a new environment where there would be a left border line and my text ...
11
votes
0answers
75 views

Reference a node's color by using node name

I am trying to use a node name to reference the node's color. I am not sure if this is even possible. I have a TikZ mindmap: \documentclass{article} \usepackage{tikz} ...
0
votes
0answers
36 views

Tikz Automata draw a line

I have 3 different automatas alligned horizontally with edges between the first and the second and the second and the third. Around the automatas there should be container boxes and the middle one ...