Re: [Matplotlib-users] Setting tick labels for matshow

2010-11-04 Thread Nikolaus Rath
Stan West stan.west-qqjzlxdiqip5oiiguju...@public.gmane.org writes: From: Nikolaus Rath [mailto:nikolaus-bth8mxji...@public.gmane.org] Sent: Tuesday, November 02, 2010 21:38 In [16]: matplotlib.__version__ Out[16]: '1.0.0' I attached the result of fig.savefig(). Let's see if it makes

Re: [Matplotlib-users] Setting tick labels for matshow

2010-11-02 Thread Stan West
From: Nikolaus Rath [mailto:nikol...@rath.org] Sent: Saturday, October 30, 2010 16:17 but if I try to do the same think with the Y axis, everything looks messed up (e.g. the matrix is no longer square): The matrix remains square for me using a build from Subversion. What's your

[Matplotlib-users] Setting tick labels for matshow

2010-10-30 Thread Nikolaus Rath
Hello, I am trying to set tick labels for a matshow plot. This works just fine if I only work on the X axis: res = np.diag(np.arange(10)) # dummy data modes = [ (x+1, 0) for x in range(5) ] # dummy data fig = plt.figure() ax = fig.add_subplot(111) cs = ax.matshow(res)