{tikz-matrix} concerns matrix nodes particularly in the tikz-matrix library of tikz-pgf.

learn more… | top users | synonyms

4
votes
1answer
29 views

Problem with the size of arrows (in tikz matrix)

I'm using tikz to make an array with arrows connecting different cells in order to explain how to get one cell using the others. The problem is that the arrows are far to small to be visible. I also ...
5
votes
0answers
61 views

Labeling custom path in TikZ [duplicate]

MWE: \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{arrows.meta, graphs, matrix, quotes} \usepackage{fancyhdr} \pagestyle{empty} \begin{document} \begin{tikzpicture} \matrix[...
6
votes
1answer
54 views

How to add arrows going from a matrix to column vectors?

If possible, I would like to know how to do this. Thank you. Here is my code: \documentclass[11pt]{memoir} \usepackage{tikz} %%% GRAPHIQUE \newcommand{\largeto}{\mbox{\LARGE${}\to{}$}} \title{...
2
votes
1answer
43 views

Matrices of nodes in Tikz alike to the ones in the amsmath package

I'm trying to work with matrices in Tikz. Specífically I would like to follow the amsmath package but I'm having a really hard time dealing with the overlay - remember picture thing. Here is the ...
1
vote
0answers
37 views

SOA Map based on Tikz

I would like to create a SOA Map based on Tikz or pgf. Basicaly this means a Matrix with realations from level to level, so that i could place my boxes in a easy way. I does not have to be as ...
2
votes
0answers
32 views

'Package pgf Error: No shape named is known' for nodes defined in matrix [closed]

On my local system \graph is not able to recognize nodes defined \matrix \documentclass{article} % say \usepackage{tikz} \usetikzlibrary{calc,intersections,through,backgrounds} \usetikzlibrary{...
3
votes
1answer
48 views

Weird cell placement in a tikz matrix

The code \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix[matrix of math nodes, column sep = {1.5cm,between origins}, row sep = 1cm] { ...
1
vote
1answer
71 views

Problem with tikz image in beamer.

I really hope you guys can help me out here. I have a tikz picture which is working mighty fine in the standard article mode using the following packages/libraries: \usepackage{tikz} \usetikzlibrary{...
7
votes
3answers
362 views

What is the best way to create this kind of binary matrix?

Like the fig 2. on page 3 of Relations in Mathematical Morphology with applications to Graphs and Rough Sets, John G. Stell Thank you!
11
votes
2answers
3k views

How to force nodes to have the same size in tikz matrices

Is there some intelligent way to have several tikz nodes have the same height and width? Consider the following example with output below. I'd like every node in each row to have the same height ...
1
vote
1answer
41 views

Tikz matrix inside foreach

I want to draw a matrix inside foreach but the compiling is aborted due to some errors. This is my code: \documentclass{scrartcl} \usepackage{tikz} \begin{document} \begin{tikzpicture} \foreach \x in ...
5
votes
2answers
405 views

Draw lines inside a matrix

I have the following code to draw a matrix: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty ...
3
votes
2answers
323 views

Simple visualization of 3D matrix

I need to visualize 3D matrix in a way similar to this one: There are no arrows needed, I only want to have all 2D arrays fully visible, one "behind" each other and their corners connected by lines. ...
0
votes
1answer
17 views

Matrix node inside foreach loop give error when multiple columns

This question is different from \foreach inside \matrix questions 1 and 2. I was trying to do this question 3dmatrix. The \matrix command, when put inside \foreach gives the following error when ...
9
votes
1answer
415 views

How to create a correctly aligned tree proof in logic with 4 branches, columns of line numbers and justifications?

I'm looking for a way to make a Logic Tree with three columns (line number, tree itself and commentary). I've tried using a tikz matrix, and it worked very well, except when I get more than two ...
1
vote
0answers
53 views

Issue referencing TikZ matrix nodes [duplicate]

In one of my documents I used the following template to illustrate a matrix multiplication but nowadays I get the error that shapes like A-2-1 are unknown. This is a known issue described in various ...
2
votes
1answer
65 views

Automated matrix of tables with TikZ

I'm working on this code \documentclass[a4paper]{standalone} \usepackage{amssymb,tikz} \usetikzlibrary{positioning, calc} \begin{document} \newcounter{compteur} \setcounter{compteur}{1} \newcounter{...
8
votes
1answer
98 views

Add matrix name inside tikzpicture

I have this matrix and I would like to name it. I have to enter H = in the begining of the matrix but I cant. I tried with \begin{bmatrix} but I can't circle with TikZ. \begin{equation*} \begin{...
2
votes
1answer
72 views

Right options to draw a matrix of rectangles

Considering the following TeX code: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{frame} \begin{tikzpicture} \matrix (mat) at (7,-4) [matrix of ...
0
votes
1answer
64 views

Color two columns separately in a matrix

From the solution code found here, I wanted to be able to also have a colored box around the x4 column like this: I also looked at the solution posted here that gives different colors in rows/...
1
vote
0answers
24 views

Divide a matrix into two regions in latex by line and color [duplicate]

I have a matrix whose elements belong to two different classes, and I need to distinguish them by color. Something like this figure: Any tutorial or instruction?
2
votes
2answers
30 views

Implicite addressing of inner matrix nodes doesn't work here

Addressing the nodes inside of this matrix implicite doesn't work here. I don't want to name them explicte. \documentclass{standalone} \usepackage{xltxtra} \usepackage{tikz} \usetikzlibrary{matrix,...
6
votes
1answer
110 views

How to highlight elements of a matrix in a formula? [duplicate]

I currently have problems with hihglighting elements inside a matrix. I've red a lot of questions here, my problem is that I have a matrix formula, {N}=[AB]{E} where I would like to highlight parts ...
2
votes
2answers
124 views

how to draw a stair matrix using tikZ in Beamer?

I am very new to Beamer and LaTeX. I want to draw a stairs matrix as attached. It should be pretty simple but I just don't know how to draw it. Please only use tikZ (and matrix) and don't use other ...
4
votes
1answer
62 views

tikz matrix not distributed evenly [duplicate]

How can I make the box distribute evenly? code as below: \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{matrix,positioning} \begin{document} \begin{tikzpicture} \def\lw{1pt} ...
0
votes
2answers
94 views

Combining Tikz concepts/librarys to draw a complex picture with relative alignment/distances

I think all of the problems has been asked by me or others in the past. But my over all problem is that I am not able to combine all this solutions to the real picture I want to draw. Normally it is ...
5
votes
2answers
191 views

Position of text and arrows in TikZ matrix

I want to put a text inside a TikZ matrix, but it always begins from the bottom !. So, my qusetion is how I can force it to begin from the top? My MWE: \documentclass{article} \usepackage[...
0
votes
0answers
54 views

design multiple array using tikz

I would like to design multiple array like this using tikz:
1
vote
1answer
35 views

splitting maths in two lines in a node

I have the following code: \documentclass[border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{shapes.misc} \usetikzlibrary{calc} \tikzset{cross/.style={cross out, draw=black,ultra thick, ...
3
votes
1answer
28 views

Why is my \matrix path failing when put inside another macro? [duplicate]

I've have the following two pieces of code. The first one compiles; the second one doesn't. I don't understand why the second one fails. Could someone explain? Example 1: \documentclass{article} \...
3
votes
1answer
119 views

Spectral sequences using tikz

I am trying to draw a spectral sequence in LaTeX using tikz. I would like to draw arrows connecting adjacent nodes; I already drew the first one but it doesn't look horizontal. Does anyone know how I ...
3
votes
1answer
107 views

Why does whitespace above \vdots disappear in bmatrix?

While creating presentations with beamer, I have the problem described in broken matrix gaps in brackets. Using the solution proposed by Loop Space, I discovered that \vdots have an annoying ...
5
votes
1answer
259 views

How to 'rotate' a matrix

I'm writing a pdf for class and I want to explain the transpose of a matrix. I want to add the following image to my .tex Any ideas to work this? Should I delete this idea from my pdf?
3
votes
1answer
68 views

How can I apply a style to elements of a submatrix of a tikz matrix?

I'm trying to apply a style for a submatrix of a matrix and ended up by passing arguments through two .list-handlers. Things don't work as I expected, again I'm just able to set either rows or columns ...
1
vote
1answer
72 views

Annoying space between nodes in a matrix

How to force this matrix to look like a regular table? \matrix[matrix of nodes, ampersand replacement=\&, row sep=-\pgflinewidth, column sep=-\pgflinewidth, nodes={draw,minimum size=10mm}, column ...
1
vote
2answers
85 views

Automated matrix padding in tikz

I encounter an error with the following code : \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning,shapes.multipart, fit,backgrounds,calc} \begin{document} \node[matrix, ...
12
votes
3answers
857 views

How to insert a linebreak in a TikZ matrix node?

How can I get a linebreak inside a matrix node? The following gives the error: Package tikz Error: Giving up on this path. Did you forget a semicolon?. unless I remove the linebreak. \...
7
votes
3answers
184 views

Striking out matrix lines and columns: is Tikz the only way?

I would like to show a matrix with "strike-out lines" on some of its rows and columns. After some research I found a solution using Tikz matrices, which I reproduce here: \documentclass{article} \...
2
votes
2answers
133 views

TikZ matrix : put frames around nodes but preventing edges to overlap

I can't figure out how to prevent each border to overlap on others, on the MWE below. If someone has an idea... \begin{tikzpicture} \footnotesize \matrix (m) [matrix of nodes, row sep=-\...
2
votes
1answer
85 views

TikZ, Beamer and matrix node iterative highlight ending in unwanted displacement

I have this code, and I want the blue-circled node to not expand the whole table when highlighted. With the additional minimum size option, the table stay unchanged, but the node moves, which is quite ...
2
votes
1answer
102 views

Unexpected padding in tikz matrix with one row

When I produce a matrix in tikz in brackets, and then a row vector, I find the padding before the top row (with respect to the top of the brackets) is larger for the row vector than for the matrix. Is ...
2
votes
1answer
81 views

Multi-parts nodes in a matrix with tikz

Good evening (or morning, as you wish) everyone I am using tikz and I encounter some little annoyance while using multi-parts nodes in a matrix. It may be trivial but I cannot find out why using ...
3
votes
1answer
232 views

Tikz matrix does not allow me to \draw line between nodes

If I want to put a line between nodes 1-1 and 2-2: \begin{tikzpicture} \matrix (magic) [matrix of math nodes, left delimiter=\lvert, right delimiter=\rvert,column sep=4pt,row sep=4pt] { \draw (0,0)...
4
votes
0answers
169 views

Conflict tikzscale and matrix group plot

I want two axis environments next to each other in one figure environment. I want them to be vertically aligned and scaled to the width of the text. I am trying to achieve this by means of the ...
2
votes
1answer
94 views

Horizontal line in Matrix

This question is building from the post found here. How to move the horizontal dashed line so that it is slightly further away from the superscript "T"? Also, when this horizontal line is moved, how ...
3
votes
1answer
131 views

Remove inner row separators of a matrix

I have the following code \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \matrix[ ...
2
votes
2answers
179 views

How to insert a \vline inside a matrix node in tikz

I have to draw many nodes inside a rectangle and separate the first one from the following ones with a line. It seems to work if I do it vertically: I use a matrix node for the outer rectangle and ...
2
votes
2answers
318 views

Drawing this matrix using Tikz

I have a matrix which has certain properties. To illustrate these properties, I would like to generate the following image using Tikz: Additionally, I would like the following things on the image: ...
7
votes
2answers
259 views

Draw lines over a matrix

I have the following code to print a matrix: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty ...
5
votes
3answers
216 views

Drawing a really large binary matrix as colored grid

I have a 50x300 binary marix, which I want to display as a colored grid. I tried the approaches of drawing a large binary matrix as colored grid which I like, but the approach using pgfplots table ...