# what matrix.plot meanings?

when I run bolow,a graph appears,how to understand it?

matrix([[3,-1,1],[2,0,1],[1,-1,2]]).plot()

what matrix.plot meanings?

asked
**
2014-10-27 02:56:52 -0500
**

This post is a wiki. Anyone with karma >750 is welcome to improve it.

when I run bolow,a graph appears,how to understand it?

matrix([[3,-1,1],[2,0,1],[1,-1,2]]).plot()

add a comment

3

The *lighter* shades correspond to the *larger* entries of the matrix. In your example the black square are in positions (0, 1) and (2, 1), where the entries are -1, and the white square is in position (0, 0), where the entry is 3, which is the largest entry in the matrix.
Typing

```
sage: M = matrix([[3,-1,1],[2,0,1],[1,-1,2]])
sage: M.plot?
```

will give more information.

0

answered
**
2014-10-28 04:43:34 -0500
**

This post is a wiki. Anyone with karma >750 is welcome to improve it.

thank you ver much!

I have understand by below sage: M = matrix([[20,10,2,-1,1,-2,-10],[20,10,2,-1,1,-2,-10],[20,10,2,-1,1,-2,-10],[20,10,2,-1,1,-2,-10]]) sage: M.plot()

Asked: **
2014-10-27 02:56:52 -0500
**

Seen: **44 times**

Last updated: **Oct 28 '14**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.