Revision: 6797
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6797&view=rev
Author:   ryanmay
Date:     2009-01-16 20:06:55 +0000 (Fri, 16 Jan 2009)

Log Message:
-----------
Merge evans_test2.py and radian_demo.py, as they are 99% identical (no 
differences in showing off units support).

Modified Paths:
--------------
    trunk/matplotlib/examples/units/radian_demo.py

Removed Paths:
-------------
    trunk/matplotlib/examples/units/evans_test2.py

Deleted: trunk/matplotlib/examples/units/evans_test2.py
===================================================================
--- trunk/matplotlib/examples/units/evans_test2.py      2009-01-16 18:56:11 UTC 
(rev 6796)
+++ trunk/matplotlib/examples/units/evans_test2.py      2009-01-16 20:06:55 UTC 
(rev 6797)
@@ -1,25 +0,0 @@
-"""
-Plot with radians from the basic_units mockup example package
-This example shows how the unit class can determine the tick locating,
-formatting and axis labeling.
-"""
-import numpy as np
-from basic_units import radians, degrees, cos
-from pylab import figure, show
-from matplotlib.cbook import iterable
-import math
-
-
-x = np.arange(0, 15, 0.01) * radians
-
-
-fig = figure()
-
-ax = fig.add_subplot(211)
-ax.plot(x, cos(x), xunits=radians)
-
-ax = fig.add_subplot(212)
-ax.plot(x, cos(x), xunits=degrees)
-
-show()
-

Modified: trunk/matplotlib/examples/units/radian_demo.py
===================================================================
--- trunk/matplotlib/examples/units/radian_demo.py      2009-01-16 18:56:11 UTC 
(rev 6796)
+++ trunk/matplotlib/examples/units/radian_demo.py      2009-01-16 20:06:55 UTC 
(rev 6797)
@@ -1,11 +1,17 @@
+"""
+Plot with radians from the basic_units mockup example package
+This example shows how the unit class can determine the tick locating,
+formatting and axis labeling.
+"""
 import numpy as np
 from basic_units import radians, degrees, cos
-from pylab import figure, show
+from matplotlib.pyplot import figure, show
 
 x = np.arange(0, 15, 0.01) * radians
 
 fig = figure()
 fig.subplots_adjust(hspace=0.3)
+
 ax = fig.add_subplot(211)
 ax.plot(x, cos(x), xunits=radians)
 
@@ -13,4 +19,3 @@
 ax.plot(x, cos(x), xunits=degrees)
 
 show()
-


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

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to