# Revision history [back]

### Tick labels in a matrix plot

I want to plot the following matrix m with k and l in {-2, ..., 2}:

m = [[k+l for k in range(-2,3)] for l in range(-2,3)]


with matrix_plot:

m_plot = matrix_plot(m, origin='lower')


The ticks on both axes are automatically set to {0 , ... , 5}, but I want the ticks to be {-2, -1, 0, 1, 2} on both axes. I could not figure out how to do this.