On 18:32 Sun 18.07.10, Friedrich Romstedt wrote: > 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).
Thanks for this tip. Apparently there is a necessary order for some calls. Is this documented anywhere? It seems quite problematic. Also I have now finished my confusion matrix program: http://paste.pocoo.org/show/242834/ Comments on the code would be very welcome. If people like it maybe it could be included in the examples. I think it's a relatively common usecase. Regards Simon ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users