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
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users