Ask Your Question

Revision history [back]

Hello,

You could use the option ticks and tick_formatter as follows

sage: matrix_plot(m, ticks=[[0,1,2,3,4],[0,1,2,3,4]], tick_formatter=[[-2,-1,0,1,2],[-2,-1,0,1,2]])

These are documented in the function plot and you can access the help with

sage: plot?