Questions tagged [tikz-matrix]

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

Filter by
Sorted by
Tagged with
7
votes
3answers
319 views

Selectively “erase” lines from TikZ matrix

I want to draw grids of arbitrary size using TikZ. I'm using the matrix library and I want to selectively "erase" some lines of it. I post an example of a brute-force solution: \documentclass{article}...
2
votes
3answers
92 views

extra white space to the right of nodes

I am trying to depict more than one matrix with tikz with the tikz libraries matrix and matrix.skeleton. Later I want to make use of the highlight features from matrix.skeleton on both matrix. This ...
2
votes
1answer
86 views

How to stop a tikz matrix from jumping about in beamer

I have a series of slides/transitions showing one matrix where I insert some gaps between columns and circle numbers and at one point add an extra row at the bottom. I would like the matrix to stay ...
0
votes
2answers
36 views

matrix throws “Extra }, or forgotten \endgroup”

I have a simple matrix like this \matrix { 16 & 3 & 2 & 13 \\ 5 & 10 &|[fill=yellow]| 11 & 8 \\ 9 & 6 + 2 & 7 & 12 \\ 4 & 15 & 14 & 1 \\ }; My issue ...
3
votes
2answers
148 views

Reduce a matrix to row echelon form:

How to create this matrix in latex?
4
votes
1answer
44 views

Spacing between figures in \matrix of tikz

I'm trying to put 4 figures with unequal heights in a matrix. My code which you can compile here is: \documentclass[journal=aamick]{achemso} \usepackage{tikz} \usetikzlibrary{matrix,positioning} \...
1
vote
3answers
52 views

Box inside matrix [duplicate]

I'm trying to do something like this: The matrix was generated with the following code: \begin{equation} \begingroup % keep the change local \setlength\arraycolsep{2pt} \begin{...
1
vote
3answers
59 views

Connecting boxes with the lines drawn from the centre with tikz

I drew the following flow chart using a matrix in tikz (the code has been taken from this question): \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \...
2
votes
2answers
83 views

tikz - annotation text block with matrix

I wish to annotate a hex text block with matrix. and the matrix output should be similar to listings output. so I add a listings above for compare. \documentclass{article} \usepackage[margin=1mm]{...
2
votes
1answer
48 views

Tikz Matrix has large gaps between rows

I'm having an issue where the matrix I'm inserting has extremely large gaps between rows. For some reason, the gap between each row is around 10.5cm, and I can't figure out why. The following code ...
2
votes
1answer
36 views

matrix customize shape not fit with other cells

I try to use a customized shape (crossed rectangle) as below: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix,calc,decorations.pathreplacing,shapes.misc} \usetikzlibrary{matrix} \...
1
vote
1answer
44 views

Legend not working for TikZ/PGFplots

I am using the answer in this post, to generate a heatmap of a matrix stored in a data.dat file. The matrix stored in data.dat file looks like this: 1.083 0.329 0 -0.139 0.329 -0.683 0....
1
vote
1answer
68 views

Plot matrix from input data

I have a matrix, M, exported from Matlab to a .dat file. I want to import this into tikz and plot a density plot for the real and imaginary parts of M separately. The x-axis being the column index, y-...
4
votes
2answers
122 views

Undefined control sequence when using \edef with \foreach

I’m attempting to define a command to build several similar tikz nodes. These nodes differ only by one parameter (#2 below). Here are the main questions I’ve referenced so far: Foreach inside a TikZ ...
5
votes
1answer
102 views

reorder matrix rows for tikz matrix

I have a tikz matrix, I'd like to reorder the rows from top to bottom to bottom to top \matrix { a & b & c\\ d & e & f\\ g & h & i\\ } to \matrix { g & h & i\...
2
votes
2answers
33 views

Homogeneous spacing for matrix elements

can somebody tell me how to get homogeneous spacing between the elements of my matrix? Here is the code I'm using but it is not working as I was expecting. \documentclass[12pt]{scrartcl} \...
1
vote
1answer
39 views

Text overlapping with arrow used in tikz diagram

I have the following code \documentclass[tikz,border=5mm]{standalone} \usepackage{xcolor} \begin{document} \usetikzlibrary{matrix} \begin{tikzpicture} \matrix (m) [matrix of math nodes, nodes ...
4
votes
1answer
56 views

Tikz: error when using beamer-class but not when using article-class

I'm using Overleaf to build a beamer presentation and wanted to add rectangles around cells in table (as described in this other question/answer by barbara beeton). Unfortunately, I get error messages ...
3
votes
2answers
45 views

Anchoring arrows

The arrow from the circle around the checkmark to the 1 starts within the circle, not its border, and its arrowhead pierces the border of the target circle. I would like, instead, for the arrow to ...
2
votes
1answer
58 views

How to highlight / uncover / connect by paths step by step various parts of math formulas blended with text?

I wrote the following code, that works, and approximately do the job. But it suffers from many flaws, I evaluate it as ugly, and would like to receive some advices on how to do same things the right ...
5
votes
1answer
59 views

Double lines appearing at the border of tikz matrix table cells

I have a piece of latex code: \documentclass[parskip]{scrartcl} \usepackage[margin=15mm]{geometry} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{matrix} \definecolor{arbitrary}{rgb}{0.9,1,...
5
votes
2answers
144 views

How to circle together certain entries of a matrix?

I am looking for a way to circle together the red entries of the following matrix: $$ \begin{matrix} \textcolor{blue}{[0,1]} & \times & \textcolor{blue}{[0,1]} & \times & \...
1
vote
2answers
57 views

Tikz horizontally align group of matrices

Can someone help me aligning horizontally the first two matrices so that they will be centered with respect to the others below? Thank you in advance. \documentclass[tikz,border=2mm]{standalone} \...
2
votes
2answers
67 views

How to draw this particular block matrix

I need to draw the following block matrix The closest I have got is by using the following code: \begin{pmatrix} \lambda_1 & * & \dots & *\\ 0 & \lceil & & \rceil \\...
1
vote
2answers
44 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. ...
3
votes
1answer
59 views

Matrix with effects II

I was able to draw the matrix but there is a trick. The blue shading is just a rectangle, not a shadow. In my example I have a shadow. I’d like to know how I can replace it as it appears in the ...
5
votes
2answers
264 views

Cross over of arrows in a complex diagram

I have drawn a diagram using tikzpicture, but it has arrows crossing over each other. How do I keep the Horizontal arrows in each level intact and break the other arrows at the point of intersection? ...
3
votes
2answers
113 views

Selecting columns and rows in a matrix

I am trying to draw what's on the picture: How can I draw the ellipses? mwe: \documentclass{article} \usepackage{mathtools} \usepackage{blkarray, bigstrut} \begin{document} \begin{table} \...
4
votes
1answer
101 views

Tikz: Large block in matrix and separate arrows (block diagram)

I an trying to write the following block diagram in tikz. Because it mainly consists in aligned blocks, I am using a matrix for the layout. I wrote the following tikz instructions, which give the ...
1
vote
2answers
41 views

How do we put labels to this matrix as shown in colors?

The code that I am currently using is below \begin{equation*} \mathsf{L} ~~=~~ \begin{bmatrix} 1 & 0\\ 0 & -1\\ 1 & 1\\ 1 & 1 \end{bmatrix} \end{equation*}
1
vote
1answer
86 views

Populating a tikz matrix with complex content

I am trying to populate a tikz matrix dynamically using foreach to loop over a list-argument and breaking it further apart using xstring operations. I am hitting an issue where, as far as I can tell, ...
2
votes
2answers
125 views

Matrix with uneven element lengths with added rows/columns

From the answer to this question Using the following code \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usetikzlibrary{arrows, calc, fit, ...
1
vote
1answer
180 views

Aligning matrix of nodes with grid

I am trying to render a grid of stones using the code below, however when I remove the stone in m-3-1, the stones above and to the right of it (particularly m-1-5) will be off-center: \...
2
votes
1answer
91 views

Matrix with uneven element lengths

From the answer to this question When editing the elements of the matrix to become uneven in length, the display of the matrix becomes disturbed. How can this be solved \documentclass{beamer} \...
6
votes
2answers
163 views

Separating matrix elements by lines

Using the following code \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usepackage{pgfplots} \usetikzlibrary{arrows, arrows.meta} \...
2
votes
1answer
36 views

How do I write a matrix inside a flowchart?

I'm new to LaTeX and I would like to write a matrix inside a flowchart. How do I do this? The matrix should go in the empty node and concatenated to some text: Current method of storing the matrix ...
3
votes
1answer
58 views

How to add a number at the right of a matrix plot and an additional colored 1 line array below or above

From this precedent question Drawing a large binary matrix as colored grid in TikZ I have the following matrix plot: \documentclass{article} \usepackage{filecontents} \usepackage[table]{xcolor} \...
0
votes
1answer
64 views

matrix with its minors highlighted [duplicate]

I have to highlight the ith row and jth column which are removed from a matrix to form its minor as depicted in the picture My try is this, but I don't know how to highlight.. \documentclass[...
2
votes
1answer
64 views

Beamer - error when uncovering tikz matrix

I am trying to uncover a tikz matrix using the code below. But it is throwing an "undefined controlled sequence" error. Does anybody know how I can fix this? \documentclass{beamer} \usepackage{tikz} \...
28
votes
2answers
2k views

Levi-Civita symbol: 3D matrix

During the current review of the tensors I have arrived at a page of Wikipedia where you can see the symbol of Levi-Civita in a beautiful three-dimensional matrix. I hope that nobody will be angry ...
2
votes
1answer
99 views

Place Value Chart in Matrix Environment

I want to add another columns (yellow) for the Millions Place plus I would like to auto adjust textwidth and height of the nodes while reading the place values from bottom up: \documentclass{article} ...
1
vote
1answer
64 views

How can I create box cells in the form of half of 6×6 matrix?

Looking for some ways to write a half matrix with box cells. My aim is to write like things in the picture.
1
vote
1answer
263 views

Determinant with tikz latex

I need your help to formulate Sarrus rule for 3X3 matrix Thanks in advance.
3
votes
3answers
546 views

Determinant of 3x3 matrix by cofactor expansion

please help me to create this in LaTeX:
1
vote
1answer
38 views

Put first element of tikz above the axis to make a “L” shaped arrow

I'd like to position the first element of my chart just above the x axis to make the first line like a "L" shape. Here is what I have now: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{...
1
vote
1answer
128 views

How to overlay properly using a Tikz Matrix in Beamer?

Does anyone have a clue about why my last node is moving? I'm trying the overlay as stated in this post. Thank you very much! \documentclass[xcolor=dvipsnames,10pt]{beamer} \usepackage{tikz} \...
5
votes
1answer
127 views

Calculations within Matrix Tikz

How can I tell tikz to make a calculation within a matrix. The same syntax outside does not work within as is shown in this MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,calc} ...
3
votes
2answers
68 views

smallmatrix using tikzpicture

I wish to use tikzpicture instead of smallmatrix, because the former offers better control for dots via this post. However, the code $\Z^4\!\xleftarrow{ \begin{tikzpicture}[baseline=(current ...
0
votes
0answers
69 views

Expand Tikz matrix with foreach statement?

I am playing with Tikz matrices and would like to use the foreach statement to "expand a matrix". More precisely, I wonder if I can use a foreach statement such as: \n in {Alice (the genious), Bob, ...
13
votes
4answers
570 views

TikZ matrix, why doesn't “every even row” work with “row sep” option?

Please consider the following mwe: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix (m) [matrix of math nodes, nodes={...

1 2 3 4 5 7