Questions tagged [tikz-matrix]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
49 views

Why is the following Tikz picture in beamer overlapped? [duplicate]

In overleaf with the code below I got the following figure: \documentclass[]{beamer} %works also for article \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{matrix,arrows,decorations....
José's user avatar
  • 687
1 vote
1 answer
29 views

add superscript to `\matrix (m) [table]` brace in tikzpicture

I would like to add a superscript to an existing brace in a \matrix (m) [table]. This will denote the transpose. I need to decorate the brace to preserve spacing with another \matrix (m) [table]. My ...
rrrrr's user avatar
  • 503
3 votes
3 answers
115 views

Controlling node edge drawing in a tikz matrix

I'm trying to draw a grid of nodes of specific size. In addition, I'm poking holes into this grid by trying to make the cells and in particular their inner borders white. To make this concrete, ...
mrm's user avatar
  • 189
3 votes
1 answer
85 views

A vertical line separates matrix entries in the tikzpicture matrix environment?

How do we make a perfect vertical line as the line in the square matrix to separate between Cc and G on the left and the D and H on the right in the tikzpicture matrix environment? The line shall be ...
zeta's user avatar
  • 133
2 votes
1 answer
71 views

tikz matrix, newcommand

Is it possible to use "\newcommand" with a TikZ-matrix ? This code doesn't work... \documentclass{minimal} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{tikz} \...
Clairon's user avatar
  • 407
1 vote
1 answer
70 views

A Tikz matrix with 'inside' border lines

How should I write my latex code so that the tikz two-column matrix has one inside vertical line (the border between left and right columns) and one horizontal line (the border between 1st and 2nd ...
Alex's user avatar
  • 55
3 votes
1 answer
85 views

\resizebox gives compile error when used with tikz matrix

This MWE compile using lualatex with no error \documentclass[12pt]{article} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix[draw=red,...
Nasser's user avatar
  • 20.9k
2 votes
1 answer
77 views

Why don't pic prefixes in TikZ work with matrix cell names?

When I have a pic whose code includes a matrix, things don't work when I use a name prefix for the pic: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{...
Frink's user avatar
  • 47
1 vote
2 answers
89 views

Text misaligned with node border when TikZ matrix cells are combined

I tried to combine two cells into one in a TikZ matrix: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture} \matrix (...
Frink's user avatar
  • 47
1 vote
1 answer
52 views

Beamer animation inside Tikz matrix of nodes?

In a Beamer presentation, I use Tikz to make some fancy figures. Usually I can animate them with \onslide etc... But, here I have an error while using the \matrix command (it's the first time I use it)...
Donut's user avatar
  • 31
1 vote
1 answer
26 views

Missing } inserted error using tikz \matrix

My code compiles the matrix fine, but does not seem to realize it's left the matrix environment. If I try to put another matrix immediately after, I get the error "you cannot nest pgfmatrix ...
Aidan Hennessey's user avatar
4 votes
1 answer
210 views

A Table Cell with Rounded Corners in LaTeX

Suppose I have a table like this: \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{cc|cc|c|} \cline{3-5} & & \multicolumn{2}{c|}{\...
Qaher's user avatar
  • 1,242
7 votes
2 answers
214 views

Expansion issues again

I seem to keep encountering the same issue. In my attempt to learn more about expansions I have written a program that starts with a sequence of 1s and then after each step increments it to generate a ...
Ted Black's user avatar
  • 453
4 votes
3 answers
178 views

Generating matrices with a single command

Suppose I wanted to generate a 5x4 matrix. A good way to do it is to write the following commands: \[ \begin{tikzpicture} \matrix(m) [matrix of nodes, ampersand replacement=\&, row ...
Ted Black's user avatar
  • 453
1 vote
1 answer
97 views

How to build the following table (picture below) using TikZ?

Here is the table that I'm trying to build. How can it be done with TikZ? UPDATE Here is the code I'm using. But now I need to remove the outer border (as in the picture above). How to remove the ...
Neves's user avatar
  • 423
1 vote
2 answers
85 views

tikz matrix of multipart nodes

I can't figure out how one puts data of a multipart nodes in a matrix. Is this allowed ? The Following MRE works well \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{trees, shapes, arrows,...
hivert's user avatar
  • 123
0 votes
1 answer
39 views

Link between matrix nodes not horizontal

I'm using tikz matrix to put some data on a grid. However depending on the height of what's in each node the edge linking two nodes are slightly slanted making an ugly effect of wavy line. How can I ...
hivert's user avatar
  • 123
3 votes
1 answer
106 views

Coloured half lines in a matrix

I was wondering how I could create this matrix in LaTeX: I know how to do the matrix part but my question is the lines, how can I make them stop in (1,1), (2,2) and (3,3)?
Ravinala's user avatar
4 votes
2 answers
205 views

Continuous line between nodes of a tikz' matrix of nodes

In the following tikz matrix of nodes, the red line isn't drawn on the (magic-2-2) node. How could I make it continuous from (magic-1-1) to (magic-3-3) nodes, drawn through the (“step” on) node (magic-...
Denis Bitouzé's user avatar
2 votes
2 answers
130 views

small matrix inside big matrix

How can put a matrix inside a matrix like the picture shown with a big letter inside the smaller one?
Thunder Black's user avatar
3 votes
1 answer
257 views

How do I put a box around a column in a matrix in Latex?

I want to build a matrix in Latex code and wrap some components of it with a square. For terms that are on the same line I managed to do it well. But for terms of different lines I am not able to do ...
Ramos's user avatar
  • 33
1 vote
2 answers
67 views

Tikz milsymbs in a matrix, with colours (getting errors)

Am posting two in one as I suspect these may be related. Following on from my previous question, I am putting them in a matrix: \documentclass{standalone} \usepackage{tikz} \usepackage{milsymb} \...
Tomas By's user avatar
  • 187
0 votes
0 answers
104 views

Confusion matrix: splitting the name of classes into two lines

I am trying to create a confusion matrix. The matrix works fine although the class names are too large and thus overflow. I want to split the class names into two lines. The \\ command does not work ...
user157522's user avatar
4 votes
1 answer
119 views

Dynamically generate values in matrix and calculate using them

I am using the following code to generate a matrix filled with random values. I would like to use this matrix to explain how a convolution is applied to an image (specifically the mean), so that's ...
Dexterous's user avatar
1 vote
1 answer
97 views

Change colour of precision score in confusion matrix

I am trying to work with a confusion matrix that displays the precision score in latex. I would like to keep the color of the confusion matrix value as black and the color of the precision score as ...
user157522's user avatar
1 vote
1 answer
122 views

TikZ matrix library compile error "Missing } inserted"

I am only trying with a very naive example: \documentclass[tikz]{standalone} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix (m) [matrix of nodes] {a}; \end{tikzpicture} \end{...
Aaron's user avatar
  • 155
0 votes
0 answers
80 views

How to specify size of tikz matrix of nodes in latex

I have the following code: \documentclass[tikz,border=2pt,convert]{standalone} \usepackage{mathtools} \usetikzlibrary{ arrows.meta, bbox, decorations.pathmorphing, ext.shapes.superellipse, ...
Rodrigo's user avatar
  • 481
1 vote
1 answer
77 views

How to set visible value inside TikZ based on calculation?

I have the following beamer frame, which has two matrices, one with 4 columns, and another with 3 columns. The first one is displayed column by column as expected, but the second one is not. ...
pixel's user avatar
  • 1,347
0 votes
2 answers
110 views

How to uncover columns of matrix in TikZ?

I have the following beamer frame, which has a matrix with 4 columns. The point is that I want to uncover the columns one by one, and additionally somewhere above where one column ends and other one ...
pixel's user avatar
  • 1,347
6 votes
2 answers
248 views

Table with off-set column using Tikz

I am trying to do a table. using tikz matrix, like the one below using Tikz. The problem is that I don't know how to do the first row, with "clutch" "brake" neither do I know how ...
John W. de Burgh's user avatar
1 vote
1 answer
63 views

How to align a TikZ matrix' cells w.r.t. their centers?

The following question may be a duplicate of this one. The problem I will describe below is very similar to the one described in the possible duplicate. However, the duplicate seems to be concerned ...
Evan Aad's user avatar
  • 11k
4 votes
1 answer
129 views

Mysterious space between a TikZ matrix' rows

The following LaTeX code was saved in the file ~/test.tex. \documentclass[tikz,border=1cm]{standalone} \newcommand{\grid} {% \foreach \x in {1,2} \foreach \y in {1,2} \draw (\x,\y) ...
Evan Aad's user avatar
  • 11k
2 votes
3 answers
324 views

tikz matrix: width of a column used as spacer

I want to insert text in a beamer slide using an invisible tikz matrix of fixed width (.85\paperwidth), 2 columns (~ 3cm) on the upper left part and similarly on the upper right part. Only one matrix, ...
user1850133's user avatar
2 votes
3 answers
95 views

Vertically center `matrix of math nodes` on baseline

I want to typeset matrices with matrix of math nodes. However, I am having trouble with vertical centering. In the following, I expect the equal sign to be in the middle of the two matrix rows. How ...
Manuel Schmidt's user avatar
3 votes
1 answer
158 views

How to scale tikz pictures that include matrices?

The following LaTeX document is saved in a file whose path is ~/test.tex. \documentclass[tikz,border=5mm]{standalone} \begin{document} \tikz[transform shape, scale=1.0] \draw (0,0) rectangle (1,1); ...
Evan Aad's user avatar
  • 11k
1 vote
2 answers
125 views

Fitting the contents of a matrix with TikZ's fit option

The following LaTeX document is saved in a file whose path is ~/test.tex. \documentclass[tikz,border=1cm]{standalone} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture} % \matrix{ \...
Evan Aad's user avatar
  • 11k
4 votes
2 answers
343 views

Use tikz or anything else to draw the demonstration figure for the 3rd-order matrix determinant

I try to draw the following picture by using TikZ and \tikzmarknode. The straight line segments are easy to draw, but how to draw the curve parts? My code: \documentclass{article} \usepackage{amsmath}...
Stephen's user avatar
  • 3,434
1 vote
3 answers
257 views

subfigure | getting it working with tikzpicture-matrix

Using the subfig package. For simple docs where the sub-figure graphics are included, works fine. For example, the following code works perfectly. \documentclass{article} \usepackage{graphicx} \...
Johnny Canuck's user avatar
1 vote
0 answers
99 views

TikZ matrix of node: How can I space rows individually? [closed]

I would like to arrange multiple nodes in a TikZ matrix, but with different horizontal spaces between each other. Say, I want node "a" and "b" to be 30 mm apart, node "b" ...
MulticolMetallurgist's user avatar
0 votes
1 answer
52 views

How do I draw a line from point to point on this 3x3 grid?

How do I draw a line connecting a dot from one end to another? \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \begin{document} \[ \begin{matrix} \bullet &...
Gaussian 123's user avatar
1 vote
2 answers
221 views

How to make nodes the same size without influencing cells in matrix

I'm drawing a tree with tikz and would like the nodes to all have the same size, regardless of content. This is what my code currently does: This is my code: \documentclass{standalone} \usepackage{...
caarrrl's user avatar
  • 13
4 votes
2 answers
120 views

Coloring brackets in TikZ matrices

I would like to have different colors for the left brackets of matrices but every left delimiter/.style={red}] gives my just the option to color all brackets the same color: \documentclass[border=2pt]{...
Michael Dorner's user avatar
0 votes
0 answers
98 views

How to put diffent color in some cells in this matrix using Tikz?

I got this matrix bellow : \begin{tikzpicture} \matrix [nodes={fill=red!20,minimum size=15mm}] { \node {27}; & \node{12}; & \node {12}; & \node {16}; & \node{24}; & \...
GeissonB's user avatar
0 votes
2 answers
46 views

Extra left space on Tikz matrix node

I use the following homemade color legend for Tikz drawings (the code this given at the end): But when I tried to print two color rectangles horizontally, an extra space appears on the left (see ...
zetyty's user avatar
  • 769
1 vote
1 answer
123 views

Circle rows in a matrix and add comments aside

I am trying to modify my bmatrix by circling a row, and adding a \sum symbol as well as circling few other components and writing above them, as seen in figure below: My matrix code is the following: ...
Wallflower's user avatar
3 votes
1 answer
55 views

Tikzpicture and matrix AND a back decoration

I want to create a decoration rectangle or triangle to emphasize the zeros of a matrix in a book \documentclass. This code works fine in qtikz and ktikz \begin{tikzpicture}[rounded corners] \draw[...
JOM's user avatar
  • 457
3 votes
1 answer
406 views

Write a 3D matrix in latex with equation environment

I am trying to write a 3D matrix in latex, that is of the following form: I have checked few answers in this forum but they don't tell how to include the equation in the tickpicture environment. ...
Wallflower's user avatar
2 votes
1 answer
100 views

Double nested nodes in tikz

I want to make something like the following image in tikz: To be able to do this, I would need to, essentially double nest nodes. I saw this post about nesting nodes: Nested TikZ nodes. The solution ...
TT-392's user avatar
  • 23
2 votes
1 answer
79 views

Centering and positioning images within tikz matrix nodes

I'm trying to build a tikz matrix where each cell will either be empty, contain an image or a part of an image. That is, a single image if it's large may span multiple cells. I'm using the following ...
mrm's user avatar
  • 189
2 votes
2 answers
190 views

Tikz diagram with matrix and chains

I'm learning how to draw diagrams with tikz I found valuable examples in texample.net, they are free to use, and most authors are very active in tex.stackexchange.com I downloaded this "Example: ...
user avatar

1
2 3 4 5
10