colorbar ticklabel positions

I have to report two more issues (sorry I'm reporting, not squashing, I'm
swamped at work.)

imshow(rand(100,100))
colorbar()

The horizontal alignment of the ticklabels is off, they are centered on the
axis rather than being positioned to the right of it. Also, the image appears
to be shifted in the axes, to the left and the top by one pixel.

Darren

I looked into this some more this morning, and discovered that this tick
behavior also occurs when yaxis.tick_right() is called. xaxis.tick_top()
behaves as it should, and the only difference I noticed stepping through a
script with the debugger is that at the end of set_ticks position, YAxis does
the following, but XAxis does not:

for t in ticks:
    t.update_position(t._loc)

I don't know what is this blocks purpose, adding it to YAxis didnt seem to
have any effect.

Darren

ยทยทยท

On Thursday 31 January 2008 12:09:03 pm Darren Dale wrote:

I have to report two more issues (sorry I'm reporting, not squashing, I'm
swamped at work.)

imshow(rand(100,100))
colorbar()

The horizontal alignment of the ticklabels is off, they are centered on the
axis rather than being positioned to the right of it. Also, the image
appears to be shifted in the axes, to the left and the top by one pixel.

Darren Dale wrote:

I have to report two more issues (sorry I'm reporting, not squashing, I'm swamped at work.)

imshow(rand(100,100))
colorbar()

The horizontal alignment of the ticklabels is off, they are centered on the axis rather than being positioned to the right of it. Also, the image appears to be shifted in the axes, to the left and the top by one pixel.

With svn 4935 I have fixed the ticklabel positioning bug, but not the image positioning bug.

Eric