|
From: Friedrich R. <fri...@gm...> - 2010-07-18 16:32:36
|
2010/7/18 Simon Friedberger <sim...@a-...>: > On 22:49 Sat 17.07.10, Friedrich Romstedt wrote: >> Maybe try to use axes.set_xticks() first, see >> http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.set_xticks >> . > I know about that but couldn't find any useful way. Could you be more > specific? Try to add: ax.set_xticks(range(0, 10)) ax.set_yticks(range(0, 10)) before the imshow call. For some reason it must happen before the imshow call and not after, else the yscaling will change (I don't understand this). >> Your code on pocoo is messed up with whitespace. Is that intentional? > Messed up? It looks all good to me. Sorry, but there is plenty of whitespace at the end of each line when I copy-paste the code, even in raw format. hth you, Friedrich |