Skip to main content

Questions tagged [tikz-matrix]

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

Filter by
Sorted by
Tagged with
2 votes
0 answers
71 views

Tikz calc distance modifier erros on rotated lines in matrix

I want to illustrate how to group together certain terms in an infinite table. So far I have made this: I also want to group a₂b₃ with a₃b₂, and make another group for a₃b₃. So far i have made the ...
RBP's user avatar
  • 21
2 votes
1 answer
44 views

matrix cell name not available

I try to use multipart nodes in matrix and draw lines with cell name. Below code report error:(use pure text works fine) Package pgf Error: No shape named `m-1-1' is known. See the pgf package ...
beetlej's user avatar
  • 1,013
0 votes
2 answers
38 views

Accidentaly made box too big, cannot remove the margin without problems of other coordinates

I have made the box too big it looks like this If I make the last rectangle smaller it ends up looking like this \node[shape=rectangle,minimum height= 8cm] {};& & & & & &\\...
Coping Forever's user avatar
1 vote
1 answer
53 views

Help in Tikz, line overlapping

i got the following code from another side. How is it possible to not overlap the lines and points? \documentclass[ fontsize=12pt, twoside, open=right, toc=bibnumbered, toc=listof, ...
credenco's user avatar
  • 321
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
  • 697
1 vote
1 answer
36 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
140 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
91 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
80 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
81 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
  • 67
3 votes
1 answer
93 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.3k
2 votes
1 answer
80 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
93 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
66 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
32 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
319 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
227 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
  • 495
4 votes
3 answers
239 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
  • 495
1 vote
1 answer
99 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
  • 433
1 vote
2 answers
115 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
44 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
115 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
231 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
149 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
367 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
81 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
108 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
127 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
121 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
179 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
102 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
  • 491
1 vote
1 answer
85 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,370
0 votes
2 answers
116 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,370
6 votes
2 answers
250 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
67 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
  • 11.1k
4 votes
1 answer
142 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
  • 11.1k
2 votes
3 answers
408 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
  • 1,028
2 votes
3 answers
105 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
172 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
  • 11.1k
1 vote
2 answers
158 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
  • 11.1k
4 votes
2 answers
363 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
  • 4,524
1 vote
3 answers
330 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
103 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
57 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
276 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
145 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
103 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
48 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
  • 777
1 vote
1 answer
138 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
62 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

1
2 3 4 5
10