>On 1 April 2010 13:53, Mauro Cavalcanti <mauro...@gmail.com> wrote:
> 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.

Are you even expecting the correct behaviour? I'm under the impression
that it's necessary to import and call show() if you want to see the
plot? I thought it was necessary to use IPython in pylab mode to get
the behaviour you're after i.e calling hist also brings up the plot
window.

I guess I'm hijacking your thread to ask whether the example on the
front page is misleading, or if my understanding is flawed?

Cheers,
Scott

------------------------------------------------------------------------------
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