Re: [Matplotlib-users] Confusion Matrix

2010-08-09 Thread Friedrich Romstedt
2010/8/9 John Hunter : > On Sun, Aug 8, 2010 at 8:03 PM, Friedrich Romstedt > wrote: >> P.S.: You can also try >> http://matplotlib.sourceforge.net/examples/pylab_examples/alignment_test.html >> , I believe there was some other manual around also covering the >> baseline option, but I cannot find

Re: [Matplotlib-users] Confusion Matrix

2010-08-08 Thread John Hunter
On Sun, Aug 8, 2010 at 8:03 PM, Friedrich Romstedt wrote: > Yes, I agree fully, but have been busy the past few days :-) > > Friedrich > > P.S.: You can also try > http://matplotlib.sourceforge.net/examples/pylab_examples/alignment_test.html > , I believe there was some other manual around also c

Re: [Matplotlib-users] Confusion Matrix

2010-08-08 Thread Friedrich Romstedt
2010/8/8 Simon Friedberger : > I have found a solution. I'm not sure if it's good or intended but the > following works: > > for label in xax.get_ticklabels(): >        label.set_rotation(45) >        label.set_horizontalalignment('left') This is fully intended. Maybe you can compare with the ver

Re: [Matplotlib-users] Confusion Matrix

2010-08-08 Thread Simon Friedberger
On 16:00 Fri 06.08.10, Simon Friedberger wrote: > It is about the positioning of the rotated labels. > The code is here: > http://paste.pocoo.org/show/246870/ > > Note that in line 36 I had already remarked about the hack I used. Now I > noticed that if the labels have different lengths rotating t

Re: [Matplotlib-users] Confusion Matrix

2010-08-06 Thread Simon Friedberger
On 09:29 Sat 31.07.10, Friedrich Romstedt wrote: > What you will want to use is .set_tick_params(top=True, > labeltop=False, labelbottom=False) . That worked indeed but I have uncovered another problem. It is about the positioning of the rotated labels. The code is here: http://paste.pocoo.org/sh

Re: [Matplotlib-users] Confusion Matrix

2010-07-31 Thread Friedrich Romstedt
2010/7/29 Simon Friedberger : > For some magical reason when I set the ticks_position to none, setting > the label_position to 'top' is ignored. > Did you try this? Is it another command arrangement thing? > > On 09:26 Thu 29.07.10, Friedrich Romstedt wrote: >> axis.set_label_position('top') >> axi

Re: [Matplotlib-users] Confusion Matrix

2010-07-29 Thread Simon Friedberger
For some magical reason when I set the ticks_position to none, setting the label_position to 'top' is ignored. Did you try this? Is it another command arrangement thing? On 09:26 Thu 29.07.10, Friedrich Romstedt wrote: > axis.set_label_position('top') > axis.set_ticks_position('none') ---

Re: [Matplotlib-users] Confusion Matrix

2010-07-29 Thread Friedrich Romstedt
2010/7/29 Simon Friedberger : > Also I have now finished my confusion matrix program: > http://paste.pocoo.org/show/242834/ > Comments on the code would be very welcome. I think you can make use of axis.set_label_position('top') axis.set_ticks_position('none') Friedrich

Re: [Matplotlib-users] Confusion Matrix

2010-07-28 Thread Matthieu Brucher
Hi, In scikits.learn, there is a confusion matrix and in the samples, there are several plots (scikit-learn.sf.net). Matthieu 2010/7/16 Simon Friedberger : > Hello List. > > I'm trying to plot a confusion matrix and I got this far: > http://paste.pocoo.org/show/238332/ > > Basically what I still

Re: [Matplotlib-users] Confusion Matrix

2010-07-28 Thread Simon Friedberger
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 th

Re: [Matplotlib-users] Confusion Matrix

2010-07-18 Thread Friedrich Romstedt
2010/7/18 Simon Friedberger : > 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 > spe

Re: [Matplotlib-users] Confusion Matrix

2010-07-18 Thread Simon Friedberger
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? > Your code on pocoo is messed

Re: [Matplotlib-users] Confusion Matrix

2010-07-17 Thread Friedrich Romstedt
2010/7/16 Simon Friedberger : > Hello List. > > I'm trying to plot a confusion matrix and I got this far: > http://paste.pocoo.org/show/238332/ > > Basically what I still want to do is get the ticklabels from the bottom > to the top, have every ticklabel shown and start showing them from the > firs

[Matplotlib-users] Confusion Matrix

2010-07-16 Thread Simon Friedberger
Hello List. I'm trying to plot a confusion matrix and I got this far: http://paste.pocoo.org/show/238332/ Basically what I still want to do is get the ticklabels from the bottom to the top, have every ticklabel shown and start showing them from the first not from the second. I have experimented