Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

# All Questions

Tagged with
94 questions
Filter by
Sorted by
Tagged with
69 views

### How to overlay MatrixPlot with GridGraph?

I have a Matrixplot and a grid graph and I want to overlay them. But when I use show[g1,g2], it did come out what I wanted. I wonder how can I overlay them and make them like this? To make the points ...
263 views

### 100 row numbers to find the shortest path [migrated]

I got a question that I have 100 rows of the number, as in the picture that continuous to 100 rows. There is a sequence by starting from the top, and then for each integer walk to the left or right ...
53 views

### How to plot multiple functions in a graph with different colors?

I have a general {i,x,y} dimensional matrix, and I want to plot all "i" {x,y} matrices in one graph. How can I do it in a way that I can still distinguish each "i"th curve from the other (I mean ...
47 views

### How can I make a scatter plot from a matrix with many y-axis values for each x-axis value?

Consider matrix A = {{0, 2.54343, 3.566, 4.2323, 2.3434}, {0.1, 6.432, 4.6465, 5.656, 1.34}, {0.2, 0.3423, 1.6342, 3.323, 2.04}}; The x-axis values ...
38 views

### Defining a function that outputs a matrix, and later finding its eigenvalues

I am trying to do the following: I have a simple 2x2 matrix that depends on three parameters (physically -- momentum coordinates kx, ky, kz). Then I want to replace each of these parameters by a ...
33 views

### Dynamical PlotLegends with two indices

I need to plot several eigenvalues from different matrices, so I would like to know how can I change the name of the curve with each set of matrices-eigenvalue. What I am doing is the following: <...
78 views

### Graphic representation of a triangle using ArrayPlot

So I need to write a function which takes natural integer $n$ and returns graphical representation of a matrix $n \times n$ using ArrayPlot[]. This matrix has to be ...
362 views

### Solving the eigenvalue problem for a double well potential using a 1D particle in a box as a basis set

My first question is how would I go about getting the 1D particle in a box eigenfunctions using matrix techniques and how would I use the particle in a box eigenfunctions as a basis set for the ...
66 views

### Find parameter which solves a 9-by-9 homogeneous system of linear equations, NSolve gives some incorrect answers

I have a set of 9 linear homogeneous simultaneous equations which depend on 2 parameters, p and x. For a chosen value of p, I aim to calculate the smallest 3 values of x which satisfy the simultaneous ...
108 views

### Plot nested matrix and label according to sublist

I have a nested matrix xyPairsAll that contains {x, y} pairs: ...
199 views

### Plotting eigenvalues in one plot for three different parameters

I am trying to plot eigenvalues of the matrix with different $W$. I can plot them separately but I want to merge them in a single plot with different colors. Is there any other type of plot other than ...
128 views

### Convert a colormap image into data values according to a legend

I have this image that I want to turn into data using this gradient black being 0, white being 1, and all the colors in between accordingly, so I could later use ...
91 views

### Extending MatrixPlot to complex-valued matrices

I'm looking to plot a complex-valued matrix in a way similar to MatrixPlot. I know how to map an individual complex number on to a colored swatch: if ...
112 views

### BarLegend Label and ColorScheme

Probably the answer to this question is already elsewhere, but I have looked for it in the last couple of days and I have't found it. So, I have the following code: ...
39 views

### 3D Sparse array [duplicate]

Following the 3D matrix representation shown here Vitaliy Kaurov's answer for "Plot 3D boolean Array or matrix in Mathematica" Is it possible to use a SparseArray ...
45 views

### How to create a particular 3D variant of MatrixPlot?

Does anybody know an elegant way to implement a matrix plot of the following form in Mathematica? Where $Y_{ij}$ is just an matrix of complex numbers (the index $a$ just counts different matrices, ...
385 views

### Matrix plot using RGB color coding

I am looking to plot a line of 250 discrete sites with a specified RGB color value based on the import file values. The import file has the following format: I want the first element in each row to ...
247 views

### VectorPlot for Phase Plane for 2x2 Matrix

Can anyone help me with my VectorPlot of a phase plane? I've been able to set up a few VectorPlots for different differential equation systems, but this one I have trouble with. It has only one real ...
116 views

### Generate an array of ParametricPlots

I am editing an old .nb that generate the polarization map of a vector vortex beam from the Stokes parameters ( S1,S2,S3) stored in 3 different matrices (S1medie,S2medie,S3medie). the code initialize ...
58 views

### How to label group of ticks?

I am plotting a matrix in 3D and what I did so far is this: So, what I would like to do now is to add different labels to group of ticks, in this way: Even only on the bottom axis is perfect. The ...
395 views

...
372 views

### Engineering a colour scale for MatrixPlot

I am trying to find the best way to plot my data. I have a 2D list of scalar coefficients (rational numbers) whose value lies between 0 and 1 (being rational, they can be 0,..., 0.01,... 0.999,..., 1)....
228 views

### Why MatrixPlot give so many colors but only two types of number in data? [duplicate]

For example MatrixPlot[RandomInteger[1, {10, 300}], Frame -> False] MatrixPlot[RandomInteger[1, {10, 300}], Frame -> False, ColorFunction -> Hue] You ...
235 views

### Graphing a Custom Function

I'm trying to make a graph of a function involving several steps, steps that I can't put straight into the Plot[ ] function. Here is the outline of the process: Two real numbers, A and B, are defined,...
59 views

### Plot several MatrixPlots as “timeline” using Manipulate [closed]

I am currently struggling with a relatively simple problem, however, unfortunately, I am not as familiar as others with the Mathematica syntax. I would like to use ...
590 views

...
3k views

### How to plot a matrix with 3D style

I have a list like SeedRandom MatrixForm[list = RandomInteger[5, {5, 5}]] We can plot it with MatrixPlot directly with 2D ...
548 views

539 views

### Plotting eigenvalues smoothly

I am trying to plot how the eigenvalues of a matrix change by changing a given a parameter t. Of course the ordering of the eigenvalues does not matter mathematically but it does when I want to make ...