Commit 69cc68a6 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Setting xticks appeared to be changing xlim. Set xlim afterwards.

parent 8c4f81e7
......@@ -143,8 +143,6 @@ def colourBarBitmap(cmap,
origin='lower',
interpolation='nearest')
ax.set_xlim((0, ncols - 1))
ax.set_yticks([])
ax.tick_params(colors=textColour, labelsize=fontsize, length=0)
......@@ -212,6 +210,8 @@ def colourBarBitmap(cmap,
for l, a in zip(ticklabels, tickalign):
l.set_horizontalalignment(a)
ax.set_xlim((0, ncols - 1))
canvas.draw()
buf = canvas.tostring_argb()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment