Ask Your Question
1

Changing the Tick Mark Values When Plotting a Matrix

asked 2012-10-27 17:15:46 +0100

elcojon gravatar image

Hello,

I am using matrix_plot to display my 2 dimensional array of data. Is there a way to change the tick mark values? Right now they are set to the index values of the matrix.

Also see this example from Matlab Stackoverflow

I was already trying to overload matplotlib keyword extent Example:

matrix_plot(mat, extent=[horLeft, horRight, verTop, verBottom])

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-10-27 20:41:14 +0100

elcojon gravatar image

I modified my sage source code to do solve this for me. I had to modify matrix_plot.py.

edit flag offensive delete link more

Comments

1

Can you tell us what you did? It would be great to add something like this to Sage - see for instance http://trac.sagemath.org/sage_trac/ticket/2189 for an attempt that never quite got in because of the resizing of the matrices in corner cases.

kcrisman gravatar imagekcrisman ( 2012-10-27 23:17:14 +0100 )edit

to whom may I send the patch to review it?

elcojon gravatar imageelcojon ( 2012-10-28 06:07:44 +0100 )edit
1

I think you can email to sage-devel ( https://groups.google.com/forum/?fromgroups#!forum/sage-devel ) if you don't want to create an account and submit to the trac website.

ppurka gravatar imageppurka ( 2012-10-28 12:37:08 +0100 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-10-27 17:15:46 +0100

Seen: 354 times

Last updated: Oct 27 '12