Ask Your Question
0

what matrix.plot meanings?

asked 10 years ago

this post is marked as community wiki

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()

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
3

answered 10 years ago

Francis Clarke gravatar image

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.

Preview: (hide)
link
0

answered 10 years ago

this post is marked as community wiki

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()

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 10 years ago

Seen: 905 times

Last updated: Oct 28 '14

Related questions