Re: [Matplotlib-users] (no subject)

2011-05-20 Thread Till Wagner
http://clscomp.com.br/cool01.11.php?SID=981

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] (no subject)

2011-05-20 Thread Till Wagner
http://clscomp.com.br/cool01.11.php?SID=685

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Error with loading wxPython says require >=2.8 which I already have installed.

2011-05-20 Thread Jeffrey Spencer
I have this error. I am running 2.6.5 Python and compiled myself the SVN 
maybe two weeks ago. The issue came when I tried to compile a version of 
2.6.6 using the tcmalloc library. I compiled my own version of Python 
but had some issues with external packages. I removed 2.6.6 for now. 
Then I get this error which also occurs in Ipython upon startup. This 
also was one of the only errors with the 2.6.6 install which makes me 
think it could have not been with the install.

I was having issues with linking packages such as wxPython2.8 for 
matplotlib with the usr/local/lib archives. Would I have to compile 
wxPython myself if I wanted it to go with my compiled version of 2.6.6. 
This was my next step but just gave up for now. Anyone knows or has 
compiled there own Python. Please let me know. Especially 2.6 when you 
already have 2.6 on the system.

Error below:

import AuditoryModelT
Traceback (most recent call last):
   File "", line 1, in 
   File "AuditoryModelT.py", line 1, in 
 from gammaFilterBank import computeCF, makeFilters, outBank
   File "gammaFilterBank.py", line 3, in 
 from matplotlib.pyplot import plot, clf, show, cla, xlim, xscale, 
imshow, ylabel, xlabel, figure, savefig, close,  bar,  title,  xticks, 
yticks, axes, axis
   File "/usr/local/lib/python2.6/dist-packages/matplotlib/pyplot.py", 
line 95, in 
 new_figure_manager, draw_if_interactive, show = pylab_setup()
   File 
"/usr/local/lib/python2.6/dist-packages/matplotlib/backends/__init__.py", line 
25, in pylab_setup
 globals(),locals(),[backend_name])
   File 
"/usr/local/lib/python2.6/dist-packages/matplotlib/backends/backend_wxagg.py", 
line 23, in 
 import backend_wx# already uses wxversion.ensureMinimal('2.8')
   File 
"/usr/local/lib/python2.6/dist-packages/matplotlib/backends/backend_wx.py", 
line 65, in 
 raise ImportError(missingwx)
ImportError: Matplotlib backend_wx and backend_wxagg require wxPython >=2.8
 >>>

-- 

Jeffrey Spencer
jeffspenc...@gmail.com


--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] wrong number of logarithmic minor ticks

2011-05-20 Thread Benjamin Root
On Thu, May 19, 2011 at 10:37 PM, Steve Ward  wrote:

> >From running the code below, I see only 8 subticks between the major
> ticks.  But the documentation
> <
> http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.set_xscale
> >
> says there should be 10.  I'm using matplotlib version 0.99.3.
>
> #
> import matplotlib.pyplot as plt
> import numpy as np
> y = range(1, 4)
> x = np.power(10, y)
> plt.gca().set_xscale('log', basex=10, subsx=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
> plt.gca().plot(x, y)
> plt.show()
> #
>
> However, even if 10 are being drawn, I think there would only be 9
> subticks between the major ticks because the first subtick is on a
> major tick.  Am I wrong?
>
>
> Steve
>
>
You are mostly correct.  The documentation, however, is very wrong.  The
first visible subtick would be for 20.  Therefore, there will only be 8
visible subticks.  The suggestion of doing [0, 1, 2, 3, ...] for subsx has
two problems.  First, the subtick at 0 will never show up!  Second, the
subtick for 1 is also a major tick.  While this isn't technically wrong,
(maybe the major ticks get turned off or something...), it is a poor example
and I will fix it.

Thank you for pointing it out.

Ben Root
--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users