Skip to content

Commit 877532e

Browse files
committed
Merge evans_test2.py and radian_demo.py, as they are 99% identical (no differences in showing off units support).
svn path=/trunk/matplotlib/; revision=6797
1 parent f2fb344 commit 877532e

File tree

2 files changed

+7
-27
lines changed

2 files changed

+7
-27
lines changed

Diff for: examples/units/evans_test2.py

-25
This file was deleted.

Diff for: examples/units/radian_demo.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1+
"""
2+
Plot with radians from the basic_units mockup example package
3+
This example shows how the unit class can determine the tick locating,
4+
formatting and axis labeling.
5+
"""
16
import numpy as np
27
from basic_units import radians, degrees, cos
3-
from pylab import figure, show
8+
from matplotlib.pyplot import figure, show
49

510
x = np.arange(0, 15, 0.01) * radians
611

712
fig = figure()
813
fig.subplots_adjust(hspace=0.3)
14+
915
ax = fig.add_subplot(211)
1016
ax.plot(x, cos(x), xunits=radians)
1117

1218
ax = fig.add_subplot(212)
1319
ax.plot(x, cos(x), xunits=degrees)
1420

1521
show()
16-

0 commit comments

Comments
 (0)