Questions tagged [tikz-matrix]

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

concerns the feature in tikz-pgf that allows setting nodes in a matrix form. The tikz-pgf package includes a library, tikz-matrix to achieve this. The library and the capabilities of tikz-pgf is described in the tikz-pgf manual.

476 questions
13
votes
4 answers

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={draw, font=\footnotesize, minimum size=1em, …
Zarko
  • 296,517
5
votes
2 answers

Is it possible to refer to the last column of a tikz matrix?

Consider the following matrix This matrix was produced with the code \begin{tikzpicture} \matrix[ , matrix of nodes , left delimiter={[},right delimiter = {]} ] (m) { * & * & * & * \\ * & * & * & * \\ * & * & * & * \\ }; …
5
votes
1 answer

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\\ d & e & f\\ a & b & c\\ } Of course I can do it by hand for simple cases…
user200960
4
votes
2 answers

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 different font size is used. The problem when using "minimum…
4
votes
2 answers

Cell color overriding cell rounded border

In a table, made with Tikz, I tried to make the first row darker than the rest by, I think, a little of brute force. It happens that the borders I want must be rounded and the extreme cells (north west, north east, south east and south west ones)…
Feripinho
  • 129
4
votes
3 answers

Draw matrices side-by-side in tikz

I would like to achieve the next result in tikz: However, I am only able to draw the matrices without the mathematical operations between them i.e. the dot product and the equal signs (having the same height for the parenthesis is a plus). Below I…
4
votes
1 answer

How may I insert horizontal dots in the second row of my vmatrix?

It seems to me that my method is quite inconvenient. Could someone help me in this matter? \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{mathtools} \DeclareMathOperator{\sgn}{sgn} \begin{document} …
3
votes
3 answers

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, consider the…
mrm
  • 189
3
votes
1 answer

TikZ: node placement on path in matrix of nodes

I have a problem with placing a node on a path drawn between two nodes in a TikZ matrix. I want to show the correspondence between the edge of a directed graph and entries of its adjacency matrix. My plan was to draw a dotted arrow between an…
healyp
  • 343
3
votes
1 answer

Not able to align nodes properly

I have the following code: \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{a4paper} \usepackage{tikz}…
tolog
  • 31
2
votes
1 answer

Missing separation line in Tikz's matrix

I'm trying to create a blank line in Tikz's matrix by node without borders and filled white. But this node cut half of separation line of previous row like on picture. If I change height of key node (test-3-1) it impact on complete row. The property…
2
votes
3 answers

Can tikz-matrices be "forgotten"?

I'm having an issue with matrix names in tikz being "persistent". Consider the two matrices: These matrices were generated with the following…
2
votes
2 answers

Matrix labeling is not working in TikZ

I ran into this code which is very helpful, however, when I run the code there is an error regarrding all the nodes (for instance no shape is named A-2-1), I don't know what is the problem since the way the node are labeled works fine with other…
Diana
  • 1,285
  • 7
  • 12
2
votes
1 answer

How to draw uniform rectangle in a matrix of math nodes?

I made a matrix of math nodes. I am able to draw a rectangle around desired nodes. But every node has content of different size, which deforms the shape of the rectangles. I tried using x and y shift, and played with sep (row, column, inner) also,…
2
votes
2 answers

How do I draw the following matrix in LaTeX?

I want to draw the following matrix in LaTeX: I found that I should use the TikZ package, and I have spent a lot of time looking at the package. However, I have no experience of using the package before, and I do not know how to draw it. How can I…
Sherry
  • 147
1
2 3