2
votes
1answer
37 views

alignment of different elements inside and outside matrix in tikz

I am facing issues in getting the different elements of the following tikzpicture at correct positions. I think the problem arises because the width of elements within the matrix differs. ...
6
votes
5answers
359 views

Easier or better way to draw 1d array

I'm trying to reproduce the following figure, and was wondering if there was a simpler way. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \def\leftbracket{[} \def\rightbracket{]} ...
4
votes
1answer
110 views

Split nodes in TikZ math nodes matrix with Beamer?

TikZ matrices and Beamer do not work smooth -- for example, we have to use ampersand replacement work around. Is there a similar work around that allow one to use \nodepart ? The MWE is this: ...
2
votes
3answers
171 views

Create a good looking 2-actor normal-form game such as Prisoner's Dilemma

I am having difficulties in adjusting the TikZ code to get a symmetrical output matrix; I guess the * is the reason the right block is somehow higher? ...
7
votes
3answers
125 views

Conditional compilation of code based on package version [duplicate]

I am working on a document with a colleague and we have different versions of PGF/Tikz installed -- I have version 3 and he has version 2.10. This is causing a problem for compilation on our two ...
6
votes
2answers
302 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 ...
1
vote
2answers
124 views

How to make the following matrices?

I follow the following code for the Matrices but it's not working so need some guidance to reproduce the code. I want to make the following Matrices (image)? I follow the following code but it's not ...
5
votes
2answers
214 views

Isometric Tables in LaTeX

Can someone please help me with a simple LaTeX code to draw something like the attached picture?
4
votes
2answers
179 views

tikzpicture, scope and matrix

I am trying to highlight a particular column in a matrix. I therefore draw the matrix (with easybmat) in a node and I draw the shape of the column in a scope (on the background). However, the scope is ...
0
votes
1answer
289 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 ...
2
votes
1answer
345 views

How to change the width of a column individually in tikz matrix

I want to individually change the width of the different columns in the following matrix: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[font=\small] ...
3
votes
1answer
115 views

how to xshift tikzmark and preserve interrow spacing in matrix

I am trying to use the \tikzmark command to overlay a right brace with a label next to a pmatrix. Unfortunately, there are two problems with the current output: My code has introduced extra vertical ...
1
vote
1answer
127 views

Vertical alignment in matrix alignment with cylinder

