Questions tagged [nodes]

{nodes} is about nodes in {diagrams}.

Filter by
Sorted by
Tagged with
8
votes
2answers
919 views

How to draw container box in TikZ? How to get it with rounded corner?

I want to draw something like this: This is what I am able to draw: This is my TikZ code: \documentclass{article} \usepackage{verbatim} \usepackage[active,tightpage,floats]{preview} \setlength\...
8
votes
3answers
341 views

Want nodes to have linked heights based on which input is larger

So I'm trying to make a worksheet template for students to create pdfs for student markup. The inputs create what is going to go in the question box as well as the hints box. I want to create the ...
8
votes
2answers
508 views

multipart node to represent a byte

I am trying to create a multipart node to represent a byte I wish I could write \Byte{0 1 0 0 1 1 0 0} or \Byte {0, 1, 0, 0, 1, 1, 0, 0} and obtain \documentclass[12pt]{standalone} \usepackage{tikz}...
8
votes
2answers
7k views

Accolade to take objects together in TikZ

Is there a way to draw an accolade ({-symbol) that groups things together in TikZ? I want the accolade to group let's say three rectangles. That means the top of the upper reactangle must be the top ...
8
votes
1answer
15k views

Tikz multiline node with center align [duplicate]

I have a problem with nodes in scheme. I need type a node where will be text "Banka melovskych filtru". Each word on a special line with center align.
8
votes
5answers
4k views

TikZ Node with multiple shapes

My use case is drawing a ticked box in line with normal text like this: "Hello ☒ World." (unicode example, your mileage may vary). One solution I managed to come up with is the following rather ...
8
votes
1answer
6k views

Tikz rectangle split widths

I would like to have a rectangle split in two and have the text width of one side be fixed instead of having the textwidth apply to both sides. I have the following. \tikzstyle{pblock} = [rectangle ...
8
votes
3answers
994 views

Coloring a node after its creation

I want to fill a node with a specific color, but not with the usual [fill=blue] way. The reason is, that I am creating many many nodes and I want to fill some random nodes with a different color from ...
8
votes
2answers
13k views

tikz dash rectangle in nest nodes

I want to use dash rectangle in outer node but use solid rectangle in inner nodes. But my sample code below actually dashed all node for inner or outer nodes. \documentclass[tikz]{standalone} \begin{...
8
votes
1answer
6k views

Using [midway] to label a curved path at its centre

I am trying to label two curved paths connecting two nodes with labels placed at their centres using the node[midway] option. This is something that should be very simple but I have not been able to ...
8
votes
1answer
2k views

Tikz - Nodes highlighting / background coloring

Here is the MWE, it works leaving the unicode devanagari text. \documentclass[fleqn,12pt,a4paper]{article} \usepackage{tikz} \usepackage{tabularx} \usepackage{color} \begin{document} \newcounter{...
8
votes
2answers
2k views

TikZ: using the pos = x in a node

Why doesn't the pos = x option work when the node is used in the plot command? \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw plot[domain = 0:2, samples = 100] ({\x}, {(...
8
votes
2answers
587 views

TikZ/PGF: Create a saved length as part of a shape definition

When I create a new shape using pgfdeclareshape, I want to be able to store a length for later reference. I might want to do simple arithmetic on this length later on. Here's a basic attempt: \...
8
votes
1answer
4k views

How to make all nodes same size in mindmap?

Is there a way to force all the nodes in a mindmap to have the same size regardless of their hierarchy in the tree? \begin{figure}\label{fig:HadoopVersion} \centering \begin{tikzpicture}[...
8
votes
2answers
639 views

Call for node distance as a variable in TikZ

Is it possible to use the node distance as a variable while expressing coordinates of new nodes with Calc and Positioning libraries? What I want to have is everything within a single piece of code for ...
8
votes
3answers
3k views

Styles in TikZ trees not working as expected

I want to draw a "cut-out" region of a tree, and visually underline this by having dashed edges on top and on the bottom of my diagram (to symbolize the levels further up and further down). I am ...
8
votes
1answer
1k views

how to use bullets and new line in a rectangle block of tikz? and how to draw arrows from particulat location of rectangle split node?

I want draw something like this: And this is what I am getting: I am facing three difficulties: How to get bullets inside a block? and how to use different font for the same? How to draw these rest ...
8
votes
1answer
966 views

using \tikzmark in beamer: new versions of packages break old functionality

UPDATE (08/03/18): This issue has been fixed in the latest version of the tikzmark package. The workaround proposed by cfr, using \beameroriginal to redefine the \tikzmark inside beamer environments, ...
8
votes
1answer
728 views

How can I place a node relative to a legend?

I'd like to place custom formatted nodes relative to the legend in a plot. The answer to Placing node relative to legend is a solution per se, but related to op's actual intent so it isn't helpful to ...
8
votes
1answer
565 views

Perfect overlapping of dotted nodes in matrices

If you have a TikZ matrix of nodes, where every node is dotted, the dots do not overlap properly. Please see the attached code: \documentclass[margin=1cm]{standalone} \usepackage{tikz} \...
8
votes
1answer
1k views

Titles aligned horizontally above nodes in figure

I am trying to create a flow chart going left-right where each stage has a header aligned with it, at a certain height above the chart. I am trying to use the Hydrogen Splitting Example (see the ...
8
votes
2answers
422 views

Node within a node

I want to create a node within a node. My MWE is as follows. \documentclass{article} \usepackage{tikz,amsmath,siunitx} \usetikzlibrary{tikzmark} \begin{document} \[\text{a}_{\text{C}} = 0.35\...
8
votes
1answer
366 views

How to draw an overlaid pages image for a Tikz flowchart node?

In Natural Language Processing and related disciplines, it's common to see an "overlaid pages" image included as a node in a flowchart of a system: _____ | ___|__ | | ___|___ | | | | |...
8
votes
1answer
807 views

decoration nodes not being placed on the circle they are intended to be on

I "placed" some nodes on a circular path but they aren't showing up in the correct place and they aren't even on the circle. What is going wrong? \begin{document} \usepackage{tikz, pgfplots} \...
8
votes
2answers
4k views

How does the 'on grid' node positioning in TikZ actually work?

I thought I knew how the on grid option of TikZ (cf. version 2.10 manual section 16.5.3 pages 186-187) worked, but the results I get are different from what I expected. I have a minimal example: \...
8
votes
2answers
2k views

Center a Node Vertically TikZ

I'm using TikZ to create the following drawing: So far so good, but now I'd like to center the node with the gray background vertically. Here's its code: \setlength{\arraycolsep}{2pt} \draw[xshift=-...
8
votes
1answer
1k views

TikZ: vertically aligning text in nodeparts

I can't seem to vertically align text in different nodeparts of the same node. This MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} \...
8
votes
2answers
2k views

Plate captions overlapping

I am trying to draw a probabilistic graphical model using BayesNet, a TikZ library for drawing graphical model in latex. I have tried to insert plates caption - Tasks i, Classes c, workers j, ...
8
votes
1answer
2k views

Alignment of tikz nodes in a chain

How can the north anchors of the nodes in a going to the right chain be aligned in a tikz picture? As can be demonstrated by the following example, by default they seem to be aligned by the center ...
8
votes
2answers
183 views

Are there any differences between a “newly defined” path and a path using predefined nodes?

I am not sure how I should phrase my question. consider the following example \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[inner sep=0] at (0,0) (a) {}; \...
8
votes
1answer
4k views

TikZ Spacing Between Arrow and Node

I'm attempting to draw a simple diagram comprised of three nodes arrange in a triangle. I'm having a difficulty with getting the arrows to "connect" to one of the nodes, there's a small space between ...
8
votes
1answer
642 views

tikz positioning of nodes

I want to generate a simple organigram with reasonable-looking distances in x and y direction. How can I get equidistant distances between the nodes? \documentclass{article} \usepackage{tikz} \...
8
votes
1answer
363 views

How to build a trail of nodes from a path in tikz-pgf?

What I want: where the yellow line is the path to be transformed. The points inside the yelow line are the nodes after processing. The only way I found to do this is the intersection between a path ...
8
votes
1answer
704 views

Nodes midway sloped - how?

I have the picture, MWE \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[domain=-1.5:3,scale=0.8] \draw[gray!50, thin, step=0.5] (-3,-2) grid (10,6.5); \...
8
votes
1answer
938 views

Align pinned nodes in PGFplots

I'm working with plots generated from matlab2tikz and I have several plot lines close to each other. Labeling them is proving difficult, but I believe a good looking solution could be to list the ...
8
votes
2answers
1k views

How do I use scopes to apply a style to nodes inside a path?

I want to use nodes inside a single path, in order that I might position one relative to another using the ++(x,y) notation. However, a scope that I want to use to style the nodes only styles the ...
8
votes
1answer
4k views

Example of system architecture picture in TikZ

I am looking for an example of a system architecture diagram in TikZ. I would like to draw a picture similar to this one: Therefore I search for existing shapes for: cloud (Current State), database ...
8
votes
1answer
89 views

\textcolor{}{} behaves differently within a \node

I would expect that using the \MyText macro defined as \newcommand{\MyText}{before \textcolor{red}{XX} after} should always yield the same color for the text "before" and "after". But it appears ...
8
votes
1answer
470 views

Automatically place right angle indicator on normal vector

I'm trying to draw a normal vector on a curve, and use the usual "dot in an arc" symbol to indicate that. Here is what I have so far, which looks alright, but needed manual adjustment of angles and ...
7
votes
4answers
700 views

TikZ chain adjust positions of on-the-arrow node

\documentclass{article} \usepackage{tikz} \usetikzlibrary{chains} \begin{document} \begin{tikzpicture}[start chain=circle placed {at=(\tikzchaincount*30:1.5)},regular/.style={draw,circle,inner sep=0,...
7
votes
3answers
2k views

pgf/tikz node custom shape

I cannot figure out how to get a node shape similar to this in pgf/tikz, I don't need the colours, just the black and white shape. Sorry I don't have any code as nothing I've tried gets me remotely ...
7
votes
4answers
635 views

Conditional tikz Node Fill

I have a 5-segment tikz picture that I want to include in a \newcommand that takes an argument that determines how many segments are filled in. Here is my MWE: \documentclass{article} \usepackage{...
7
votes
3answers
4k views

TiKZ matrix of objects

I am drawing diagrams which consist of grids, some cells of which are filled with circles, like this: I created this picture with \begin{tikzpicture}[scale=0.6] \draw[shift={(0.5,0.5)}] (0,0) grid ...
7
votes
3answers
5k views

Why doesn't relative coordinates in TikZ work with this example?

I was working on a figure, and for some reason relative coordinates have stopped working (it did before). I removed all code down to a bare minimum, and they still don't work. I don't know what I've ...
7
votes
4answers
2k views

Tikz: drawing concentric circles with specified origins and the arc that connects the intersections

I would like to draw a few concentric circles with origins of P1 and P2 where all the circles are greater than the minimum distances. The min distances is where the circles will touch at one point ...
7
votes
1answer
3k views

Draw arrow not to node center but to edge of circle on this node?

This example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}% \draw[help lines] (0,0) grid (1,1); \node [draw, circle] at (0,0) {}; \node [draw, ...
7
votes
4answers
449 views

With TikZ is it possible to pass the node content through a preprocessor?

I've written a macro that scans its content for illegal characters and then changes them to something more appropriate. In the following example, the macro scans for _ and replaces them with \rule[-...
7
votes
2answers
981 views

How to put environment text inside node?

Consider a simple environment in the documentclass as \newenvironment{abstract}{ \node (tbl) { }; } The content of \begin{abstract} Content \end{abstract} will goes after ...
7
votes
3answers
522 views

Overlapping nodes in a decision tree

I have the following decision tree taken from this example with little modification. When I added two sub-nodes to the second right node, the inner left and inner right nodes have been overlapped. How ...
7
votes
2answers
2k views

Calculation of coordinates for TikZ annotations in PGFplots axis environment

I'm trying to do some annotation with TikZ in a PGFplots axis environment by means of nodes. However, the placement of the nodes is going wrong all the time, see the minimum working example below. How ...

1
3 4
5
6 7
25