Questions tagged [tikz-matrix]
{tikz-matrix} concerns matrix nodes particularly in the tikz-matrix library of tikz-pgf.
451
questions
0
votes
0
answers
78
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 ...
4
votes
1
answer
89
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 ...
1
vote
1
answer
61
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 ...
1
vote
1
answer
34
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{...
0
votes
0
answers
33
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,
...
1
vote
1
answer
50
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. ...
0
votes
2
answers
69
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 ...
6
votes
2
answers
230
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 ...
1
vote
1
answer
47
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 ...
4
votes
1
answer
108
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) ...
2
votes
3
answers
177
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, ...
2
votes
3
answers
74
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 ...
3
votes
1
answer
102
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);
...
1
vote
2
answers
58
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{
\...
0
votes
0
answers
38
views
tabular to be changed into a tikz matrix or nicetabular
I made a table in which I have 3 different font sizes in which, one is a complex script.
Since the features that I used and want to add are more easily done with TikZ I'd like to change it into a TikZ ...
0
votes
2
answers
63
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}
\...
1
vote
0
answers
59
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" ...
0
votes
1
answer
46
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 &...
1
vote
2
answers
99
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{...
4
votes
2
answers
78
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]{...
0
votes
0
answers
49
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}; & \...
0
votes
2
answers
35
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 ...
1
vote
1
answer
63
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:
...
3
votes
1
answer
51
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[...
3
votes
1
answer
170
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. ...
2
votes
1
answer
63
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 ...
2
votes
1
answer
57
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 ...
2
votes
2
answers
137
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: ...
0
votes
1
answer
41
views
Adding Offset to Node Fitted on 2 Matrix
I have 2 problems with the following diagram:
I need to decrease space only between two matrix N2 & N5
I need to offset the node to be slightly larger then the matrix N2 & N5 that it is ...
3
votes
2
answers
112
views
Highlighting the top and bottom of a matrix
I want to be able to make that kind of triangles like in the image. I hope you can help me
1
vote
1
answer
106
views
Creating Flow Diagram Using Matrix
I am creating a flow diagram using Matrix, and I have inner layer that I want to connect the arrows from. How can I achieve the following:
I am also trying to separate the heading into a node (...
0
votes
0
answers
33
views
Visualizing matrix factorization with brackets and text
I want to recreate the image below, but I cannot set it correctly.
I tried to follow this example: Matrix decomposition
4
votes
2
answers
182
views
Why is the style specifier appearing instead of the split rectangle in this matrix?
I'm creating a step-wise schematic of a process of re-linking a doubly linked lists. My intuition is to use split rectangles for the nodes (representing pointers and value, respectively), and then a ...
4
votes
2
answers
210
views
How can I add a figure inside a TikZ Matrix?
I have a TikZ matrix that is similar to this :
\documentclass[11pt]{report}
%% Package for creating diagrams
\usepackage{tikz}
\usetikzlibrary{positioning,fit,matrix, backgrounds}
\tikzset{
1/....
3
votes
3
answers
305
views
Make tikz matrix of nodes uniform
I want to create a diagram with a couple tables and arrows/braces to describe what changes between the table as different functions are applied to it. However, when creating a table with matrix of ...
0
votes
1
answer
114
views
tikz visualization of matrix vector multiplication
I would like to visualization the multiplication between a matrix and vector with color cells as follows, how can I do it? Thanks.
5
votes
5
answers
671
views
Typeset sudoku grid using tabular syntax
This is a sort-of follow-up to the question Create environment whose contents are passed to TikZ matrix, which did not reveal any solution to the specific question (but did make me aware of another ...
1
vote
1
answer
58
views
Create environment whose contents are passed to tikz-matrix
Here is some code that works perfectly well (this code is based on this answer):
\documentclass[tikz]{standalone}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\matrix [matrix of ...
0
votes
3
answers
51
views
Aligning and positioning the node contents inside a table made of TikZ matrix
I have difficulty aligning the contents of the nodes inside a TikZ matrix.
I'm specifically interested in achieving the kind of table below:
I got most of this code off the Internet and rearranged ...
1
vote
1
answer
47
views
emphasizing text of matrix row or column
here is a mwe for a 3x2 cells matrix of tikz. I'd like to "circle" the text of one row, i.e. the circle or rectangle Must be centered on the text, not the cell.
With my try of using row ...
2
votes
3
answers
311
views
tikz nodes same height (e.g. in Matrix) + vertical alignment
I know I can manually vertical align text in nodes via the text height/text depth keys. I know also I can set the total height to be the same with the same two keys.
But what if I want both effects at ...
4
votes
2
answers
158
views
tikz matrix to look like basic tabular
I've been able to make tikz matrix look like basic tabular, but it implies the use of "text height=..." and "text depth=...", which need to be readjusted everytime a new font or a ...
5
votes
2
answers
202
views
Node to a word of the content of a matrix cell
I'm trying to draw various things relatively to some parts of matrix rows, but for \node (a) {this}; is one row\\ for example of a row in a matrix, only the part between the curved brackets are ...
2
votes
1
answer
103
views
matrix alignment with another matrix row
placing a matrix relatively to the 2nd+ row does not seem to work correctly, as if outer sep were not set to 0.
I placed a node for x coordinate, and i'd like the new matrix top left corner at same ...
5
votes
3
answers
196
views
How to center node in tikz matrix cell?
How do I center a node in the middle of a tikz matrix cell?
This MWE:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikzset{mynode/.style={rectangle,draw,minimum width=2cm,minimum height=...
0
votes
1
answer
92
views
tikz text vertical alignment in matrix
i need two separate tables using matrix in tikzpicture. With my code i do not get proper alignment and even from one row to another. I tried increasing the "minimum height" and "row sep=...
2
votes
2
answers
159
views
table with tikz with custom column settings and rounded corners
I need to make a table, within a tikzpicture environment. So far i used tikz matrix, but i was not able to get what i desired. The table needs to have all contents aligned on the right. Odd column ...
1
vote
2
answers
83
views
How to highlight some cells in confusion matrix
I am trying to draw the following figure:
I have found an example to create the table in confusion matrix using only LaTeX code and tried to adapt the solution to my table
\documentclass{article}
%\...
0
votes
1
answer
53
views
packaging a matrix/tikzpicture into a newcommand while keeping the arguments within the style
I've got a SWOT matrix that works well when used in the main body of the text.
I would like to package this and use something like:
\swotfigure{foo}{bar}{frut}{boo}
i.e. a newcommand with 4 ...
3
votes
2
answers
271
views
equation Ax=b, inside matrix form
I am trying to write a matrix form of Ax=b, just by putting every letter inside a matrix. The output is as I want, but I need to make it more readable, by increasing the size of the pmatrix with every ...