8000 added API_CHANGES to htdocs · matplotlib/matplotlib@30c9d29 · GitHub
[go: up one dir, main page]

Skip to content

Commit 30c9d29

Browse files
committed
added API_CHANGES to htdocs
svn path=/trunk/matplotlib/; revision=113
1 parent fa3a29a commit 30c9d29

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

API_CHANGES

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,30 @@ API changes at 0.50
1414
* Figure is now an Artist (like everything else in the figure) and
1515
is totally backend independent
1616

17+
Migrating code:
18+
19+
There are no API changes for the matlab interface.
20+
21+
There is one important API change for application developers.
22+
Figure instances used subclass GUI widgets that enabled them to be
23+
placed directly into figures. Eg, FigureGTK subclassed
24+
gtk.DrawingArea. Now the Figure class is independent of the
25+
backend, and FigureCanvas takes over the functionality formerly
26+
handled by Figure. In order to include figures into your apps, you
27+
now need to do, for example
28+
29+
# gtk example
30+
fig = Figure(figsize=(5,4), dpi=100)
31+
canvas = FigureCanvasGTK(fig) # a gtk.DrawingArea
32+
canvas.show()
33+
vbox.pack_start(canvas)
34+
35+
Apologies for the inconvenience. This refactorization brings
36+
significant more freedom in developing matplotlib and should bring
37+
better plotting capabilities, so I hope the inconvenience is worth
38+
it.
39+
40+
1741
API changes at 0.42
1842

1943
* Refactoring AxisText to be backend independent. Text drawing and

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Copyright (C) 2003 <jdhunter@ace.bsd.uchicago.edu>
33
# $Header$
44
# $Log$
5+
# Revision 1.14 2004/01/29 19:26:46 jdh2358
6+
# added API_CHANGES to htdocs
7+
#
58
# Revision 1.13 2004/01/27 16:18:08 jdh2358
69
# updated README and INSTALL
710
#
@@ -82,6 +85,7 @@ htmldocs:
8285
rm -rf htdocs/matplotlib;\
8386
cp -a matplotlib htdocs/;\
8487
cp examples/*.py htdocs/examples;\
88+
cp API_CHANGES htdocs/
8589
rm -f docs/*.html;\
8690
${PYDOC} -w ${MODULES};\
8791
mv *.html docs/

examples/barchart_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
width = 0.35 # the width of the bars
1010
p1 = bar(ind, menMeans, width, color='r', yerr=menStd)
1111

12-
womenMeans = (25, 32, 34, 20, 25)
12+
womenMeans = (-25, 32, 34, 20, 25)
1313
womenStd = (3, 5, 2, 3, 3)
1414
p2 = bar(ind+width, womenMeans, width, color='y', yerr=womenStd)
1515

0 commit comments

Comments
 (0)
0