SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Ondrej C. <on...@ce...> - 2009年06月30日 18:10:20
Hi,
this must have been answered many times already, but I searched the
archives, online docs, but couldn't find anything.
If I do:
$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab
>>> pylab.plot([1, 3, 3])
[<matplotlib.lines.Line2D object at 0x2154350>]
>>> pylab.show()
>>> pylab.show()
>>>
the first pylab.show() shows the plot and stays hanging (this is ok)
and then if I close it, to get back to the shell, the second call to
show() does nothing.
One fix is to use:
ipython --pylab
but if I just want to call regular python, or from my own script ---
how do I plot for the second time?
Ondrej
From: Ondrej C. <on...@ce...> - 2009年07月06日 06:13:42
On Tue, Jun 30, 2009 at 12:09 PM, Ondrej Certik<on...@ce...> wrote:
> Hi,
>
> this must have been answered many times already, but I searched the
> archives, online docs, but couldn't find anything.
>
> If I do:
>
> $ python
> Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
> [GCC 4.3.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import pylab
>>>> pylab.plot([1, 3, 3])
> [<matplotlib.lines.Line2D object at 0x2154350>]
>>>> pylab.show()
>>>> pylab.show()
>>>>
>
> the first pylab.show() shows the plot and stays hanging (this is ok)
> and then if I close it, to get back to the shell, the second call to
> show() does nothing.
>
> One fix is to use:
>
> ipython --pylab
>
> but if I just want to call regular python, or from my own script ---
> how do I plot for the second time?
I still haven't figured out how to fix it, so any feedback would be appreciated.
Thanks,
Ondrej
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /