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

learn more… | top users | synonyms

12
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 ...
10
votes
5answers
401 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
1answer
947 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 ...
9
votes
2answers
1k 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
243 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
305 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
2answers
720 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). ...
8
votes
1answer
329 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
275 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
138 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
307 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
160 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 ...
7
votes
1answer
386 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
163 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
248 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 ...
6
votes
3answers
359 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
602 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
2answers
164 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
737 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
503 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 ...
6
votes
2answers
321 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} ...
6
votes
2answers
258 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
2answers
123 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
1answer
331 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 ...
6
votes
1answer
400 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 ...
5
votes
2answers
358 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
161 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
1answer
109 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
2answers
152 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
1answer
575 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 ...
5
votes
1answer
643 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
135 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
284 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} ...
5
votes
1answer
237 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 ...
4
votes
2answers
132 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
2answers
128 views

Draw matrix with specific style in TikZ

I'm wondering how could I draw a matrix like that: I know how to draw a simple matrix: \documentclass[journal]{IEEEtran} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usetikzlibrary{matrix, ...
4
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 ...
4
votes
3answers
258 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 ...
4
votes
1answer
1k 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 ...
4
votes
1answer
555 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. ...
4
votes
1answer
44 views

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} ...
4
votes
1answer
403 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. ...
4
votes
1answer
801 views

Matrix of nodes over multiple columns in tikz

I want to create a diagram with tikz in which entries overdraw more than one column. I solved this problem already with the fit package. But now there is a problem with the look of the nodes within ...
4
votes
2answers
60 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 ...
4
votes
1answer
137 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 ...
4
votes
1answer
248 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 ...
3
votes
1answer
86 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}] ...
3
votes
1answer
676 views

Slight vertical mis-alignment of cells when using TikZ matrix of nodes

While laying out a bunch of nodes with a TikZ matrix, I noticed slight vertical mis-alignment of nodes. It seems that words with “tall” letters (p, b, l) shift the box vertically up or down. This does ...
3
votes
2answers
215 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 ...
3
votes
1answer
199 views

How to draw a system architecture with databases and shadows?

My goal is to draw a complex system architecture. Some approaches to do it are here How to draw a layered architecture using Latex? This approach http://tex.stackexchange.com/a/102669/44348 seems to ...