On Thu, Apr 1, 2010 at 7:53 AM, Mauro Cavalcanti <mauro...@gmail.com> wrote:
> Dear ALL,
>
> Long time no see.... Well, I have recently upgraded from Ubuntu
> Intrepid to Jaunty (sure, I know that I'm a couple of versions
> delayed, but keeping a working system stable is essential). I did not
> a fresh install of Ubuntu, just upgraded using the system's facility
> for that. Previously I have did that from Ubuntu Hardy to Intrepid,
> with less (or no) troubles. However, in Jaunty the default Python
> interpreter has been upgraded from 2.5 to 2.6 and this is presenting
> the most annoying problems.
>
> For now, the most vexing problem is that although Matplotlib is
> correctly installed and seemingly working, it does not show any
> graphics! For exemple, if I run the simple example from Matplotlib's
> website:
>
> Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from pylab import randn, hist
>>>> x = randn(10000)
>>>> hist(x, 100)
>
> Instead of a nice histogram, I am just presented with a "dump" of the
> contents of an array:
>
> (array([  2,   0,   1,   2,   1,   2,   1,   3,   4,   7,  15,  16,   9,
>      (cut here to save space)
>       3.97823055,  4.05708515,  4.13593975,  4.21479434,  4.29364894,
>        4.37250354]), <a list of 100 Patch objects>)
>
> No error messages or complaints about a missing graphics backend is
> issued, so I'm lost.
>
> Any hints?

When you run setup.py, the install routines attempt to determine what
backend to use. If a suitable gui toolkit is not found, mpl defaults
to the Agg backend. I suggest creating a matplotlibrc file that
specifies a gui backend.

Darren

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to