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

learn more… | top users | synonyms

15
votes
2answers
518 views

Layer between a node and its text

My question is similar to Transparent node with opaque text? . The difference is that i want the red circle to be above the green rectangle and below the word "Node". And also I do not want to draw ...
14
votes
2answers
2k views

Using brackets as delimiters for matrix in TikZ-PGF Matrix Library

The TikZ-PGF manual is clear that for the matrix library, the delimiters are parentheses and braces: Delimiters are parentheses or braces to the left and right of a formula or a matrix. I ...
13
votes
1answer
1k 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 ...
12
votes
3answers
820 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. ...
11
votes
5answers
525 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 ...
10
votes
2answers
1k 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). ...
10
votes
2answers
2k 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 ...
9
votes
2answers
2k 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 ...
9
votes
2answers
319 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 ...
9
votes
1answer
400 views

How to create a correctly aligned tree proof in logic with 4 branches, columns of line numbers and justifications?

I'm looking for a way to make a Logic Tree with three columns (line number, tree itself and commentary). I've tried using a tikz matrix, and it worked very well, except when I get more than two ...
9
votes
1answer
362 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 ...
9
votes
1answer
678 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 ...
8
votes
3answers
647 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} ...
8
votes
1answer
94 views

Add matrix name inside tikzpicture

I have this matrix and I would like to name it. I have to enter H = in the begining of the matrix but I cant. I tried with \begin{bmatrix} but I can't circle with TikZ. \begin{equation*} ...
8
votes
1answer
451 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 ...
7
votes
4answers
1k 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 ...
7
votes
3answers
367 views

Tikz matrix arrows alignment

I have a problem that I cannot solve for myself. The following code produces the following image, which I do not really like. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix, ...
7
votes
3answers
537 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 ...
7
votes
1answer
596 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 ...
7
votes
2answers
225 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 ...
7
votes
1answer
499 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 ...
7
votes
2answers
210 views

Draw lines over a matrix

I have the following code to print a matrix: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty ...
7
votes
1answer
554 views

Wrong colum sep between first two columns of a TikZ matrix

I don't know why but next code shows a different column sep between columns 1 and 2 from the other ones. This is what I get: I'm using column sep=-\pgflinewidth so I hopped to see just one thick ...
6
votes
3answers
457 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 ...
6
votes
2answers
786 views

TikZ: Image Matrix - shifting connected paths

I currently use TikZ matrix for arranging images and their nodes for putting some labels on the edges. Take a look at the attached image. For some reason, i am unable to shift connected paths. For ...
6
votes
4answers
514 views

matrix with tikz

I would like to reproduce the diagram in 2.1 of https://www3.nd.edu/~wgd/Dvi/CalculatingSimplicialLocalizations.pdf So far I have this piece of code but I don't know how to fill cells with ...
6
votes
2answers
203 views

Programmatically styling tixz matrix nodes

I'm trying to write a macro that given some coordinates colors the corresponding cells in a matrix black. This is related to this question. I fail at adapting one of the answers from that question. ...
6
votes
2answers
1k 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
3answers
136 views

Striking out matrix lines and columns: is Tikz the only way?

I would like to show a matrix with "strike-out lines" on some of its rows and columns. After some research I found a solution using Tikz matrices, which I reproduce here: \documentclass{article} ...
6
votes
1answer
91 views

How to highlight elements of a matrix in a formula? [duplicate]

I currently have problems with hihglighting elements inside a matrix. I've red a lot of questions here, my problem is that I have a matrix formula, {N}=[AB]{E} where I would like to highlight parts ...
6
votes
1answer
2k 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} ...
6
votes
1answer
1k 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 ...
6
votes
2answers
198 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} ...
6
votes
2answers
411 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. ...
6
votes
1answer
565 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 ...
5
votes
2answers
152 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 ...
5
votes
2answers
570 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 ...
5
votes
2answers
386 views

Draw lines inside a matrix

I have the following code to draw a matrix: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty ...
5
votes
1answer
252 views

A global math mode for matrix

I have the following code to produce a matrix, which works: \begin{center} \begin{tikzpicture}[cell/.style={rectangle,draw=black}, nodes in empty cells] \matrix[ matrix of nodes, row sep ...
5
votes
2answers
252 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} ...
5
votes
3answers
191 views

Drawing a really large binary matrix as colored grid

I have a 50x300 binary marix, which I want to display as a colored grid. I tried the approaches of drawing a large binary matrix as colored grid which I like, but the approach using pgfplots table ...
5
votes
1answer
182 views

Creating procedurally generated nodes in TikZ

I am relatively new to TikZ, and have been hacking together figures as I need them for uni assignments from various examples on the internet. Now I am moving into research, I am having to write a lot ...
5
votes
1answer
1k views

How to fix a certain distance between a TikZ matrix border and its nodes?

I want to draw a TikZ matrix with its border and I would like to define the distance between most external matrix nodes and matrix border. Something like a matrix inner sep. If I change inner sep in ...
5
votes
1answer
259 views

How to 'rotate' a matrix

I'm writing a pdf for class and I want to explain the transpose of a matrix. I want to add the following image to my .tex Any ideas to work this? Should I delete this idea from my pdf?
5
votes
2answers
1k views

Table-like lines in tikz matrix

I am trying to draw a "table" in tikz, and more generally, to work it out so that it is easy to write a lot of them. The matrix library makes it a lot easier to place aligned nodes. The next step ...
5
votes
2answers
166 views

Position of text and arrows in TikZ matrix

I want to put a text inside a TikZ matrix, but it always begins from the bottom !. So, my qusetion is how I can force it to begin from the top? My MWE: \documentclass{article} ...
5
votes
1answer
877 views

Generating a 3x3 payoff matrix (Game-Theory)

Been working on some economics lately, and was able to figure out how to put together some 2x2 payoff matrix's but not sure how to go about doing a 3x3. I would like to keep the same general idea if ...
5
votes
1answer
177 views

Determine number of columns in TikZ matrix

Given a macro that accepts a matrix as an argument \newcommand{tabler}[1]{\matrix(m)[matrix of nodes, ampersand replacement=\&]{#1};} I would like to determine the number of columns in matrix ...
5
votes
1answer
338 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 ...
5
votes
1answer
699 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} ...