Revision: 7375
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7375&view=rev
Author:   jdh2358
Date:     2009-08-05 15:43:54 +0000 (Wed, 05 Aug 2009)

Log Message:
-----------
move demo image into axes_grid package so examples will run from anywhere

Modified Paths:
--------------
    trunk/matplotlib/examples/axes_grid/demo_axes_divider.py
    trunk/matplotlib/examples/axes_grid/demo_axes_grid.py
    trunk/matplotlib/examples/axes_grid/inset_locator_demo2.py
    trunk/matplotlib/examples/axes_grid/simple_axesgrid2.py
    trunk/matplotlib/examples/axes_grid/simple_rgb.py

Added Paths:
-----------
    trunk/matplotlib/lib/mpl_toolkits/axes_grid/demo_image.py

Removed Paths:
-------------
    trunk/matplotlib/examples/axes_grid/demo_image.py

Modified: trunk/matplotlib/examples/axes_grid/demo_axes_divider.py
===================================================================
--- trunk/matplotlib/examples/axes_grid/demo_axes_divider.py    2009-08-05 
15:40:22 UTC (rev 7374)
+++ trunk/matplotlib/examples/axes_grid/demo_axes_divider.py    2009-08-05 
15:43:54 UTC (rev 7375)
@@ -1,5 +1,5 @@
 import matplotlib.pyplot as plt
-from demo_image import get_demo_image
+from mpl_toolkits.axes_grid.demo_image import get_demo_image
 #import mpl_toolkits.imaging.axes_grid as imaging
 
 def demo_simple_image(ax):

Modified: trunk/matplotlib/examples/axes_grid/demo_axes_grid.py
===================================================================
--- trunk/matplotlib/examples/axes_grid/demo_axes_grid.py       2009-08-05 
15:40:22 UTC (rev 7374)
+++ trunk/matplotlib/examples/axes_grid/demo_axes_grid.py       2009-08-05 
15:43:54 UTC (rev 7375)
@@ -1,5 +1,5 @@
 import matplotlib.pyplot as plt
-from demo_image import get_demo_image
+from mpl_toolkits.axes_grid.demo_image import get_demo_image
 from mpl_toolkits.axes_grid import AxesGrid
 
 

Deleted: trunk/matplotlib/examples/axes_grid/demo_image.py
===================================================================
--- trunk/matplotlib/examples/axes_grid/demo_image.py   2009-08-05 15:40:22 UTC 
(rev 7374)
+++ trunk/matplotlib/examples/axes_grid/demo_image.py   2009-08-05 15:43:54 UTC 
(rev 7375)
@@ -1,17 +0,0 @@
-import numpy as np
-
-def get_demo_image():
-    # prepare image
-    delta = 0.5
-
-    extent = (-3,4,-4,3)
-    x = np.arange(-3.0, 4.001, delta)
-    y = np.arange(-4.0, 3.001, delta)
-    X, Y = np.meshgrid(x, y)
-    import matplotlib.mlab as mlab
-    Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
-    Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
-    Z = (Z1 - Z2) * 10
-
-    return Z, extent
-

Modified: trunk/matplotlib/examples/axes_grid/inset_locator_demo2.py
===================================================================
--- trunk/matplotlib/examples/axes_grid/inset_locator_demo2.py  2009-08-05 
15:40:22 UTC (rev 7374)
+++ trunk/matplotlib/examples/axes_grid/inset_locator_demo2.py  2009-08-05 
15:43:54 UTC (rev 7375)
@@ -5,7 +5,7 @@
 
 import numpy as np
 
-from demo_image import get_demo_image
+from mpl_toolkits.axes_grid.demo_image import get_demo_image
 
 
 fig = plt.figure(1, [5,4])

Modified: trunk/matplotlib/examples/axes_grid/simple_axesgrid2.py
===================================================================
--- trunk/matplotlib/examples/axes_grid/simple_axesgrid2.py     2009-08-05 
15:40:22 UTC (rev 7374)
+++ trunk/matplotlib/examples/axes_grid/simple_axesgrid2.py     2009-08-05 
15:43:54 UTC (rev 7375)
@@ -1,6 +1,6 @@
 import matplotlib.pyplot as plt
 from mpl_toolkits.axes_grid import AxesGrid
-from demo_image import get_demo_image
+from mpl_toolkits.axes_grid.demo_image import get_demo_image
 
 F = plt.figure(1, (5.5, 3.5))
 grid = AxesGrid(F, 111, # similar to subplot(111)

Modified: trunk/matplotlib/examples/axes_grid/simple_rgb.py
===================================================================
--- trunk/matplotlib/examples/axes_grid/simple_rgb.py   2009-08-05 15:40:22 UTC 
(rev 7374)
+++ trunk/matplotlib/examples/axes_grid/simple_rgb.py   2009-08-05 15:43:54 UTC 
(rev 7375)
@@ -1,6 +1,6 @@
 import matplotlib.pyplot as plt
 
-from demo_image import get_demo_image
+from mpl_toolkits.axes_grid.demo_image import get_demo_image
 from mpl_toolkits.axes_grid.axes_rgb import RGBAxes
 
 def get_rgb():

Added: trunk/matplotlib/lib/mpl_toolkits/axes_grid/demo_image.py
===================================================================
--- trunk/matplotlib/lib/mpl_toolkits/axes_grid/demo_image.py                   
        (rev 0)
+++ trunk/matplotlib/lib/mpl_toolkits/axes_grid/demo_image.py   2009-08-05 
15:43:54 UTC (rev 7375)
@@ -0,0 +1,17 @@
+import numpy as np
+
+def get_demo_image():
+    # prepare image
+    delta = 0.5
+
+    extent = (-3,4,-4,3)
+    x = np.arange(-3.0, 4.001, delta)
+    y = np.arange(-4.0, 3.001, delta)
+    X, Y = np.meshgrid(x, y)
+    import matplotlib.mlab as mlab
+    Z1 = mlab.bivariate_normal(X, Y, 1.0, 1.0, 0.0, 0.0)
+    Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
+    Z = (Z1 - Z2) * 10
+
+    return Z, extent
+


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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to