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

learn more… | top users | synonyms

4
votes
1answer
55 views

Custom draws in matrix nodes in tikz v3 with referencing

With tikz v3 the matrix behavior has changed slightly. The great example at http://www.texample.net/tikz/examples/BER-measurement/ doesn't seem to compile any longer. The problem is that the default ...
6
votes
2answers
137 views

How to force nodes to have the same size in tikz matrices

Is there some intelligent way to have several tikz nodes have the same height and width? Consider the following example with output below. I'd like every node in each row to have the same height ...
3
votes
1answer
103 views

how do I add delimiters to both sides of a tikz node?

Here is a simple document which does not seem to display properly: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \tikz \node[matrix of nodes] { |[left ...
10
votes
5answers
352 views

drawing a matrix with its minors

I want to create something like this: This should be a matrix and I want to consider its minors which are drawn by __|. I want to draw also a line from one minor to a place outside of the matrix to ...
6
votes
2answers
232 views

Drawing arbitrary shaped grids in TikZ

I would like to reproduce grids like the following (taken from here, p.5): So far, I've come up with the following TikZ code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} ...
4
votes
2answers
53 views

node style is only taking partial effect in a matrix of nodes

This is probably the first of two closely related questions. I have defined a style: my node style/.style={%% minimum width=\dimexpr0.60in+12pt\relax, minimum ...
7
votes
2answers
122 views

how can I create keys such as “column … to …” for a TikZ matrix

I have a node style I would like to apply to many (but not all) the cells/columns/rows of a matrix of nodes. Currently, for every column or cell that I want the style to apply to, I declare the style ...
0
votes
1answer
41 views

Why am I not able to vertically center my row in either a tabular or tikz matrix environment?

Neither of these two MWE center the content of the rows. Why? Example 1 using a tabular environment` % arara: pdflatex % arara: pdflatex % arara: open \documentclass[border=6pt]{standalone} ...
3
votes
1answer
78 views

tikz and new environment

I would like to creat a new environment in order to draw the following matrix : \begin{tikzpicture}[baseline,every right delimiter/.style={xshift=-8pt},every left delimiter/.style={xshift=8pt}] ...
7
votes
4answers
149 views

TikZ matrix, style for combination or rows and columns

In the TikZ manual we have the example below that shows how to apply an style to an entry of the matrix. It is also easy to apply it for an entire row and an entire column. My question is how can we ...
3
votes
1answer
134 views

TikZ - Tables Highlight and fit text

What would be a way to create a table with the diagonal elements highlighted as such. I used the example found here to get the above figure with this (not great) code \documentclass{article} ...
5
votes
1answer
173 views

How do I make a TikZ matrix match height?

I'm trying to make a table using the matrix TikZlibrary. The problem is that the height does not match. \documentclass[tikz,border=2pt]{standalone} \usetikzlibrary{matrix} ...
6
votes
2answers
104 views

How to align these tqft cobordisms?

I find placement and alignment with the otherwise great tqft package irksome. I'm trying to align several cobordisms in a tikz matrix: \documentclass{article} \usepackage{tikz} \usepackage{tqft} ...
5
votes
1answer
129 views

trouble getting Tikz matrix to compile

In advance of a summer class I'm teaching, I decided to try compiling my notes, which I haven't touched in any way, shape or fashion for 4-5 months. However, in that interval, I've updated laTeX ...
9
votes
1answer
195 views

Spanning a cell across several rows in TikZ-matrix

Using the matrix-library of TikZ I am producing the following image: \documentclass[tikz]{standalone} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[auto, node ...
7
votes
1answer
107 views

Cannot use custom styled nodes with matrix using Pgf 3.0.0

I've been doing some diagrams using TikZ with matrix as the layout. While using Pgf version 2.10, everything went well, but now I'm using Pgf version 3.0.0 (TexLive2013) and there's a problem I'm ...
2
votes
1answer
148 views

TikZ libraries 'shapes' and 'graphs' incompatible and compilations fails with “missing \endcsname”

I need to use the TikZ libraries graphs and shapes in the same document. But they seem to be incompatible. Here is a minimal example that makes active use of the graphs library, but does not need the ...
6
votes
1answer
226 views

How to highlight sub-matrix / nodes with tikz? [duplicate]

I'm trying to highlight a box of different cells of a matrix that I'm rendering. Currently, this highlights the entire matrix in green. What I would like to do is within that box highlight another ...
0
votes
1answer
200 views

Compilation problem with tikz diagram

As I said, I'm writing math books for school; one of them is about matrices and I have several problems with it. It's a big code, so I'm trying to summarize it: Problem with TikZ matrix: When I ...
4
votes
1answer
534 views

Position of nodes in TikZ matrix

I would like to be able to put a comment below an element in the last row of a TikZ matrix. I thought that the MWE below would allow me to do that, but it does not. To be specific, I thought the MWE ...
8
votes
2answers
511 views

How to overlay tikz matrix in beamer?

Background: I encounter some unexpected situations while overlaying a tikz matrix in Beamer. The latex code is given at the end (note: you can also read and copy it at ShareLatex:TikzMatrixOverlay). ...
7
votes
3answers
231 views

Maintaining alignment between irregularly vertically spaced TikZ matrix nodes

I'm trying to create a diagram with pairs of rectangles of different sizes, each separated by a fixed interval. Additionally, I want each pair to be left-aligned at the same point. Here's an example ...
8
votes
1answer
294 views

Need some help getting started with TikZ, groupplots and color mapping of matrix

I used Python to make the plot shown below (saved as png). It should have a common colorbar and all data is read from a h5 file, but I thought saving it to a txt file or something using a Python ...
10
votes
1answer
821 views

Why are empty and non empty TikZ matrix cells not equally placed?

I wanted to draw an almost empty matrix of nodes with TikZ similar to the left most one below. All nodes would have same size (through minimum width and minimum height) and no separation between ...
7
votes
1answer
221 views

How do I evenly fill the background color of a block of elements inside a TikZ matrix?

When I fill each element separately of the blocks that I want to highlight, the PDF output shows very small white spaces in between the backgrounds of the separate matrix elements inside the ...
4
votes
1answer
423 views

How do I draw horizontal and vertical lines for a TikZ matrix

I want to use a TikZ matrix to draw a table with empty cells. But no matter what I do I run into errors. In particular, LaTeX complains about ! Package pgf Error: No shape named ae-5-4 is known. ...
5
votes
2answers
135 views

draw and fill options ignored in column style

The draw and fill options are ignored when supplied to column 1/.style in a tikz matrix, but text color and other options aren't: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} ...
4
votes
1answer
342 views

How to insert a linebreak in a TikZ matrix node?

How can I get a linebreak inside a matrix node? The following gives the error: Package tikz Error: Giving up on this path. Did you forget a semicolon?. unless I remove the linebreak. ...
3
votes
1answer
118 views

Matrixcells problem with the y-axis only

I observe a strange behavior with matrixcells.dtx by @AndrewStacey. The cells give me a complete tiling but when some rows are taller than average the tiling is shifted (see pictures and example ...
2
votes
1answer
200 views

Adding nodes in a style

I have the following code, which draws a matrix and then uses the nodes inside the matrix to create new nodes: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{matrix} ...
6
votes
3answers
321 views

Countability of the rationals: a pictorial diagram

I am trying to reproduce the diagram below: I'm wondering what I should use to generate this. I can make the matrix, that's simple, but getting the arrows right is what's difficult... It would be ...
4
votes
3answers
220 views

Vertically and horizontally centering a matrix bigger than margins

This question is a follow-up on a previous question: positioning of a matrix bigger than margins That question dealt with positioning a pgf matrix that exceeded the horizontal margins of the page ...
6
votes
2answers
616 views

Alignment problem of empty cells when doing multirow/multicolumn cells in TikZ matrices

This is a question which has been discussed here and here. One of the solution discussed is to use fit to cover empty cells. However, while trying it, it displayed an alignment problem between the ...
6
votes
2answers
222 views

positioning of a matrix bigger than margins

A document I'm working on has a table that was complicated enough for me to try and make it using a pgf matrix of nodes. However, the resulting matrix ended up being slightly too big for the page. ...
2
votes
1answer
2k views

Creating table using TikZ matrix

I'm trying to create a table in TikZ with the first column right-aligned, and the texts in each cell on the same line the rest of the columns center-aligned, and each has width of 1cm My attempt ...
3
votes
1answer
210 views

Tikz rectangle shaped arrows

I have a problem with the placement of labels on "rectangle shaped" arrows. I would like to place the labels middle and most right or left on the most right and left arrows respectively. Does anyone ...
1
vote
0answers
41 views

Iterate over certain matrix cells [duplicate]

I have a matrix and want to reference several nodes of this matrix. How do I add a line for some of the cells? I came up with this: \documentclass[12pt]{scrbook} \usepackage{tikz} ...
1
vote
0answers
52 views

Tikz Matrix (alignment?) [duplicate]

I have the following example: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{equation} \begin{tikzpicture}[baseline=(current ...
3
votes
1answer
712 views

Problems with Beamer and diagrams in Tikz

I did a commutative diagram with tikz in the article class and everything works. The next code is the MWE in article class. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} ...
5
votes
2answers
307 views

tikz matrix align/decorate cellpictures

I have a matrix of cell pictures, and want the first column to be right aligned and the second column to be left aligned. However I have trouble using the "nodes" key. example ...
7
votes
1answer
337 views

Drawing multiple iterations of cellular automatons inline, possibly with TikZ

I want to illustrate the iterations of a cellular automaton picture-by-picture in some slides. For those not familiar with the topic, imagine a two-dimensional grid of square cells where each square ...
3
votes
2answers
155 views

Making a specific cell of a dynamically generated tikz matrix BOLD

I want to make specific cells of a dynamically generated tikz matrix bold. I have tried many things: \bfseries, \mathbf, \textbf, \bf, using assume math mode=false in \pgfmathprintnumberto ... Here ...
9
votes
2answers
983 views

tikz matrix: color entire row

Goal: I would like to color entire rows of a tikz matrix. Background: I did some googling, and I got the following. Debugging: I know what is wrong (it's only coloring the individual nodes, rather ...
3
votes
1answer
90 views

How to use a complex expression in matrix anchor?

Please look a next figure: I've done it with: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{matrix,positioning,arrows} \tikzset{ >=stealth', box/.style={% ...
9
votes
2answers
213 views

How do I encircle a partial table in tikz?

I am trying to create a diagram that looks roughly like this picture: Except that I want it to have rounded corners. It seems that the obvious way to do this would be to use tikz, so I have made ...
1
vote
1answer
531 views

How to adjust or move the labels of arrows in tikz matrix of math nodes

I am trying to label crossing arrows in my tikz-matrix diagram. By default, the label is placed half-way of the path. Since the arrows cross half-way too, the labelling becomes ambiguous: How can I ...
3
votes
2answers
2k views

Referencing TikZ matrix nodes and drawing

I'm struggling with a matrix where I want to put drawings into the cells, but would still like to reference the cells as it is possible with (text) nodes, e.g. for annotation. I know that I can ...
3
votes
1answer
213 views

Autoconnecting tikz-matrix nodes

I have this flowchart: \documentclass[tikz]{standalone} \usetikzlibrary{shapes,arrows,matrix,decorations.markings} \begin{document} \tikzset{ base/.style={draw,minimum width=2cm,minimum ...
4
votes
2answers
124 views

Can't generate a tikz matrix, using expl3

Suppose, I want to generate a matrix of nodes: \documentclass{article} \usepackage{expl3} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \matrix [ row ...
4
votes
1answer
468 views

How to make a full equation with tikz?

I am using this solution here to make long dashes within a matrix, and it is working well. The code is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} % possible to customize here ...