Thanks for your reply, anyway.
I've tried to change the backend to GTKAgg and now when I startt ipython
-pylab I receive:
Traceback (most recent call last):
  File "C:\Python25\scripts\ipython.py", line 28, in <module>
  IPython.Shell.start().mainloop()
  File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 1233, in start
  return shell(user_ns = user_ns)
  File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 1108, in
__init__
  shell_class=MatplotlibMTShell)
  File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 793, in
__init__
  on_kill=[mainquit])
  File "C:\Python25\Lib\site-packages\IPython\ipmaker.py", line 103, in
make_IPython
  embedded=embedded,**kw)
  File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 639, in
__init__
  user_ns,user_global_ns,b2 =
self._matplotlib_config(name,user_ns,user_global_ns)
  File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 559, in
_matplotlib_config
  import matplotlib.pylab as pylab
  File "C:\Python25\Lib\site-packages\matplotlib\pylab.py", line 253, in
<module>
  from matplotlib.pyplot import *
  File "C:\Python25\Lib\site-packages\matplotlib\pyplot.py", line 75, in
<module>
  new_figure_manager, draw_if_interactive, show = pylab_setup()
  File "C:\Python25\Lib\site-packages\matplotlib\backends\__init__.py", line
25, in pylab_setup
  globals(),locals(),[backend_name])
  File
"C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtkagg.py", line
14, in <module>
  from matplotlib.backends._gtkagg import agg_to_gtk_drawable
ImportError: No module named _gtkagg

I have the suspect that matplotlib windows support simply doesn't exist:)
I'll try prepackaged windows distributions like EPD or Python(x,y) and hope
this will solve this issue...
Thanks again.

2009/7/21 Jae-Joon Lee <lee.j.j...@gmail.com>

> As the warning message indicates, I think this is a backend issue.
> The recommended backend (for screen display) is the Agg family, e.g.,
> TkAgg, GTKAgg, etc.
>
> I rarely use Windows and I never used matplotlib on Windows, so there
> is not much I can help.
> I'm not sure which backend is available on Windows, but try some other
> backend.
>
> http://matplotlib.sourceforge.net/faq/installing_faq.html#what-is-a-backend
>
> Also, please check out the binary installer for windows,
>
> http://matplotlib.sourceforge.net/faq/installing_faq.html#windows-questions
>
> Regards,
>
> -JJ
>
>
> On Tue, Jul 21, 2009 at 4:01 AM, Domenico Nappo<domenico.na...@gmail.com>
> wrote:
> > Hi JJ,
> > thanks for your reply.
> > Let me say first that I've some problems with installation, I think: when
> I
> > try to run ipython -pylab I got the following:
> > C:\Documents and Settings\user>ipython -pylab
> > Traceback (most recent call last):
> >   File "C:\Python25\scripts\ipython.py", line 28, in <module>
> >   IPython.Shell.start().mainloop()
> >   File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 1233, in
> start
> >   return shell(user_ns = user_ns)
> >   File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 1108, in
> > __init__
> >   shell_class=MatplotlibMTShell)
> >   File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 793, in
> > __init__
> >   on_kill=[mainquit])
> >   File "C:\Python25\Lib\site-packages\IPython\ipmaker.py", line 103, in
> > make_IPython
> >   embedded=embedded,**kw)
> >   File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 639, in
> > __init__
> >   user_ns,user_global_ns,b2 =
> > self._matplotlib_config(name,user_ns,user_global_ns)
> >   File "C:\Python25\Lib\site-packages\IPython\Shell.py", line 559, in
> > _matplotlib_config
> >   import matplotlib.pylab as pylab
> >   File "C:\Python25\Lib\site-packages\matplotlib\pylab.py", line 253, in
> > <module>
> >   from matplotlib.pyplot import *
> >   File "C:\Python25\Lib\site-packages\matplotlib\pyplot.py", line 75, in
> > <module>
> >   new_figure_manager, draw_if_interactive, show = pylab_setup()
> >   File "C:\Python25\Lib\site-packages\matplotlib\backends\__init__.py",
> line
> > 25, in pylab_setup
> >   globals(),locals(),[backend_name])
> >   File
> "C:\Python25\Lib\site-packages\matplotlib\backends\backend_gtk.py",
> > line 25, in <module>
> >   from matplotlib.backends.backend_gdk import RendererGDK,
> FigureCanvasGDK
> >   File
> "C:\Python25\lib\site-packages\matplotlib\backends\backend_gdk.py",
> > line 29, in <module>
> >   from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array
> > ImportError: No module named _backend_gdk
> >
> > If I comment the import statement for _backend_gdk in backend_gdk.py,
> > ipython runs well.
> > Below, the code:
> > In [20]:
> >
> X=load('E:\\user\\Applicazioni\\EFGExtractor\\dataJan03Dec08.matplotlibtest',converters={0:strpdate2num('%Y-%m-%d')})
> >
> > In [21]: time = X[:,0]
> >
> > In [22]: time
> > Out[22]: array([ 731216., 731217., 731218., ..., 733040., 733041.,
> 733042.])
> >
> > In [23]: data = X[:,1]
> >
> > In [24]: data
> > Out[24]: array([ 150., 140., 142., ..., 92., 84., 76.])
> >
> >
> > In [30]: fig = figure()
> >
> > In [31]: ax = fig.add_subplot(111)
> >
> > In [32]: ax.plot_date(time, data, '-')
> > Out[32]: [<matplotlib.lines.Line2D object at 0x0218B030>]
> >
> > In [33]: show()
> >
> > In [34]: fig.autofmt_xdate()
> >
> >
> > In [37]:
> > C:\Python25\lib\site-packages\matplotlib\backends\backend_gdk.py:148:
> > UserWarning: backend_gdk: unable to draw text at angles other than 0 or
> 90
> >   'other than 0 or 90')
> > This time I've noticed the warning above: "unable to draw text at angles
> > other than 0 or 90"
> > Thanks in advance for any clarification...
> > 2009/7/17 Jae-Joon Lee <lee.j.j...@gmail.com>
> >>
> >> Please post a simple, standalone script that reproduces your problem,
> >> so that we can track down what is causing the problem. I don't think
> >> there has been any report of a similar issue (but not sure). As far as
> >> I know, autofmt_xdata only adjusts the alignment and rotation of the
> >> ticklabels and does not change the font property.
> >>
> >> -JJ
> >>
> >>
> >> On Thu, Jul 16, 2009 at 10:55 AM, Domenico
> >> Nappo<domenico.na...@gmail.com> wrote:
> >> > Whenever I try to use autofmt_xdate() on a Figure(), dates on x axis
> >> > disappear...I guess this is related with something concerning font
> >> > management...
> >> > Anyone experienced this kind of issues?
> >> >
> >> > I use most recent versions of matplotlib, numpy, gtk2, pygtk on a
> Python
> >> > 2.5
> >> > platform (installed via binaries on a window xp machine).
> >> >
> >> >
> >> >
> ------------------------------------------------------------------------------
> >> > Enter the BlackBerry Developer Challenge
> >> > This is your chance to win up to $100,000 in prizes! For a limited
> time,
> >> > vendors submitting new applications to BlackBerry App World(TM) will
> >> > have
> >> > the opportunity to enter the BlackBerry Developer Challenge. See full
> >> > prize
> >> > details at: http://p.sf.net/sfu/Challenge
> >> > _______________________________________________
> >> > Matplotlib-users mailing list
> >> > Matplotlib-users@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >> >
> >> >
> >
> >
>
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to