plt.show is a function. You are not calling it just displaying it. Try
doing plt.show()

BTW please use the new mailing list at matplotlib-us...@python.org

best
Jens

On Fri, 27 Nov 2015 at 11:36 Paul Harrison <paulharrisonsi...@gmail.com>
wrote:

>
> Hi guys,
>
> If I do the following, no plot shows:
>
> ply5@xroa-dt-20:~> python
>
> Python 2.6.9 (unknown, Apr  7 2015, 08:28:12)
>
> [GCC 4.3.4 [gcc-4_3-branch revision 152973]] on linux2
>
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> import pylab as plt
>
> >>> plt.figure()
>
> <matplotlib.figure.Figure object at 0x16e5310>
>
> >>> plt.hist([1.0,2,0])
>
> (array([ 1.,  0.,  0.,  0.,  0.,  1.,  0.,  0.,  0.,  1.]), array([ 0. ,
> 0.2,  0.4,  0.6,  0.8,  1. ,  1.2,  1.4,  1.6,  1.8,  2. ]), <a list of 10
> Patch objects>)
>
> >>> plt.show
>
> <function show at 0x1730b90>
>
> >>>
>
> I'm using SUSE Linux Enterprise 11 SP3 64-bit with python-matplotlib
> v1.3.1-70.11.
>
> Anyone have any ideas? I'm a bit of a matplotlib beginner so any advice is
> extremely welcome!
>
> Thanks,
>
> Paul
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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