Revision: 4614
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4614&view=rev
Author:   jdh2358
Date:     2007-12-05 07:16:48 -0800 (Wed, 05 Dec 2007)

Log Message:
-----------
exposed default color cycle 

Modified Paths:
--------------
    trunk/matplotlib/API_CHANGES
    trunk/matplotlib/lib/matplotlib/__init__.py
    trunk/matplotlib/lib/matplotlib/axes.py
    trunk/matplotlib/lib/matplotlib/image.py
    trunk/matplotlib/matplotlibrc.template

Modified: trunk/matplotlib/API_CHANGES
===================================================================
--- trunk/matplotlib/API_CHANGES        2007-12-05 14:45:56 UTC (rev 4613)
+++ trunk/matplotlib/API_CHANGES        2007-12-05 15:16:48 UTC (rev 4614)
@@ -1,3 +1,5 @@
+    Removed, dead/experimental ExampleInfo, Namespace and Importer
+    code from matplotlib/__init__.py
 0.91.1 Released
 
 0.91.0 Released

Modified: trunk/matplotlib/lib/matplotlib/__init__.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/__init__.py 2007-12-05 14:45:56 UTC (rev 
4613)
+++ trunk/matplotlib/lib/matplotlib/__init__.py 2007-12-05 15:16:48 UTC (rev 
4614)
@@ -55,7 +55,7 @@
 """
 from __future__ import generators
 
-__version__  = '0.91.1'
+__version__  = '0.91.2svn'
 __revision__ = '$Revision$'
 __date__     = '$Date$'
 
@@ -784,60 +784,3 @@
 verbose.report('platform is %s'%sys.platform)
 verbose.report('loaded modules: %s'%sys.modules.keys(), 'debug')
 
-class ExampleInfo:
-    pass
-
-class ExampleManager:
-    baseurl = 'http://matplotlib.sf.net'
-    urls = ['%s/%s'%(baseurl, subdir) for subdir in
-            ( 'examples', 'examples/widgets')]
-
-    def get_examples(self):
-        import urllib, re
-        rgx = re.compile('.*<A HREF="([^.]+\.py)">.*')
-        examples = []
-        for url in urls:
-            lines = urllib.urlopen(url).readlines()
-            for line in lines:
-                m = rgx.match(line)
-                if m is not None:
-                    examples.append('%s/%s'%(url, m.group(1)))
-        return examples
-
-    def get_info(self, s):
-        """
-        return an ExampleInfo instance from s, the string content of
-        an example
-        """
-        pass
-
-class Namespace:
-    """
-    A class which takes a list of modules and creates an object with
-    the module naems at attrs
-    """
-    def __init__(self, namespace):
-        for k,v in namespace.items():
-            modname = getattr(v, '__name__', None)
-            if modname is None: continue
-            if modname.startswith('matplotlib.'):
-                self.__dict__[modname.replace('matplotlib.', '')] = v
-
-
-class Importer:
-    def __init__(self, modstr):
-        """
-        import a bunch of matplotlib modules listed in modstr into a
-        single namespace.  Eg,
-
-        mpl = Importer('artist, cbook, lines, patches')
-        print mpl.cbook.iterable(1)
-        """
-        for name in modstr.split(','):
-            name = name.strip()
-            wholename = '.'.join(['matplotlib', name])
-            basemod = __import__(wholename)
-            mod = getattr(basemod, name)
-            setattr(self, name, mod)
-
-

Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py     2007-12-05 14:45:56 UTC (rev 
4613)
+++ trunk/matplotlib/lib/matplotlib/axes.py     2007-12-05 15:16:48 UTC (rev 
4614)
@@ -152,13 +152,14 @@
     an arbitrary number of x, y, fmt are allowed
     """
 
+    defaultColors = ['b','g','r','c','m','y','k']
     def __init__(self, axes, command='plot'):
         self.axes = axes
         self.command = command
         self._clear_color_cycle()
 
     def _clear_color_cycle(self):
-        self.colors = ['b','g','r','c','m','y','k']
+        self.colors = _process_plot_var_args.defaultColors[:]
         # if the default line color is a color format string, move it up
         # in the que
         try: ind = self.colors.index(rcParams['lines.color'])

Modified: trunk/matplotlib/lib/matplotlib/image.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/image.py    2007-12-05 14:45:56 UTC (rev 
4613)
+++ trunk/matplotlib/lib/matplotlib/image.py    2007-12-05 15:16:48 UTC (rev 
4614)
@@ -243,6 +243,8 @@
 
         self.set_data(A)
 
+
+
     def set_extent(self, extent):
         """extent is data axes (left, right, bottom, top) for making image 
plots
         """

Modified: trunk/matplotlib/matplotlibrc.template
===================================================================
--- trunk/matplotlib/matplotlibrc.template      2007-12-05 14:45:56 UTC (rev 
4613)
+++ trunk/matplotlib/matplotlibrc.template      2007-12-05 15:16:48 UTC (rev 
4614)
@@ -25,7 +25,7 @@
 
 #### CONFIGURATION BEGINS HERE
 # the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
-#     Agg Cairo GD GDK Paint PS PDF SVG Template
+# WX WXAgg Agg Cairo GD GDK Paint PS PDF SVG Template
 backend      : %(backend)s
 numerix      : %(numerix)s  # numpy, Numeric or numarray
 #maskedarray : False       # True to use external maskedarray module


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to