In the following MWE, the nodes in the matrix are not properly vertically aligned: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture}[sibling ...
6
votes
4answers
212 views

Multiple underbraces that span overlapping columns in matrix

I want to display the structure of a matrix as shown in the image below: The following code shows the structure of the matrix, without the underbraces: \documentclass{standalone} ...
5
votes
3answers
307 views

Tikz matrix: Align node to center of multirow

I am having an issue with TIKZ, or matrices ... I don't know which :) All I want to do is to move/align my Blackbox in the center of this one (multi-)row while having the arrows spread evenly on the ...
6
votes
0answers
59 views

Simple way to draw Hadamard matrices (black/white grids) from external input [duplicate]

I want to draw Hadamard matrices of different sizes. This are matrices which have entries +1 and -1 (plus some other properties). Hadamard matrices are often pictured as black/white grids like I'm ...
10
votes
1answer
1k views

How can one plot in 3D a matrix with LaTeX?

I have a problem with drawing a 3d plot in TikZ. I have a matrix of size (n*m) n is the number of points in the x-direction and m is the number of points in the y-direction and the values in the ...
2
votes
1answer
315 views

How to shift yticklabels vertically?

When plotting data matrices as done here and here, the tick labels get drawn at the border of fields. They should be drawn in the center. I've tried shifting them using hspace and vspace. This works ...
6
votes
3answers
349 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 ...
3
votes
1answer
333 views

TikZ Matrix 'draw' alignment

Apologies if this has already been asked - I could not find it. The following is an example of what goes wrong: In this example I would like it to look just like a regular 2x3 table, but I think ...
14
votes
1answer
263 views

Are there specialized libraries or packages to draw blocked/partitioned/splitting matrices in Tikz?

I need to write matrix splitting and factorization operations (for my linear algebra course). It is hard to do these is direct Latex. I can use Visio to draw these easily, but I'd prefer to use Tikz ...
8
votes
3answers
482 views

TikZ Matrix - How can I align content horizontally which is spanning over multiple cells/rows?

I'd like to finetune the big rectangle in the last column and its content, i.e. that it's all aligned to the third column's center. It is currently too far on the right: So far I have been unable ...
15
votes
5answers
961 views

Drawing a large binary matrix as colored grid in TikZ

I have a pretty big binary matrix of maybe 70 rows and 64 columns. For ease of viewing, I would like to draw this matrix in TikZ where e.g. a 1 is represtented by a red square and a 0 is a white ...
5
votes
1answer
207 views

Array Alignment using TikZ Matrices; cell over a complete row

I want to align subplots in a pgfplot. with \matrix it is easy to align pictures. My problem is, that I need several rows with two columns/pictures and a last row with a picture over both columns. ...
3
votes
2answers
157 views

Can't reproduce sequence alignment using TikZ?

I'm new using the TikZ package. Can someone help-me to reproduce this matrix 1 using Tikz? More precisely the step in figure 2. I tried to do it with matrix but I can't put the number 1 [above ...
2
votes
1answer
135 views

Shorter way to color indices of a matrix?

I've made a bordermatrix with brackets [] instead of (), now there are these indices on the top and left side. In my case on the top they are u_1,v_1,u_2,v_2 and so on. On the left side they are ...
5
votes
1answer
822 views

Tikzpicture and matrix

I want use tikzpicture for draw my matrix, U=[matrix], using this code \begin{align*} U&= \begin{tikzpicture}[decoration=brace] \matrix (m)[matrix of math nodes,left delimiter=[,right ...
2
votes
1answer
309 views

Underline multicolumns in tikz matrix

In a TikZ matrix, how can I underline multicolumns automatically as follows (esp. when height of one header cell is larger than others): MWE from this question: \documentclass{standalone} ...
17
votes
1answer
676 views

Brackets around matrices in TikZ

I'm writing a custom package for labeled matrices using TikZ. I noticed an inconsistency in TikZ. This is best illustrated with the following MWE: \documentclass{standalone} \usepackage{tikz} ...
6
votes
1answer
1k views

Horizontal alignment of text nodes of varying length in Tikz matrix like in Tex tabular

In tablular, we use {r|c|l} to define alignment. Is there anything similar for Tikz matrix. For example, by using matrix, the following MWE produces matrix of nodes, which appear to be center aligned ...
6
votes
2answers
468 views

TikZ matrix decoration

What I'm trying to achieve is a code structure to draw this kind of diagram: I need to decorate a two-rows matrix grouping one or more columns with a square bracket above them, and then again with ...
7
votes
1answer
256 views

Diagonal text in diagonal matrix

I have a tridiagonal matrix whose diagonals d_{-1}, d_0, d_1 (thought as vectors) can be written as vector expressions. Is there a way to nicely represent this, e.g. via a matrix which is blank ...
6
votes
2answers
406 views

Controlling Matrix like a shape in Tikz

Would it be possible to control a matrix in Tikz as accurately as possible as with regular shapes? For example, inside a Tikzpicture, I could simply control a shape's size by writing ...
1
vote
0answers
35 views

Referencing nodes in matrix of nodes does not work in beamer [duplicate]

When using node coordinates in a matrix of nodes in the article document class, the following code works well and soes exactly what it is supopsed to: \documentclass{article} \usepackage{tikz} ...
9
votes
2answers
476 views

Long Division with Boxes

I need to make a division worksheet for a specific student with ADHD. He often gets confused with the placement of the digits so this worksheet has to have boxes aligned in a very precise way. There ...
5
votes
1answer
234 views

Highlight elements in the matrix (continued)

Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to select one single entry in the matrix? Where does one need to place the left and the right marks?
9
votes
1answer
607 views

Heatmap of a triangular matrix (or a sparse matrix)

So let me first of all shamelessly steal heatmap code from this answer to Drawing heatmaps using TikZ \documentclass{standalone} \usepackage{colortbl} \usepackage{pgfplots} \usepackage{pgfplotstable} ...
10
votes
2answers
360 views

Why is picture and matrix not drawn at the same height

I'm trying to put a adjacency matrix beneath a graph using subfloat. The graph is drawn with tikz. No matter what I do, the matrix is put below the graph as shown here: The code is here: ...
7
votes
2answers
966 views

Position two stacked tikz matrices

I would like to take two TikZ matrix, possibly of different dimensions and stack them. My demo code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} ...
7
votes
1answer
130 views

TikZ compiles in body, but not as command [duplicate]

Possible Duplicate: Problem with defining shortcuts for TikZ matrices. When I use the code below to draw a tikzpicture in the body of my document, it works just fine. However, when I define ...
5
votes
1answer
237 views

Plot weighted frequency matrix

I wish to create this plot preferably in pgfplots or tikz. I have actually got a version plotted (with help from SO), but I have used R and exported the plot using tikzDevice. I can't post the ...
5
votes
1answer
553 views

How to label arrows in tikz-cd diagrams with matrices?

I'm using tikz-cd for some commutative diagrams, but if I try to label an arrow with a matrix, & appears to be "undefined control sequence". So all the entries in a row get concatenated, and it ...
1
vote
0answers
161 views

Matrix with arrow - problem [closed]

I am using the following code from this question: Highlight elements in the matrix \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \tikzset{% highlight/.style={rectangle,rounded ...
5
votes
1answer
717 views

vertical lines in matrix using tikz package

my problem is interconnected to my two previous posts (here and here) and i've tried to incorporate answers into solution but without success. My task is this matrix multiplication with added ...
6
votes
2answers
144 views

nodes in matrix and its incorporation into document

i continue with my previous post (here) concerning various additions to matrix. I have following problem: how to add nodes into matrix and this whole matrix incorporate into the document ? My task is ...
2
votes
1answer
560 views

Alignment of nodes and scopes in tikz matrix?

I am trying to fix the positions of the arrows of the following diagram without much success. I would like the arrows to be centered (both horizontally and vertically) in the matrix cell no matter ...
5
votes
2answers
1k views

Big block matrix with tikz

I know this is very similar to plenty of questions. The matrix below s actually bigger, so I realized that I had to use tikz. In this array, A, A',…,L', T are square matrices, and I filled with ...
5
votes
2answers
699 views

How to modify a node in TikZ when using beamer's overlays

I have a matrix initialized with some colors and no values. With the help of beamer's overlays I wanted to modify the matrix in the next step, changing some of the colors and inserting some values. I ...
2
votes
1answer
618 views

TikZ change matrix cell color background

I have a TikZ code that generates this: using something along the lines of the following snippet. The full code corresponding to this snippet can be obtained from the answer to question ...
17
votes
1answer
2k views

TikZ two-blocks matrix

I would like to get a plot like the one I sketched below, basically two blocks of the same matrix with arrows going up and anti-diagonally for the red block and arrows going up for the green one. The ...