Not sure this message was sent successfully. So I send it again. Sorry if you
receive it twice...
Hello,
This question has certainly been answered in a previous thread but after
searching around I did not find any solution...
I have got a matrix 6x500 (so one size is much biggger than the other one)
and I try to expand the shorter axe so that the labels on it are well
displayed (not overlapped.
I am googling/searching on the documentation about subplots_adjust, ... but
did not find any solution.
Here is the code that present the problem I have.
Thanks in advance for any help. Olivier
import numpy as np
from matplotlib.pylab import *
import matplotlib.pyplot as plt
sizeX = 6
sizeY = 500
xlabels = []
ylabels = []
for i in range ( 0, sizeX ):
xlabels.append( str( i ) )
for i in range ( 0, sizeY ):
ylabels.append( str( i ) )
dims = ( sizeX, sizeY )
data = zeros( dims )
for i in range( 0, sizeX ):
for j in range( 0, sizeY ):
data[ i, j ] = np.random.rand()
figure = plt.figure()
axes = figure.add_subplot( 111 )
cax = axes.matshow( data, interpolation = 'nearest' )
col = figure.colorbar( cax )
plt.show()

View this message in context: http://old.nabble.com/Trytohavenoneoverlappinglabelsinoneaxeusingmatshowtp31456159p31456159.html
Sent from the matplotlib  users mailing list archive at Nabble.com.
