SourceForge logo
SourceForge logo
Menu

matplotlib-checkins

From: <ef...@us...> - 2010年06月26日 07:37:51
Revision: 8467
 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8467&view=rev
Author: efiring
Date: 2010年06月26日 07:37:44 +0000 (2010年6月26日)
Log Message:
-----------
disable non-functional interactive.py demo: print message and exit.
Otherwise, this demo will hang.
Modified Paths:
--------------
 trunk/matplotlib/examples/user_interfaces/interactive.py
 trunk/matplotlib/examples/user_interfaces/interactive2.py
Modified: trunk/matplotlib/examples/user_interfaces/interactive.py
===================================================================
--- trunk/matplotlib/examples/user_interfaces/interactive.py	2010年06月24日 21:17:30 UTC (rev 8466)
+++ trunk/matplotlib/examples/user_interfaces/interactive.py	2010年06月26日 07:37:44 UTC (rev 8467)
@@ -1,6 +1,11 @@
 #!/usr/bin/env python
 """Multithreaded interactive interpreter with GTK and Matplotlib support.
 
+WARNING:
+As of 2010年06月25日, this is not working, at least on Linux.
+I have disabled it as a runnable script. - EF
+
+
 Usage:
 
 pyint-gtk.py -> starts shell with gtk thread running separately
@@ -183,7 +188,7 @@
 specific GTK hooks in it."""
 
 def __init__(self,banner=None):
- banner = """\nWelcome to matplotlib, a matlab-like python environment.
+ banner = """\nWelcome to matplotlib, a MATLAB-like python environment.
 help(matlab) -> help on matlab compatible commands from matplotlib.
 help(plotting) -> help on plotting commands.
 """
@@ -221,6 +226,9 @@
 matplotlib.interactive(1) # turn on interaction
 
 if __name__ == '__main__':
+ print "This demo is not presently functional, so running"
+ print "it as a script has been disabled."
+ sys.exit()
 # Quick sys.argv hack to extract the option and leave filenames in sys.argv.
 # For real option handling, use optparse or getopt.
 if len(sys.argv) > 1 and sys.argv[1]=='-pylab':
Modified: trunk/matplotlib/examples/user_interfaces/interactive2.py
===================================================================
--- trunk/matplotlib/examples/user_interfaces/interactive2.py	2010年06月24日 21:17:30 UTC (rev 8466)
+++ trunk/matplotlib/examples/user_interfaces/interactive2.py	2010年06月26日 07:37:44 UTC (rev 8467)
@@ -25,7 +25,7 @@
 
 Welcome to matplotlib.
 
- help(matplotlib) -- shows a list of all matlab(TM) compatible commands provided
+ help(matplotlib) -- some general information about matplotlib
 help(plotting) -- shows a list of plot specific commands
 
 """
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
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 によって変換されたページ (->オリジナル) /