Skip to content

Commit f210efb

Browse files
committed
migrated matlab to pylab and more
svn path=/trunk/matplotlib/; revision=743
1 parent 52a3b0e commit f210efb

File tree

120 files changed

+2192
-1764
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+2192
-1764
lines changed

API_CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
API CHANGES in matplotlib-0.65
22

3+
mpl_connect and mpl_disconnect in the matlab interface renamed to
4+
connect and disconnect
5+
36
Did away with the text methods for angle since they were ambiguous.
47
fontangle could mean fontstyle (obligue, etc) or the rotation of the
58
text. Use style and rotation instead.

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
New entries should be added at the top
2+
3+
2004-12-09 Added Norm Peterson's svg clipping patch
4+
5+
2004-12-09 Added Matthew Newville's wx printing patch
6+
7+
2004-12-09 Migrated matlab to pylab - JDH
8+
29
2004-12-09 backend_gtk.py: split into two parts
310
- backend_gdk.py - an image backend
411
- backend_gtk.py - A GUI backend that uses GDK - SC

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
INTRODUCTION:
22

33

4-
matplotlib is a pure python 2D plotting library with a Matlab?
4+
matplotlib is a pure python 2D plotting library with a Matlab(TM)
55
syntax which produces publication quality figures using in a
66
variety of hardcopy formats (PNG, JPG, TIFF, PS) and interactive
77
GUI environments (WX, GTK) across platforms. matplotlib can be used

examples/alignment_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
layout text
66
"""
77

8-
from matplotlib.matlab import *
8+
from pylab import *
99
from matplotlib.lines import Line2D
1010
from matplotlib.patches import Rectangle
1111

examples/anim.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#!/usr/bin/env python2.3
22
import matplotlib
33
matplotlib.use('GTKAgg')
4-
import matplotlib.matlab
4+
import pylab
55
import gtk
66
import matplotlib.numerix as numerix
77

8-
fig = matplotlib.matlab.figure(1)
8+
fig = pylab.figure(1)
99
ind = numerix.arange(60)
1010
x_tmp=[]
1111
for i in range(100):
1212
x_tmp.append(numerix.sin((ind+i)*numerix.pi/15.0))
1313

1414
X=numerix.array(x_tmp)
15-
lines = matplotlib.matlab.plot(X[:,0],'o')
15+
lines = pylab.plot(X[:,0],'o')
1616

17-
manager = matplotlib.matlab.get_current_fig_manager()
17+
manager = pylab.get_current_fig_manager()
1818
def updatefig(*args):
1919
updatefig.count += 1
2020
if updatefig.count>59: updatefig.count=0
@@ -25,4 +25,4 @@ def updatefig(*args):
2525
updatefig.count=-1
2626

2727
gtk.timeout_add(25,updatefig)
28-
matplotlib.matlab.show()
28+
pylab.show()

examples/anim_tk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import matplotlib
44
matplotlib.use('TkAgg')
5-
import matplotlib.matlab
5+
import pylab
66

77
#import Tkinter as Tk
88
import matplotlib.numerix as numerix
9-
fig = matplotlib.matlab.figure(1)
9+
fig = pylab.figure(1)
1010
ind = numerix.arange(60)
1111

1212

@@ -18,9 +18,9 @@
1818
X=numerix.array(x_tmp)
1919

2020

21-
lines = matplotlib.matlab.plot(X[:,0],'o')
21+
lines = pylab.plot(X[:,0],'o')
2222

23-
manager = matplotlib.matlab.get_current_fig_manager()
23+
manager = pylab.get_current_fig_manager()
2424

2525
def updatefig(*args):
2626
updatefig.count += 1

examples/anscombe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
matplotlib fun for a rainy day
88
"""
99

10-
from matplotlib.matlab import *
10+
from pylab import *
1111

1212
x = array([10, 8, 13, 9, 11, 14, 6, 4, 12, 7, 5])
1313
y1 = array([8.04, 6.95, 7.58, 8.81, 8.33, 9.96, 7.24, 4.26, 10.84, 4.82, 5.68])

examples/arctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
from matplotlib.matlab import *
2+
from pylab import *
33

44
def f(t):
55
'a damped exponential'

examples/axes_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python
22

3-
from matplotlib.matlab import *
3+
from pylab import *
44

55
# create some data to use for the plot
66
dt = 0.001

examples/axes_props.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
You can control the axis tick and grid properties
44
"""
55

6-
from matplotlib.matlab import *
6+
from pylab import *
77

88
t = arange(0.0, 2.0, 0.01)
99
s = sin(2*pi*t)
@@ -34,7 +34,7 @@
3434

3535
"""
3636
# the same script, python style
37-
from matplotlib.matlab import *
37+
from pylab import *
3838
3939
t = arange(0.0, 2.0, 0.01)
4040
s = sin(2*pi*t)

0 commit comments

Comments
 (0)