Sorry, reposting, because I sent it from the wrong address.

> I'm having some problems understanding the difference between pylab.xticks()
> and pylab.yticks()
> Consider the following:
>
> > import pylab as P
> > import numpy as N
> >
> > data = N.random.random((10, 10))
> > P.matshow(data)
> > P.xticks([0, 1, 2], ['1', '2', '3'])
> > P.show()
>
>
> Why does this work, but if I change P.xticks to P.yticks, it doesn't?
>
> The error message that I get back doesn't give me any insight as to what
> could cause the difference between xticks and yticks.
>
>  File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/figure.py",
> line 612, in draw
>     for a in self.axes: a.draw(renderer)
>   File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/matplotlib/axes.py",
> line 1287, in draw
>     self.transData.freeze()  # eval the lazy objects
> ValueError: Domain error on eval_scalars in Transformation::freeze
>
>
>  matplotlib.__version__
> Out[2]: '0.90.1'
>
> I am still in the learning phase, so any insight as to what's going on is
> appreciated.
>
> Best,
>     Jan
>
>


-- 
Jan Strube -- University of Oregon
Stanford Linear Accelerator Center
Bldg. 48
phone: (650) 926-2913
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to